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");
}
|