This block works in Explorer, netscape, and Mozilla, but not in Firefox. Specifically, the last table which shows the various categories will not display in Firefox...WTF?
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
// Block TV access
if (eregi("block-TV_access.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content .="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\"><tr><td>";
$content .= "<td><A HREF=\"modules.php?name=$module_name&tv=on\">
<IMG SRC=\"modules/$module_name/images/tvsets/$tvset\" border=\"0\"></a></td>";
$content .="<td width=\"50%\">Television isn't just for your TV. Now you can keep up with the latest news and entertainment from your very own PC. Click a category to the right or click the TV image for a list of all the channels offered @ BrainSmashR.com</td>";
$content .= "<td>";
$content .= $opentable;
$col=0;
$addsql = "";
if ($tv_enabled) $addsql.= "&tv=on";
if ($radio_enabled) $addsql.= "&radio=on";
if ($vod_enabled) $addsql.= "&vod=on";
if ($sf_enabled) $addsql.= "&sf=on";
$content .= "<table width=\"50%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
$sql = "SELECT * FROM ".$prefix."_tv_genero ORDER BY $l_language";
$temp = $db->sql_query($sql);
while ($ligne = $db->sql_fetchrow($temp)) {
$sql2 = "SELECT genre FROM ".$prefix."_tv WHERE genre='".$ligne['idgenero']."' AND public='1'";
$temp2 = $db->sql_query($sql2);
$row2 = $db->sql_numrows($temp2);
if ($row2> 0) {
$content .= "<td width=\"50%\" valign=\"top\">";
$content .= "<a href=\"modules.php?name=$module_name$addsql&sig=".$ligne['idgenero']."\"><b>".$ligne[$l_language]."</b></a><br>";
$sql3 = "SELECT genre,category,$l_language,idcat FROM ".$prefix."_tv INNER JOIN ".$prefix."_tv_cat WHERE ".$prefix."_tv_cat.idcat=".$prefix."_tv.category AND genre='".$ligne['idgenero']."' AND category <> 0 AND public='1' GROUP BY category ORDER BY $l_language";
$temp3 = $db->sql_query($sql3);
$row3 = $db->sql_numrows($temp3);
if ($row3 >0) {
$content .= "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\"><tr><td>";
$category = "";
while ($ligne3 = $db->sql_fetchrow($temp3)) {
if ($category != "") $category .= ", ";
$category .= "<a href=\"modules.php?name=$module_name$addsql&sig=".$ligne3['genre']."&sic=".$ligne3['idcat']."\">".$ligne3[$l_language]."</a>";
}
$content .= $category;
$content .= "</td></tr></table>";
}
$content .= "</td>";
$col++;
if ($col == 2) { $content .= "</tr><tr>"; $col = 0; }
}
I mean it doesn't even give an error. It just displays as if that table doesn't exist. In addition to that problem......everything below the block appears in a "foreign" language!!
Suxor!!
_________________
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Syenna Private
Joined: Aug 27, 2004
Posts: 47
Posted:
Wed Oct 13, 2004 3:06 am
It's early, I haven't had enough coffee, and my eyes started to droop when I tried following your code, but I've had table problems with Firefox before, and it's usually due to my not having closed a tag somewhere (usually the </table> one). Can't imagine what would be causing the language switch though.
Have you tried viewing the source in Firefox to see if you can hunt down the problem that way? Might give you a fresh perspective on the problem.
Sy
BrainSmashR Support Mod
Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
Posted:
Wed Oct 13, 2004 8:52 am
Language problem may be unrelated as it has now appeared in Explorer.
In the process of redoing my site.
_________________
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
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