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


Author: virtuaopolisPostPosted: Thu Jun 10, 2004 2:02 pm    Post subject: Re: Fortress 1.20b phpBBtoNuke Admin Conflict

Great work madman! Kudos to you! Patched with credits >=]

~percy

Author: Zhen-XjellPostPosted: Thu Jun 10, 2004 2:34 pm    Post subject: Re: Fortress 1.20b phpBBtoNuke Admin Conflict

Nice code work madman... Did you write that from running into the same bug?

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: Zhen-XjellPostPosted: Thu Jun 10, 2004 4:52 am    Post subject:

That sure is a bug... I'm not too sure what is causing yet.

Author: madmanPostPosted: Thu Jun 10, 2004 9:29 am    Post subject: Re: Fortress 1.20b phpBBtoNuke Admin Conflict

In mainfile.php, replace a line:

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, 137 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 - Fortress 1.20b phpBBtoNuke Admin Conflict Fortress 1.20b phpBBtoNuke Admin Conflict

Nuke Cops -> Fortress™

Author: virtuaopolis PostPosted: Wed Jun 09, 2004 8:28 pm    Post subject: Fortress 1.20b phpBBtoNuke Admin Conflict

I am currently using Fortress 1.20b on phpNuke 7.1 with phpBBtoNuke 2.0.6

When i try to acces the "forums" icon in the admin panel (http://thesite.com/modules/Forums/admin/index.php) [signed in as a site admin with full access].

I get this error message:
Warning: main(fortress.php): failed to open stream: No such file or directory in /usr/local/etc/httpd/htdocs/public_html/mainfile.php on line 29

Warning: main(): Failed opening 'fortress.php' for inclusion (include_path='') in /usr/local/etc/httpd/htdocs/public_html/mainfile.php on line 29

Fatal error: Call to undefined function: bards() in /usr/local/etc/httpd/htdocs/public_html/mainfile.php on line 30

Despite the problem accessing the administration panel for the forums, the fortress works fine, I get the emails of the attacks, the CSV and HTML are updated and there are no other problems in the site.

The address to the forums administration does not seem to follow the modules.php?name=OP_HERE designation. Could this be why? Ifso, any sugestions would be wonderfuly appreciated.

THank you in advance

~Percy
Code:
include("fortress.php")


With this one:

Code:
function nuke_getRootPath() {
   $ret  = "./";
   if (eregi('\/modules\/[^\/]+\/[^\/]+\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../../../"; }
   else if (eregi('\/modules\/[^\/]+\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../../"; }
   else if (eregi('\/modules\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../"; }
   return $ret;
}
require_once(nuke_getRootPath().'fortress.php');


Be careful that nuke_getRootPath() function also defined by Admin Secure. In that case (and you install Admin Secure as well), simply put this single line for fortress inclusion:

Code:
require_once(nuke_getRootPath().'fortress.php');
madman wrote:
In mainfile.php, replace a line:

Code:
include("fortress.php")


With this one:

Code:
function nuke_getRootPath() {
   $ret  = "./";
   if (eregi('\/modules\/[^\/]+\/[^\/]+\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../../../"; }
   else if (eregi('\/modules\/[^\/]+\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../../"; }
   else if (eregi('\/modules\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../"; }
   return $ret;
}
require_once(nuke_getRootPath().'fortress.php');


Be careful that nuke_getRootPath() function also defined by Admin Secure. In that case (and you install Admin Secure as well), simply put this single line for fortress inclusion:

Code:
require_once(nuke_getRootPath().'fortress.php');

Author: GetyousomeofthisLocation: Tulsa Oklahoma PostPosted: Thu Jun 10, 2004 3:47 pm    Post subject: Re: Fortress 1.20b phpBBtoNuke Admin Conflict

Laughing Nice fix madman thanks . This has been bothering me for quite some time.. It was getting old having to remove the Union tap long enough to admin the forums. Awesome work Wink

Last edited by Getyousomeofthis on Fri Jun 11, 2004 7:01 pm; edited 1 time in total

Author: madman PostPosted: Thu Jun 10, 2004 3:58 pm    Post subject: Re: Fortress 1.20b phpBBtoNuke Admin Conflict

Glad to hear it solve many problems, not only forum admin access. Very Happy
Maybe it's a good idea to put similar function in upcoming php-nuke version so we able to find actual nuke root directory when we running a script not from root, like phpbb forum admin.

Author: Tank863Location: Philadelphia PostPosted: Fri Jun 11, 2004 6:11 am    Post subject: Re: Fortress 1.20b phpBBtoNuke Admin Conflict

I am still, even after the code change getting a forbidden error message.
I am unable to access the admin section for my forums...

Crying or Very sad

I am using Nuke 6.5 all patched up, Admin Secure 1.7, Fortress 1.20, Sentinel 1.2,

Author: Zhen-Xjell PostPosted: Fri Jun 11, 2004 8:14 am    Post subject:

Chris, it might be time to start disabling packages to see where the problems lies.

Author: Tank863Location: Philadelphia PostPosted: Fri Jun 11, 2004 12:23 pm    Post subject:

That's what I thought...

Like I said before... always my nuke... I will test it out and post the results back...

Hoepfully I can get this thing working again...\

Anyway.. Thanks Paul.. PS: Had my first lesson in PHP coding.. I told my buddy.. I already knew that from messing around with php-nuke.. teach me something new...

Author: Zhen-Xjell PostPosted: Fri Jun 11, 2004 6:40 pm    Post subject:

Coolio!

Author: madman PostPosted: Sun Jun 13, 2004 2:57 pm    Post subject: Re: Fortress 1.20b phpBBtoNuke Admin Conflict

Tank, check your PM.



Nuke Cops -> Fortress™

All times are GMT - 8 Hours

Page 1 of 1

Powered by phpBB © 2001,2002 phpBB Group
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.080 Seconds - 311 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::