Topic RSS
1:07 am
I have the users defined by the wp-role : Administrator, editor, autor, colaborator y suscriptor. I want diferents forum´s group users for colaborator and suscriptor. There are some way to make this automatic?? I want to change automatic forum group when i change the role in admin options of wp, it is posible??
Not at the moment but I know Mr Papa has some thoughts/plans on this so hopefully he will be passing this way soon and give a more definitive response.
2:30 am
I want to know something:
If i want to make my own code and when the administrator change the roll in wp the forum´s group change also.
Can you tell me some keys to do this??
Thank you very much for you answers
currently not possible except manually… that feature has been added to our 4.1 version currently in development with release hoped for in late Summer
9:34 am
yes i want to do manually, can you explain me a little, like what tables have to change in db to make good the group change??
thank of your time
EDITED:
I know the tables i have to change, are sfmembership and sfmember, I have to create a new member when insert a member, and when the admin change the rol i have to change de sfmembership. It is all ok?? I have to do another thing?? when a member is cleared I think is automatic no?
you can do it manually from the manage user groups page… after you changed the role, just change the user group membership for the user… easier than changing db…
4:19 am
yes i Know is eaisier but i have to do it automatic.
I have make a function
{
global $wpdb;
$sql ="UPDATE ".SFMEMBERSHIPS." set usergroup_id='".$usergroup_id."' ";
$sql.="WHERE user_id = '".$user_id."';";
return $wpdb->query($sql);
}
And in user-edit.php i have put a code thats call this function with apropiated parameters, changing the forum group., later i call these two functions
sf_rebuild_members_pm();
I have read in this forum they are necesary to perform some housecleaning. I have try and work correctly, but i want to know if this functions are necesary and what they do.
thank for your time
Most Users Ever Online: 444
Currently Online: Conrad_Farlow, Jason Clark
51 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 499
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2624
Members: 7354
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10876
Posts: 79446
Newest Members: ahcreate, eatonrabbit, indifrendz.com, Superfast, Jason Clark, LisaGergets, williambennettiv, scitexnz, Brad Holland, BlueDagger
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22175), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Quote
Offline



Visit

Privacy Policy



