The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
i have a small question
How i can check if a number = usergroupid or membergroupid ?
i have a number list = X,Y,Z (from sql table, 4 different list because 4 different option) and i would like to see if usergroupid or membergroupid are in this list, if yes display an option, if not hidden this option how i can check that ? thank. |
#2
|
||||
|
||||
Quote:
if for the postbit, do you want it relevant to the user posting? |
#3
|
|||
|
|||
No it's not for postbit.
it's for an outside script. i have $gameid = X checking column usergroup on game table where gameid = X usergroup column is : x,y,z (each value = different usergroupid) and i want to check if usergroupid and membergroupids from curent bbuserinfo are in this column on game table ... if yes : display an option, if not hidden this option. |
#4
|
||||
|
||||
Quote:
How will this outside script know who the people are? |
#5
|
|||
|
|||
Yes vbulletin template, i'am using this for my script : https://vborg.vbsupport.ru/showthread.php?t=62164 (How to create your own vBulletin-powered page! (uses vB templates) )
|
#6
|
||||
|
||||
Quote:
<if condition="in_array(is_member_of($bbuserinfo, array(X,Y,Z))"> </if> If your going to be checking member groups or anything like that in a template if you need to check somthing in php you will probaly do it by a differnt method |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|