Author |
Message |
fade2gray
Regular


Joined: Mar 26, 2006
Posts: 87
Location: UK
|
Posted:
Fri Apr 21, 2006 11:35 pm |
|
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. |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sat Apr 22, 2006 3:40 pm |
|
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! |
|
|
 |
fade2gray

|
Posted:
Sat Apr 22, 2006 4:14 pm |
|
I've changed the code back as stated; try my www link. |
|
|
|
 |
evaders99

|
Posted:
Sat Apr 22, 2006 6:05 pm |
|
One thing to check.. make sure the Anonymous user_level isn't 2  |
|
|
|
 |
fade2gray

|
Posted:
Sat Apr 22, 2006 7:06 pm |
|
Yes, the anonymous user_level is 2
What should it be, 0 or 1? |
|
|
|
 |
evaders99

|
Posted:
Sat Apr 22, 2006 11:15 pm |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Apr 23, 2006 7:01 am |
|
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! |
|
|
 |
fade2gray

|
Posted:
Sun Apr 23, 2006 10:03 am |
|
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?  |
|
|
|
 |
fade2gray

|
Posted:
Sun Apr 23, 2006 10:13 am |
|
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.  |
|
|
|
 |
evaders99

|
Posted:
Sun Apr 23, 2006 5:47 pm |
|
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

|
Posted:
Sun Apr 23, 2006 6:58 pm |
|
|
|
 |
fade2gray

|
Posted:
Mon Apr 24, 2006 2:23 am |
|
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. I think clearing the cache and cookies done the trick.
Thanks for the help. |
|
|
|
 |
|