You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 142 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Error only in Firefox?!?!?! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Thu Oct 07, 2004 6:06 pm Reply with quoteBack to top

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

global $db,$prefix;

$sql= "SELECT * FROM ".$prefix."_tv_options";
$temp = $db->sql_query($sql);
$ligne = $db->sql_fetchrow($temp);
$module_name = $ligne['module_name'];
$nb_par_page = $ligne['nb_par_page'];
$topn = $ligne['top'];
$nbdays = $ligne['nbdays'];
$tvset = $ligne['tvset'];
$randomtvset = $ligne['randomtvset'];
if ($randomtvset == 1) {
    $c=0;
    $d = dir("modules/$module_name/images/tvsets");
    while($entry=$d->read()) {
        if ($entry != "." AND $entry != "..") {
                   $c=$c+1;
                   $tvsets[$c]=$entry;

             }
        }
        $random = mt_rand(1,$c);
        $tvset = $tvsets[$random];
}

global $db,$prefix,$currentlang,$language,$bgcolor1,$bgcolor2;

$sql = "SELECT * FROM ".$prefix."_tv_options";
$temp = $db->sql_query($sql);
$ligne = $db->sql_fetchrow($temp);
$public_name = $ligne['public_name'];
$module_name = $ligne['module_name'];
$nb_par_page = $ligne['nb_par_page'];
$topn = $ligne['top'];
$nbdays = $ligne['nbdays'];
$tv_enabled = $ligne['tv_enabled'];
$radio_enabled = $ligne['radio_enabled'];
$vod_enabled = $ligne['vod_enabled'];
$sf_enabled = $ligne['sf_enabled'];

require_once("modules/$module_name/functions.php.inc");

if ($multilingual == 1) {
   if (test_language()) $l_language=$currentlang; else $l_language="english";
} else $l_language=$currentlang;

include("modules/$module_name/language/lang-english.php");

$opentable = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
        <tr>
          <td bgcolor=\"$bgcolor2\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
              <tr>
                <td bgcolor=\"$bgcolor1\">";
$closetable = "</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>";

$content .="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\"><tr><td>";
$content .= "<td><A HREF=\"modules.php?name=$module_name&amp;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.= "&amp;tv=on";
if ($radio_enabled) $addsql.= "&amp;radio=on";
if ($vod_enabled) $addsql.= "&amp;vod=on";
if ($sf_enabled) $addsql.= "&amp;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&amp;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&amp;sig=".$ligne3['genre']."&amp;sic=".$ligne3['idcat']."\">".$ligne3[$l_language]."</a>";
                          }
                          $content .= $category;
                          $content .= "</td></tr></table>";
               }
               $content .= "</td>";
               $col++;
               if ($col == 2)  { $content .= "</tr><tr>"; $col = 0; }
        }

    }

$content .= "</tr>";   

$content .= "</table>";
$content .= $closetable;
$content .="</td></tr><tr><td>";

$content .= "</td></tr></table>";

?>

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Fri Oct 08, 2004 4:27 am Reply with quoteBack to top

Indeed, on some occassions Firefox doesn't respond to html-code like other browsers do.

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Fri Oct 08, 2004 9:02 am Reply with quoteBack to top

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!!

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
Syenna
Private
Private


Joined: Aug 27, 2004
Posts: 47


PostPosted: Wed Oct 13, 2004 3:06 am Reply with quoteBack to top

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
Find all posts by SyennaView user's profileSend private message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Wed Oct 13, 2004 8:52 am Reply with quoteBack to top

Language problem may be unrelated as it has now appeared in Explorer.

In the process of redoing my site.

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.593 Seconds - 180 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::