A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
HOW TO MANAGE USERS
Apr 22, 2009
1:07 am
joliva
Guest

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??

Apr 22, 2009
2:11 am

SP Master
Forum Posts: 22175
Member Since:
Nov 9, 2008
Offline

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.

Yellow Swordfish
Apr 22, 2009
2:30 am
joliva
Guest

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

Apr 22, 2009
4:51 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

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

Apr 28, 2009
9:34 am
joliva
Guest

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?

Apr 28, 2009
6:13 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

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…

Apr 29, 2009
4:19 am
joliva
Guest

yes i Know is eaisier but i have to do it automatic.

I have make a function

function sf_mod_membership($usergroup_id, $user_id)
{
    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_update_member_moderator_flag($user_id);
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

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Conrad_Farlow, Jason Clark
51 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

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

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22175), Mr Papa (23688)