Lampwrights Forum > Other Stuff > vBulletin Wordpress Bridge
Register Community Today's Posts Search

Reply
 
Thread Tools
06-10-2011, 03:28 PM   #1
legal
Junior Member
 
Join Date: Jun 2011
Posts: 6
Rep Power: 0
legal is getting browny points
Permissions from sedondary vB group

Good day, Jeff!

Thanks for your bridge, I set up it successfully, but I can't understand mapping functionality: is it works for primary vb_group only, or roles maps for secondary groups too?

My example:
1) I have two user groups on vBulletin: 'admin' and 'user'. And i have two users: A (groups - 'admin' is primary, 'user' is secondary) ; B (groups - 'user' is primary, 'admin' is secondary)
2) On the vbbridge I mapped 'admin' for an 'administrator' role and 'user' - for a 'subscriber' role
3) Next, I discommented the parameter define('USE_ADMINCP_BRIDGE', true);

In the result, user A get all permissions by role 'administrator'.
But user B has only permissons by role 'sudsriber'.
Is it correct work of briedge? Is it possible to enable mapping roles for a secondary group too?

Thank you. Sorry for my bad english
legal is offline   Reply With Quote

06-10-2011, 06:05 PM   #2
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
It only works for primary groups, it does not take secondary groups into account.
Jeff is offline   Reply With Quote
06-12-2011, 03:27 PM   #3
legal
Junior Member
 
Join Date: Jun 2011
Posts: 6
Rep Power: 0
legal is getting browny points
So sad...

Can you help me - how to make it take the secondary group?
While I had saw the source code, I found this mysql query:
Code:
$us = $vb->db->query("SELECT userid, username FROM " . TABLE_PREFIX . "user where usergroupid = $group[usergroupid] or FIND_IN_SET($group[usergroupid], membergroupids)");
It is mean that script checks the value in two fields - by primary and by secondary group too. I tried to understand another procedures, but it failed becouse I don't know PHP .

It will be fery useful, if the bridge will be able to take a secondary group in account

Last edited by legal; 06-12-2011 at 03:28 PM. Reason: error
legal is offline   Reply With Quote
06-17-2011, 08:39 AM   #4
legal
Junior Member
 
Join Date: Jun 2011
Posts: 6
Rep Power: 0
legal is getting browny points
So, I want try to do it myself.

Tell me please - where does the bridge saves a mapping data?
I set the mapping in Control Panel and it was saved somewhere. Now i try to get this schedule/massive into the PHP - haw can i do this?
legal is offline   Reply With Quote
06-17-2011, 08:42 AM   #5
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
All of the data is saved to the options table in the wordpress database. Good luck!
Jeff is offline   Reply With Quote
Reply

Tags

vbulletin wordpress bridge



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
You do not have sufficient permissions to access this page. qwert789 vBulletin Wordpress Bridge 3 03-16-2011 09:24 PM


All times are GMT -4. The time now is 06:07 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.