Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
FireATST
RavenNuke(tm) Development Team



Joined: Jun 12, 2004
Posts: 654
Location: Ohio

PostPosted: Mon Dec 19, 2005 11:42 pm Reply with quote

I am missing something here. Would you please enlighten me where the following documented changes need to be made?

2- Additional changes for third party add-ons:
if ($mainfile == 1) {
should be changed to:
if (defined('NUKE_FILE')) {

if ($module == 1) {
should be changed to:
if (defined('MODULE_FILE')) {

if ($footer == 1) {
should be changed to:
if (defined('NUKE_FOOTER')) {

if ($header == 1) {
should be changed to:
if (defined('NUKE_HEADER')) {

I am having problems getting a icon in my admin modules section to work. It is an addon called babstats for tracking of online gaming stats. When I click on the icon in the admin modules section it takes me to a white page. On the above codes, in which .php file do these changes have to be made?

Thanks.... Smile
 
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Dec 20, 2005 12:30 am Reply with quote

Well your addon could need any of those changes. A blank page could be any error though.

Enable error reporting and check your error logs

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
FireATST







PostPosted: Tue Dec 20, 2005 8:58 am Reply with quote

ty Evaders99......here is the error message that I am receiving:

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/fireshou/public_html/mainfile.php on line 82

Fatal error: Cannot redeclare stripos_clone() (previously declared in /home/fireshou/public_html/mainfile.php:110) in /home/fireshou/public_html/mainfile.php on line 110
 
evaders99







PostPosted: Tue Dec 20, 2005 4:00 pm Reply with quote

Looks like that addon is loading mainfile.php more than once
Remove code such as
Code:


include("mainfile.php");
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Dec 20, 2005 4:27 pm Reply with quote

Evaders99, could he also change any references to include_once("mainfile.php")? Just thought it might be safer if he goes too far.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
evaders99







PostPosted: Tue Dec 20, 2005 11:16 pm Reply with quote

Sure that would work too. It shouldn't be necessary though, no script should be including your modules without having gone through mainfile.php
 
FireATST







PostPosted: Thu Dec 22, 2005 8:19 am Reply with quote

Thanks! So what you are recommending is check the code in the addon and where it says include mainfile.php change it to include_once("mainfile.php")? I will look at the code today.....thanks again.
 
FireATST







PostPosted: Thu Dec 22, 2005 5:48 pm Reply with quote

Thanks guys!!! While looking through the coding for the addon admin.php, I found where they had entered require_once("mainfile.php") instead of include_once("mainfile.php") When I changed the wording it now works correctly. Again, thanks for the help.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

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 ©