Page Index Toggle Pages: 1
Topic Tools
Normal Topic problem setting up groups/positions (Read 523 times)
Carsten
Ex Member


Re: problem setting up groups/positions
Reply #2 - Nov 18th, 2010 at 8:40pm
Post Tools
Post independant member groups are identified to yabb by a number - not by their displayed names. The easy way of finding the id numbers for groups would be to look in the gererated html source of 'Admin Edits' in 'Edit Profile' - looks something like this:

Code
Select All
			<select name="addgroup" id="addgroup" size="3" multiple="multiple">
			<option value="1">Mod Writer</option><option value="2">Mod Reviewer</option><option value="3">YaBB Friend</option>
			</select>
 


In this case you would assign 'Mod Writer' to a member by:
Code
Select All
${$uid.$reguser}{'addgroups'}     = 1; 



Edited:
Nov 18th, 2010 at 8:40pm Mutters - you beat me to it  Grin - good for you...
« Last Edit: Nov 18th, 2010 at 8:41pm by »  
Back to top
 
IP Logged
 
Anya Tafliovich
YaBB Newcomer
*
Offline



Posts: 2

None
Re: problem setting up groups/positions
Reply #1 - Nov 18th, 2010 at 8:38pm
Post Tools
I've figured it out. Can't find a way to delete my question, so I'll post an answer.

Instead of specifying the (string) name of the group, I need to specify its number. For example,

     ${$uid.$reguser}{'position'}      = 3;
     ${$uid.$reguser}{'addgroups'}  = 4;
  
Back to top
 
IP Logged
 
Anya Tafliovich
YaBB Newcomer
*
Offline



Posts: 2

None
problem setting up groups/positions
Nov 18th, 2010 at 8:08pm
Post Tools
I am setting up a forum (version 2.5) in which I register all its members with a script. One thing is not working:
neither
${$uid.$reguser}{'addgroups'}     = "MyGroup";
nor
${$uid.$reguser}{'position'}     = "MyGroup";
result in setting the user's position to MyGroup properly (MyGroup is a group that already exists).

The strange thing is: I can see the position MyGroup in the "View/Delete Members" view of "Member Controls". But it does not show in a regular Members view. And it does not show in an individual user's profile. And it does not affect the user's access to various bulletin boards.

When I set up the position manually, everything works. But this is infeasible in my case: I expect 100 users.

Please, advise!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top