Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jul 26, 2005 2:22 pm Reply with quote

Hi bob,

yeah long time ago since i ever saw an error with your scripts bob but cant help it now....lol
Ok story is ,i changed to pached 3.0 and suddenly your news popup window shows...

Fatal error: Cannot redeclare opentable() (previously declared in /themes/fiappleblue210/tables.php:15) in /themes/fiappleblue210/tables.php on line 14

This shows with my current theme and with nuke standards deepblue.
Naturaly when i set the window setting to "page" it shows everything normal.
Any idea?
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Tue Jul 26, 2005 4:27 pm Reply with quote

In your themes/fiappleblue210/theme.php file, try changing
Code:
include("themes/fiappleblue210/tables.php");

to
Code:
include_once("themes/fiappleblue210/tables.php");
 
View user's profile Send private message
hitwalker
PostPosted: Tue Jul 26, 2005 4:45 pm Reply with quote

hi raven,
well nice idea but it moved the problem to the themeheader function..

Code:


Fatal error: Cannot redeclare themeheader() (previously declared in /themes/fiappleblue210/theme.php:33) in /themes/fiappleblue210/theme.php on line 32
 
Raven
PostPosted: Tue Jul 26, 2005 4:57 pm Reply with quote

Well, you have the general idea Laughing - Happy hunting! See also this post Only registered users can see links on this board! Get registered or login!
 
hitwalker
PostPosted: Tue Jul 26, 2005 5:01 pm Reply with quote

ah thanks,that looks interesting.
gonna check that out... Wave
 
hitwalker
PostPosted: Tue Jul 26, 2005 5:20 pm Reply with quote

well to bad raven,i hoped that was gonna solve it but no...
it sure looked as it was the same error but it didnt help..
Bob are you in the area...?...lol
 
dean
Worker
Worker


Joined: Apr 14, 2004
Posts: 193

PostPosted: Wed Jul 27, 2005 1:26 am Reply with quote

I see the same error when logging out of a theme that is not the default theme for the site. I am running patch 3.0b, Sentinel 2.32 on nuke 7.3. I tried both of the include_once edits in both the related theme and Sentinel print files to no avail. Save me Nuke Gods!!!!!
 
View user's profile Send private message
chatserv
Member Emeritus


Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Wed Jul 27, 2005 2:09 am Reply with quote

I'm thinking this is the code that creates the popup window (in the News module's index.php):
Code:
        include("header.php");

        if($neconfig['readmore'] == 1) {
            echo "<script language='Java Script'>\n";
            echo "<!-- Begin\n";
            echo "function NewsReadWindow(mypage, myname, w, h, scroll) {\n";
            echo "var winl = (screen.width - w) / 2;\n";
            echo "var wint = (screen.height - h) / 2;\n";
            echo "winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''\n";
            echo "win = window.open(mypage, myname, winprops)\n";
            echo "if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }\n";
            echo "}\n";
            echo "//  End -->\n";
            echo "</ script>\n";
        }

If that's the case i would move the header.php include line to the end of it:
Code:
        if($neconfig['readmore'] == 1) {

            echo "<script language='Java Script'>\n";
            echo "<!-- Begin\n";
            echo "function NewsReadWindow(mypage, myname, w, h, scroll) {\n";
            echo "var winl = (screen.width - w) / 2;\n";
            echo "var wint = (screen.height - h) / 2;\n";
            echo "winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''\n";
            echo "win = window.open(mypage, myname, winprops)\n";
            echo "if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }\n";
            echo "}\n";
            echo "//  End -->\n";
            echo "</ script>\n";
        }
        include("header.php");

Worth trying (i added a space to java script and / script to avoid triggering NukeSentinel).
 
View user's profile Send private message Visit poster's website
Raven
PostPosted: Wed Jul 27, 2005 2:15 am Reply with quote

And/Or change it to include_once("header.php");
 
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Wed Jul 27, 2005 2:46 am Reply with quote

In modules/News/read_article.php find:
Code:
include("themes/$Theme_Sel/theme.php");

Change it to:
Code:
include_once("themes/$Theme_Sel/theme.php");

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
hitwalker
PostPosted: Wed Jul 27, 2005 4:39 am Reply with quote

well how am i gonna bring it....mmmm
thanks cs...for breaking your head over it...lol..
thanks raven but the winner is bob.... Cheers
and like to say its stupid i didnt thought of the read_article.php before.
I played around with the file before as bob knows to include google adsense.
should have looked into that file instead of the tables and/or header...
 
chatserv
PostPosted: Wed Jul 27, 2005 9:33 am Reply with quote

You learn something new everyday Laughing
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©