View Full Version : i have a small question
Blackangel
04-29-2004, 04:03 AM
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 ? :D
thank.
Zachery
04-29-2004, 04:12 AM
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 ? :D
thank.
Is this in the postbit? or somewhere else?
if for the postbit, do you want it relevant to the user posting?
Blackangel
04-29-2004, 06:36 AM
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.
Zachery
04-29-2004, 02:40 PM
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.
Are you using vBulletins template system? or somthing else?
How will this outside script know who the people are?
Blackangel
04-29-2004, 05:24 PM
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) )
Zachery
04-29-2004, 05:28 PM
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) )
Thats not a hack, thats just Gary W releasing yet another lame hack, because bascily its my tutroiral striped down and not nearly as much is explained to you. However
<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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.