vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Using Conditionals... (https://vborg.vbsupport.ru/showthread.php?t=93150)

drumforum 07-29-2005 05:28 PM

Using Conditionals...
 
Is there a list of conditionals made for VBsomewhere?

Thanks

Adam

sabret00the 08-01-2005 07:27 AM

what do you mean?

you mean a list of the functions available for us?

drumforum 08-07-2005 09:31 PM

Quote:

Originally Posted by sabret00the
what do you mean?

you mean a list of the functions available for us?

indeed

Marco van Herwaarden 08-08-2005 02:24 AM

Are you talking about conditionals/functions to use in templates, or in php-files?

sabret00the 08-08-2005 08:38 AM

to use in templates i'd assume marco.

PHP Code:

            // built-in variable checking functions
            
'in_array',              // used for checking
            
'is_array',              // used for checking
            
'is_numeric',            // used for checking
            
'isset',                 // used for checking
            
'empty',                 // used for checking
            
'defined',               // used for checking
            
'array',                 // used for checking

            // vBulletin-defined functions
            
'can_moderate',          // obvious one
            
'can_moderate_calendar'// another obvious one
            
'exec_switch_bg',        // harmless function that we use sometimes
            
'is_browser',            // function to detect browser and versions
            
'is_member_of',          // function to check if $user is member of $usergroupid 


Boofo 08-08-2005 10:04 AM

Ahhh, but the is_member_of doesn't work right with $bbuserinfo. ;)

Colin F 08-08-2005 11:03 AM

Quote:

Originally Posted by Boofo
Ahhh, but the is_member_of doesn't work right with $bbuserinfo. ;)

I think that was fixed in 3.5 something.

Boofo 08-08-2005 11:43 AM

Quote:

Originally Posted by Colin F
I think that was fixed in 3.5 something.

It didn't work for me on RC 1. ;)

Brad 08-08-2005 11:50 AM

Quote:

Originally Posted by Boofo
Ahhh, but the is_member_of doesn't work right with $bbuserinfo. ;)

Try $vbulletin->userinfo, thats what $bbuserinfo was changed to in the 3.5 series :)

Boofo 08-08-2005 12:20 PM

I tried that also but couldn't get it to work right. I'll try it again, maybe I messed something up (hard to believe, I know). ;)


All times are GMT. The time now is 01:00 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.02505 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete