|
» Online Users: 75 |
| 0 members and 75 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 11:10 PM. |
|
» .::. |
Web Hosting - web hosting, dedicated servers and web design services
|
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
|
|
|
|
|
|
|
|
|
|
|
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.
|
|
|
|
|
About this Page This is a discussion on Top 5 Sites links open in _self? within the Nuke 6.5 to 6.9 - Modules forums, part of the PHP-Nuke 6.5 to 6.9 category; I would like to know how I can change the link of the top 5 site links block to open ... |
|
 |
 |
|
 |

07-15-2003, 12:47 PM
|
|
Junior Member
|
|
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Posts: 137
|
|
|
Top 5 Sites links open in _self?
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
|

07-15-2003, 01:12 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
I'd have to see the code for that block to see if it is possible. Which it should be.
mikem
|

07-15-2003, 10:29 PM
|
|
Junior Member
|
|
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Posts: 137
|
|
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&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");
}
|
|

07-15-2003, 10:39 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
target=\"NEW\">
should be
target=\"_blank\">
that "should" work even though you say it didn't
|

07-15-2003, 11:02 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
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?
|

07-15-2003, 11:11 PM
|
|
Junior Member
|
|
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Posts: 137
|
|
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
|

07-15-2003, 11:30 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
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?
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|