The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I need some help with this eqdkp bridge - possibly a session management issue
To make a long story short, I've found a eqdkp bridge that supposedly should allow me to use one single user account for both my forums and my eqdkp-site.
The original eqdkp session.php is included as an attachment. The istructions for the bridge code are as follows: Find: PHP Code:
PHP Code:
My php skills are limited and I have little understanding of how to really work with mysql - I'm a true novice and that's why I turn to you :erm: any way, I enabled the various echo lines and tracked down my first halt at PHP Code:
so basically, what am I missing, does it have something to do with the session/password/whathever management in vbulletin which is not taken care of here or what am I missing? In an attempt to be as detailed as possible I will include the eqdkp login.php as well, oh, and I am using the latest vbulletin forums (vBulletin 3.7.3 Patch Level 1) together with eqdkp-1.3.2f (but you will be able to see the code in my attachments any way) I'd appreciate the tiniest help/hint with this, thnx in advance Edit, creds to the original author of the bridge which can be found here: http://forums.eqdkp.com/index.php?showtopic=10360 |
#2
|
||||
|
||||
This query:
[sql]SELECT count(*) as valid FROM ".$vb_prefix."user WHERE (membergroupids like '%$group_ids%' or usergroupid='$group_ids') and userid='" . $rut_row['userid'] . "'[/sql] Will fail. To have it evaluate to pass your condition, you would have to be a member of group 1, 2 AND 3. |
#3
|
|||
|
|||
oh I see, any easy way to fix this with an "OR" somewhere or should I just make sure the user has an additional usergrp called "eqdkpaccess" lets say with the id 18 or whatever and then have jst 18 in my list of usergrps
(the last statement is how I am going to try and solve it for now since my mysql syntax know-hows are limitied, any help to solve this with the ability to insert more usergrp ids would be awesome) and thnx Dismounted for pointing out the "error" hopefully with just that sorted I can start using it for real =) |
#4
|
||||
|
||||
Just make $group_ids an array, and then in the query where you fetch user data, fetch the usergroup IDs as well, then just use this:
PHP Code:
|
#5
|
|||
|
|||
I see, thank you
Now I just need some1 to babysit me through the process by adding FIND: "blabla" AFTER: Replace with "blablabla" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|