PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jul 26, 2005 4:45 pm Reply with quote Back to top

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Jul 26, 2005 4:57 pm Reply with quote Back to top

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 to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jul 26, 2005 5:01 pm Reply with quote Back to top

ah thanks,that looks interesting.
gonna check that out... Wave
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jul 26, 2005 5:20 pm Reply with quote Back to top

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
View user's profile Send private message
dean
Worker
Worker


Joined: Apr 14, 2004
Posts: 193

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

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
The Mouse Is Extension Of Arm


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

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

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
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Jul 27, 2005 2:15 am Reply with quote Back to top

And/Or change it to include_once("header.php");
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
BobMarion
Former Admin in Good Standing


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

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

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");
View user's profile Send private message Send e-mail Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed Jul 27, 2005 4:39 am Reply with quote Back to top

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...
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Wed Jul 27, 2005 9:33 am Reply with quote Back to top

You learn something new everyday Laughing
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum