vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   i have a small question (https://vborg.vbsupport.ru/showthread.php?t=64517)

Blackangel 04-29-2004 04:03 AM

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 ? :D

thank.

Zachery 04-29-2004 04:12 AM

Quote:

Originally Posted by Blackangel
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

Quote:

Originally Posted by Blackangel
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

Quote:

Originally Posted by Blackangel
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


All times are GMT. The time now is 07:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00974 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete