The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Include/recognize secondary usergroups in plugin code...
Hey peoples. I'm using a wonderful little mod that allows me to allow certain usergroups (comma-separated ID's) to receive PM's, even if the sending usergroup is restricted to a certain post-count before sending them.
Only trouble is the plugin that handles the field only identifies and recognizes primary groups, and I'd like to be able to chop in a little something so I can have it recognize secondary ID's also. This is the plugin code I'd need to edit... I think... lol: PHP Code:
Now I do understand that secondary ID's are listed in 'membergroupids', but I would be stabbing in the dark if I tried anything on my own really. I'm not much of a coder... yet... but I know all I need to do is pull ID's from that column of the table also, in such a way that they can be recognized, even if a user is in multiple secondary usergroups. Can anyone throw me suggestions as to what I could do up there? Is this possible? --------------- Added [DATE]1271684922[/DATE] at [TIME]1271684922[/TIME] --------------- Made it work for the time being by simply adding: OR FIND_IN_SET('X', membergroupids) to the code above. I still wouldn't mind knowing the php required to make the comma separated field in the mod itself be able to incorporate secondary ID's also... I've been reading all about loops and arrays and such... do they apply in this kind of situation? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|