Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
fade2gray
Regular
Regular



Joined: Mar 26, 2006
Posts: 87
Location: UK

PostPosted: Fri Apr 21, 2006 11:35 pm Reply with quote

Hi,

Whatever theme used, the "Go to Administration Panel" link is visible to all users on the Nuke Forums page whereas it was hidden in the original phpBB unless any logged in user had phpBB admin status. The link now only works for Nuke super admins; all other users, including the original phpBB admins, get presented with "Illegal Operation" when clicking the link.

I found that the "Go to Administration Panel" link can be hidden from all users by commenting out or deleting the following piece of code from ../includes/page_tail.php.

Code:
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("modules/Forums/admin/index.$phpEx?admin=1") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';


Or if the above code is changed to...

Code:
$admin_link = ( is_admin($admin)) ? '<a href="' . append_sid("modules/Forums/admin/index.$phpEx?admin=1") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';


...the link will only be visible to Nuke super admins.

Can anyone tell me how to modify the above code to include Nuke forum admins?

Thanks.
 
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat Apr 22, 2006 3:40 pm Reply with quote

As I understand it, it is not shown to all users.. only the ones with forums admin permissions. This check should be correct
Code:


$userdata['user_level'] == ADMIN


I cannot seem to duplicate the problem.. can you show us where this is occuring?

_________________
- 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
fade2gray







PostPosted: Sat Apr 22, 2006 4:14 pm Reply with quote

I've changed the code back as stated; try my www link.
 
evaders99







PostPosted: Sat Apr 22, 2006 6:05 pm Reply with quote

One thing to check.. make sure the Anonymous user_level isn't 2 Smile
 
fade2gray







PostPosted: Sat Apr 22, 2006 7:06 pm Reply with quote

Yes, the anonymous user_level is 2 Exclamation

What should it be, 0 or 1?
 
evaders99







PostPosted: Sat Apr 22, 2006 11:15 pm Reply with quote

Should be 1
 
montego
Site Admin



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

PostPosted: Sun Apr 23, 2006 7:01 am Reply with quote

Evaders, how does that get set? I have searched all over the screens. Would just like to know in case this comes up again. Thx.

_________________
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
fade2gray







PostPosted: Sun Apr 23, 2006 10:03 am Reply with quote

montego wrote:
Evaders, how does that get set? I have searched all over the screens. Would just like to know in case this comes up again. Thx.
Just a thought - could it be a side effect of merging phpBB with nuke? Confused
 
fade2gray







PostPosted: Sun Apr 23, 2006 10:13 am Reply with quote

Current situation:

  • Restored includes/page_tail.php to original.
  • Set Anonymous user_level to 1.


Now the Forums "Go to Administration Panel" link is only viewable to the original phpBB admin (memories of Memberlist not viewable by Nuke admins), but again gets "Illegal Operation" when clicked on. Confused
 
evaders99







PostPosted: Sun Apr 23, 2006 5:47 pm Reply with quote

Illegal operation results from a bad check of the $admin variable. Going directly to modules/Forums/admin/index.php should work fine


Yes if you merged from phpBB, then you may have issues with the user_level's being changed. This is why I recommend a conversion script (mine does the correct change, its as simple as setting user_level = user_level + 1)
 
montego







PostPosted: Sun Apr 23, 2006 6:58 pm Reply with quote

evaders99, Thanks!
 
fade2gray







PostPosted: Mon Apr 24, 2006 2:23 am Reply with quote

Quote:
Now the Forums "Go to Administration Panel" link is only viewable to the original phpBB admin (memories of Memberlist not viewable by Nuke admins), but again gets "Illegal Operation" when clicked on.

hmmm... everything's ok now. Embarassed I think clearing the cache and cookies done the trick.

Thanks for the help.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©