The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
is_member_of info
First, if there's somewhere that lists vB functions, please point me in the right direction.
That being said, I'm trying to do something like this Code:
if (is_member_of(3,5,6)) { Do stuff } |
#2
|
|||
|
|||
http://www.vbulletin.com/docs/html/t...e_conditionals
Code:
<if condition="is_member_of($vbulletin->userinfo, 3, 5, 6)"> Do stuff </if> |
#3
|
||||
|
||||
And to see more than you ever thought you would want to see, the vB API - http://members.vbulletin.com/api/
Post 2 is for templates. For plugins: PHP Code:
|
#4
|
|||
|
|||
This helped perfectly, thank you! Basically I used fetch_userinfo with the user number I had, then used that in the is_member_of function. Works great, thanks again!
|
#5
|
||||
|
||||
If you are using the current user, you don't need to use fetch_userinfo(). (If otherwise, that's fine. )
|
#6
|
|||
|
|||
Quote:
So the check was to make sure each user that has that field filled out, is in the user group I allow to get text messages from the website. The only odd thing is, the person that sends the message, never gets text'd, everyone else does though. |
#7
|
||||
|
||||
It looks like your dealing with multiple users (and hence multiple calls to fetch_userinfo). In this case, you probably want to run a query that fetches all the users at once (fetch_userinfo() will run one query every time it is called).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|