Create Link that opens new window in module

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Create Link that opens new window in module
BSKI
CZ Newbie
BSKI has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 10, 2004
0.00 posts per day
Posts: 6
Points: 662
   
I want to add a module that open a new window? I guess in other words I want to display a hyperlink in the list of active module that opens a new window and displays either an HTML page or another app like copermine

Thanks



Back to top Reply with quote
#2   re: Create Link that opens new window in module
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
Hello

I can suggest two modules for you.CZM is the one which Codezwiz use at this site, you can see it as top left block here.You can find the info about it at [ Register or login to view links on this board. ] there check for CZModules block.

The other one is Sommaire Paramétrable! a good Site Menu block/module which is free.You can see/test/download it from [ Register or login to view links on this board. ]




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   re: Create Link that opens new window in module
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
You could add the link manually to open in a new window try this

open /blocks/block-Modules.php

find
/* If you're Admin you and only you can see Inactive modules and test it */


add before
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"path to your file\" target=_blank>Name of the link</a><br />\n";



Back to top Reply with quote
#4   
BSKI
CZ Newbie
BSKI has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 10, 2004
0.00 posts per day
Posts: 6
Points: 662
   
craigmac, thanks for the responce. I am using
CZModules V4 By: Telli (telli@codezwiz.com) and cannot find the line to place the code in. is there another way

Thanks



Back to top Reply with quote
#5   re: Create Link that opens new window in module
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
Try this

open blocks/blcok-modules

find
$content .= "<table border=0 cellpadding='1' cellspacing=1><tr><td width='16'><img src=\"$arrowimg\" align=\"absmiddle\" border=\"0\"></td><td><a href=\"modules.php?name=$m_title\" title=\"$m_title2\" onMouseOver=\"self.status=' $m_title2 ';return true\" onmouseout=\"self.status='';return true\">$m_title2</a></td></tr></table>\n";
          }                       
        }
      }
    }
  }


after add
$content .= "<table border=0 cellpadding='1' cellspacing=1><tr><td width='16'><img src=\"$arrowimg\" align=\"absmiddle\" border=\"0\"></td><td><a href=\"path to file" title=\"file title\" onMouseOver=\"self.status=' file title ';return true\" onmouseout=\"self.status='';return true\">file title</a></td></tr></table>\n";


Try that and let me know how it works


Back to top Reply with quote
#6   
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
You could always create a new module by making a folder and calling what you want your link or module called then upload it to the module, then take you html you want go here [ Register or login to view links on this board. ] use the module creator save it as index.php then upload to the folder you created then activate it.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum