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

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
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, 41 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 - 6.5(7) Changing User Permissions (Forum) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Darkmoor_Dragon
Sergeant
Sergeant


Joined: Jan 31, 2003
Posts: 79

Location: UK

PostPosted: Sun Feb 09, 2003 4:39 pm Reply with quoteBack to top

Error:
Quote:
Couldn't update private forum permissions

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near ' 1)' at line 2

INSERT INTO nuke_bbauth_access (forum_id, group_id, auth_mod) VALUES (8, , 1)

Line : 403
File : /home/domains/fourbelowzero.com/user/htdocs/modules/Forums/admin/admin_ug_auth.php


Occurs hwen trying to update an existing membet to have mdoerator status on a particular forum.
Find all posts by Darkmoor_DragonView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Feb 09, 2003 4:48 pm Reply with quoteBack to top

ok, being that it's me who seems to be fixing hte forums for this site, I'll take a look.

Artificialintel
Find all posts by ArtificialIntelView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Feb 09, 2003 4:50 pm Reply with quoteBack to top

I just had a quick look.

Is that user a member of any groups??? I just picked a random user on my site, promoted them to moderator on 1 forum and back again without the slightest hint of an error Rolling Eyes

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
Darkmoor_Dragon
Sergeant
Sergeant


Joined: Jan 31, 2003
Posts: 79

Location: UK

PostPosted: Sun Feb 09, 2003 5:07 pm Reply with quoteBack to top

Yeah - they are a member of a custom group.

Worked ok for a user who wasnt in a custom group.
Find all posts by Darkmoor_DragonView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Feb 09, 2003 5:14 pm Reply with quoteBack to top

soz dude. I've just tested it again on my site wiht a user who's in a group I created and it still worked fine Confused

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
Darkmoor_Dragon
Sergeant
Sergeant


Joined: Jan 31, 2003
Posts: 79

Location: UK

PostPosted: Sun Feb 09, 2003 5:17 pm Reply with quoteBack to top

Hmm - just messed with it - same error every time I try it with someone who's a member of a group.

I'll keep playing see if i can find out a more discrete pattern or a way around it.
Find all posts by Darkmoor_DragonView user's profileSend private messageVisit poster's website
Darkmoor_Dragon
Sergeant
Sergeant


Joined: Jan 31, 2003
Posts: 79

Location: UK

PostPosted: Sun Feb 09, 2003 5:23 pm Reply with quoteBack to top

Hmm - it errors out everytime if the user is a member of any group.

Only works if they aren't in a group.
Find all posts by Darkmoor_DragonView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Feb 09, 2003 5:36 pm Reply with quoteBack to top

have you tried adding the group as a moderator???

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
Darkmoor_Dragon
Sergeant
Sergeant


Joined: Jan 31, 2003
Posts: 79

Location: UK

PostPosted: Sun Feb 09, 2003 5:42 pm Reply with quoteBack to top

that works aye... though it doesnt display any moderator on the actual forums (not a huge problem).

I made myself a memeber of the group "Moderators" - made "Moderators Group" a Mod of all forums - fine.

Still get the error trying to make an individual a moderator though - unless they dont belong to any group.
Find all posts by Darkmoor_DragonView user's profileSend private messageVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Sun Feb 09, 2003 7:11 pm Reply with quoteBack to top

This isn't a bug really, it's the way it works in phpbb.

You can't have Moderator permissions as both a user and a Member of a Moderators group or "special group". Confused

mikem
Find all posts by mikemView user's profileSend private message
Darkmoor_Dragon
Sergeant
Sergeant


Joined: Jan 31, 2003
Posts: 79

Location: UK

PostPosted: Sun Feb 09, 2003 7:41 pm Reply with quoteBack to top

K - thanks for the clarification Mike

Maybe worth putting in an error message to handle that? (For newbs like me)
Find all posts by Darkmoor_DragonView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon Feb 10, 2003 12:11 am Reply with quoteBack to top

if the group's not showing up as moderator, try setting it as "Closed" rather than "Hidden"

People still can't join it, but it'll show up.

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Mon Feb 10, 2003 6:06 am Reply with quoteBack to top

I think basically what is happening is the Error message you are getting, and it referring to that line in the auth file, is actually the line that simply displays the error if a value is already inserted in that part of the SQL database. There is already a value for permissions for that user, whether it be as a member of a Group of moderators or a Moderator him or herself. Thus the result is, the system is returning an error saying, "Hey this dude already has permissions for something else"...Maybe needs to be defined better.

"Could not update group permissions" is a little vague...

mikem
Find all posts by mikemView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon Feb 10, 2003 6:37 am Reply with quoteBack to top

soz, my last post was as a response to his "The moderators are not showing up in the actual forum" bit of one of his posts.

Artificialintel
Find all posts by ArtificialIntelView user's profileSend private message
layingback
Nuke Soldier
Nuke Soldier


Joined: May 02, 2003
Posts: 14


PostPosted: Fri May 02, 2003 12:17 pm Reply with quoteBack to top

OK, not a fix per se, but a cause, a workaround and future avoidance procedure. Without editing MySQL!

mikem, phpbb2 *is* supposed to allow membership of a Moderator group and be an individual Moderator too. (There are even notes about this in the Forum Admin.)

The cause of the problem is that the group_id is blank.

This link is to the discussion about that at phpBB.com:

http://www.phpbb.com/phpBB/viewtopic.php?t=94498&highlight=update+private+forum+permissions

It also includes a fix if you feel like editing your database. But there is another way.

Best I can tell, if you add a user to a *Moderator* group via Usergroups on the user level Forum menu (at top 'tween Search and Profile), this will not create a group_id record (just creates a normal non-moderator group membership?).

So for users already assigned to the group, take the user out of the group. Add their User Permissions, then put them back into the user group (see below).

To avoid this occurring with new users, don't add them to a *Moderator* group via Usergroup, instead go to Group Admin Management and add them to the group there. You'll have to add them as that group's Moderator, and then go back and re-instate the original moderator, but the user will have a group_id record now. So after that you'll always be able to change their User Permissions.

This should hold you until phpBB guys figure out the root cause.
Find all posts by layingbackView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
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.203 Seconds - 191 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::