Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 40
1 members and 39 guests
Installer
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas Electric Choice

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Modules

Reply
 
LinkBack Thread Tools Display Modes
Top 5 Sites links open in _self?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 137
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Top 5 Sites links open in _self? - 07-15-2003, 11:47 AM

I would like to know how I can change the link of the top 5 site links block to open in a blank page vs. _self or _parent. It is directing people away from my site and when closed obviously you know the problem. Any help is appreciated.

JM


Logos for free at http://www.jsm-inc.com

Be cool!
  Send a message via MSN to paycheck  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-15-2003, 12:12 PM

I'd have to see the code for that block to see if it is possible. Which it should be.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 137
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
07-15-2003, 09:29 PM

MIke as far as I can tell this is the chunk of code I need to work on, it is in the top-sites Module index.php line 550+ or so. I noticed the \"target=NEW\" in the code and tried a host of other things i.e. _blank etc. No go.

Good luck and thanks

I have bolded the ssection Ibelieve to be the culprit.

JM

Quote:
function LastLinks() {
global $prefix, $dbi,$latest,$altbgcolor1,$altbgcolor2;
include("header.php");
menu();
echo "
";
OpenTable();
$color = $altbgcolor1;
echo "<center><font class=\"option\">"._THE." $latest "._LATEST2."</font></center>
"
. "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><font class=\"content\">"
."<tr bgcolor=$color>"
."<td width=\"41%\">"._TITLE."</td>"
."<td width=\"23%\">"._CATEGORY."</td>"
."<td width=\"15%\"><div align=\"center\">"._ADDED."</div></td>"
."<td width=\"21%\"><div align=\"center\"><img src=\"modules/Top_Sites/images/stats.gif\" border=\"0\"></div></td>"
."</tr>";
$result=sql_query("select lid, title, catid,urlban,description, date, hits, linkratingsummary, totalvotes, validation from ".$prefix."_Top_Sites where validation='Y' order by lid desc limit $latest", $dbi);
while(list($lid,$title, $catid,$urlban,$description, $time, $hits, $linkratingsummary, $totalvotes, $validation)=sql_fetch_row($result, $dbi)) {
$result2=sql_query("select catname from ".$prefix."_Top_Sites_categories where catid=$catid", $dbi);
$row = mysql_fetch_array($result2);
$catname = $row["catname"];
$title = htmlspecialchars(stripslashes($title)); $description = htmlspecialchars(stripslashes($description));
if ($color == $altbgcolor1) { $color = $altbgcolor2; }
elseif ($color== $altbgcolor2) { $color = $altbgcolor1; }
echo"<tr bgcolor=$color>"
."<td><img src=\"modules/Top_Sites/images/urlgo.gif\" border=\"0\"> <a href=\"modules.php?name=Top_Sites&op=visit&amp;lid =$lid\" target=\"NEW\">$title</a></td>"
."<td>$catname</a></td>";

setlocale (LC_TIME, '$locale');
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2})[0-9]{1,2})[0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
echo"<td><div align=\"center\">$datetime</div></td>";
if ($totalvotes == 0 OR $totalvotes == 1) { $votestring = _VOTE;}
else { $votestring = _VOTES; }
echo "<td>( $totalvotes $votestring - $hits "._HITS.")</td>"
."</tr>";
}
echo "</table>";
CloseTable();
include("footer.php");
}


Logos for free at http://www.jsm-inc.com

Be cool!
  Send a message via MSN to paycheck  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-15-2003, 09:39 PM

target=\"NEW\">

should be

target=\"_blank\">

that "should" work even though you say it didn't
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-15-2003, 10:02 PM

OK..and wait a minute. Didn't you say in your firts post it was a block?
Now it is a MODULE? index.php file?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 137
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
07-15-2003, 10:11 PM

OK Mike check it out and tell me if it works for you. The top_5_sites block is down on the left. Let me know if it opens in a new window for you

http://www.jsm-inc.com/nuke/html/index.php


Logos for free at http://www.jsm-inc.com

Be cool!
  Send a message via MSN to paycheck  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-15-2003, 10:30 PM

nope..hehe..it opens in _self.
is there ANY reference in the block file?

and also check and make sure that is the only target line needed in the index.php for the module?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to open stream: No error in c:\web\themes\fiblue3d pj Theme packs 6 02-28-2005 02:59 PM
Integrating open source blogs godrox Nuke 7.x - Modules 1 01-10-2005 06:24 PM
Warning: main(db/mysql.php): failed to open stream: No such btrook Open topics 26 07-09-2003 11:30 PM
make a module link open target in new window? dephton Nuke 6.5 to 6.9 - Modules 2 06-19-2003 08:53 AM
Open Directory Project module Martin Purged Topics 5 12-13-2002 10:21 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31