vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   [How to] Restrict code in templates to certain browsers (https://vborg.vbsupport.ru/showthread.php?t=88318)

Brad 01-08-2004 10:00 PM

[How to] Restrict code in templates to certain browsers
 
1 Attachment(s)
Using the <if> tags in vBulletin you can code your templates so they will display correctly in all browsers, hopefull this will help you solve code problems when a browser dose not render certain code correctly.

Thanks to Wayne Luke for showing me how to do this :)

Zachery 01-09-2004 01:04 AM

nice :)..... 10 characters

clearchannel 01-10-2004 02:44 PM

Would someone be so kind as to explaine how I enter the code?

I am having probems with webtv and mac user's in vBulletin 3.0 RC 2

Thank you in advance.

Brad 01-10-2004 04:33 PM

Code:

is_browser('webtv')
is_browser('mac')


clearchannel 01-10-2004 08:45 PM

Quote:

Originally Posted by Brad.loo
Code:

is_browser('webtv')
is_browser('mac')


I'm sorry, I should have been more specfic.

Where would I place the <if> tag?

Do I place it in a template or do I have to add the code to one of the files I uploaded to the server.

Sorry folks, I am trying to learn...LOL

Zachery 01-10-2004 08:46 PM

templates, this is the vBulletin tempalte site ;D

Bad Bunny 01-12-2004 01:11 AM

sweeeeet!!!

Tony G 01-12-2004 07:15 AM

Very nifty. Nice job. :)

Zachery 01-12-2004 08:27 AM

ill be adding this to my tutorial on conditionals :D


All times are GMT. The time now is 11:48 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.02210 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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