Can not change User Permissions - Tried all the fixes!

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   re: Can not change User Permissions - Tried all the fixes!
nicruisin
CZ Active Member
nicruisin has been a member for over 20 year's 20 Year Member
uk.gif
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Feb 06, 2004
0.02 posts per day
Posts: 119
Points: 6,632
   
icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif

It worked!

icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif

That post is for phpbb NOT nuke but I tried what it said and it worked! I can now mod my forums again, click on that link above to see what the deal is, I have posted the 'important' part here so use it at your own risk if I find any errors I will be sure to lets you know but it seems to have done the trick!





The second solution is better suited for existing installations with or without mods operating under php5 (under php4 as well in theory) where the admin does not wish to do a full board upgrade.

This solution involves editing admin/admin_ug_auth.php

Locate the following code:

for($i = 0; $i < count($forum_access); $i++)
         {
            $forum_id = $forum_access[$i]['forum_id'];

            if (
               ( isset($auth_access[$forum_id]['auth_mod']) && $change_mod_list[$forum_id]['auth_mod'] != $auth_access[$forum_id]['auth_mod'] ) ||
               ( !isset($auth_access[$forum_id]['auth_mod']) && !empty($change_mod_list[$forum_id]['auth_mod']) )
            )
            {
               $update_mod_status[$forum_id] = $change_mod_list[$forum_id]['auth_mod'];

               if ( !$update_mod_status[$forum_id] )


There are three occurances of $change_mod_list[$forum_id]['auth_mod'] -- ['auth_mod'] doesn't belong there.

The corrected code looks like this:

for($i = 0; $i < count($forum_access); $i++)
         {
            $forum_id = $forum_access[$i]['forum_id'];

            if (
               ( isset($auth_access[$forum_id]['auth_mod']) && $change_mod_list[$forum_id] != $auth_access[$forum_id]['auth_mod'] ) ||
               ( !isset($auth_access[$forum_id]['auth_mod']) && !empty($change_mod_list[$forum_id]) )
            )
            {
               $update_mod_status[$forum_id] = $change_mod_list[$forum_id];

               if ( !$update_mod_status[$forum_id] )


Shortcut: As those 3 occurrances of $change_mod_list[$forum_id]['auth_mod'] are the only ones in the file. A quick method of fixing this bug is a global "find and replace" of $change_mod_list[$forum_id]['auth_mod'] with $change_mod_list[$forum_id] using an appropriate text editor.




I hope this helps some people out cos it totally did my head in! icon_biggrin.gif

A big thanks to Taut and Telli for helping out, good work, I probably would have just resigned myself to somethings are not meant to be! icon_rolleyes.gif

Thanks again!



_________________


[ Register or login to view links on this board.] [color=red]Cars, babes and cruisin' from the maddest palce of them all... Northern Ireland!
Back to top Reply with quote
#2   re: Can not change User Permissions - Tried all the fixes!
breeze404
CZ Newbie
breeze404 has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Nov 30, 2005
0.00 posts per day
Posts: 2
Points: 44
   
icon_cry.gif I have this same problem and my site is brand new, but i use nukeplanet.com version.

You go to User Admin permissions and say allowed access and it says succesful but then that person cannot c the hidden forum., i have tried the fixgroup.php fix but it does not work. Also i can make someone admin but not mod or i cannot just let them see hidden forums!!

This error always appears on the top of my page so i need help with it: Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /home/headneme/public_html/b404/mainfile.php on line 43



Back to top Reply with quote
#3   re: Can not change User Permissions - Tried all the fixes!
breeze404
CZ Newbie
breeze404 has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Nov 30, 2005
0.00 posts per day
Posts: 2
Points: 44
   
Does not work... That file is not in my admin folder.OF course im using the nukeplanet.com version. 7.6.2 is the version.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum