vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   question about conditionals (https://vborg.vbsupport.ru/showthread.php?t=61747)

AN-net 02-19-2004 08:56 PM

question about conditionals
 
i was wondering if with conditionals i could do this:
HTML Code:

<if condition="is_browser('explorer')">
blah blah..
</if>

to use that would i have to add anything to my php file?
also is internet explorer expressed as explore in conditionals?

vbmechanic 02-19-2004 09:12 PM

Code:

<if condition="is_browser('ie', 6)">

cheers!

AN-net 02-19-2004 09:23 PM

whats the 6 for? does that mean the version #?

assassingod 02-19-2004 09:27 PM

Yes.

AN-net 02-19-2004 09:30 PM

if i got rid of the 6,would it work with all internet explore versions? also is there a way i can make it work with only versions above a certain version?

assassingod 02-19-2004 09:33 PM

If you removed the 6, the function will say its version 0. So I don't think it'll work for all version.

Boofo 02-19-2004 10:58 PM

Quote:

Originally Posted by AN-net
i was wondering if with conditionals i could do this:
HTML Code:

<if condition="is_browser('explorer')">
blah blah..
</if>

to use that would i have to add anything to my php file?
also is internet explorer expressed as explore in conditionals?

You can use this if you don't want to specify a specific version.

PHP Code:

<if condition="is_browser('ie')">Do Internet Explorer Stuff here</if> 

And, no, it will not return a 0 for the version number. ;)

AN-net 02-19-2004 11:23 PM

hey can someone pm me plz(i dont want everyone to see), cause i want someone who doenst have ie to see if they can see if it works or not.
thanks in advance


All times are GMT. The time now is 07:58 PM.

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.00990 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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