vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   vBulletin Template Conditionals (https://vborg.vbsupport.ru/showthread.php?t=215032)

HMBeaty 09-03-2009 08:49 PM

Yes they can :)

ilrglen 09-03-2009 09:26 PM

So something like this
Code:

<if condition="$post['usergroupid'] != 20">
Your temporary trial access has expired. You must <a href="Membership-Individual.php">purchase a membership</a> to continue.
</if>

would work in the header?

HMBeaty 09-03-2009 09:34 PM

Not in the header, for the header, you would use
HTML Code:

<if condition="!is_member_of($vbulletin->userinfo, 20)">
Your temporary trial access has expired. You must <a href="Membership-Individual.php">purchase a membership</a> to continue.
</if>


ilrglen 09-03-2009 09:41 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1879248)
Not in the header, for the header, you would use
HTML Code:

<if condition="!is_member_of($vbulletin->userinfo, 20)">
Your temporary trial access has expired. You must <a href="Membership-Individual.php">purchase a membership</a> to continue.
</if>


I tried this out using usergroup 6 hoping that nobody else would see if but myself. It worked when I did it the way that I suggested in the header but not the way you did. Then when I changed it to usergroup #20 I was still able to see it. Are administrators able to see everything other usergroups see also?

HMBeaty 09-03-2009 09:44 PM

the "!" means if they are not it "usergroup id 20" they will see that message

ilrglen 09-03-2009 09:46 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1879255)
the "!" means if they are not it "usergroup id 20" they will see that message

Okay, so if I only want usergroup 20 to see it then take out the !, right? I'll try it again.

HMBeaty 09-03-2009 09:48 PM

Thats correct

ilrglen 09-03-2009 10:02 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1879257)
Thats correct

It worked. Thanks. These will be useful now that I am slowing figuring this stuff out. Thanks.

ilrglen 09-09-2009 05:03 AM

Is it possible to set up a conditional that would display ads or information to people based on their geographic location? Would might that be done?

HMBeaty 09-09-2009 10:35 AM

Can you be more specific?

--------------- Added [DATE]1252496167[/DATE] at [TIME]1252496167[/TIME] ---------------

You could also possibly use this
HTML Code:

<if condition="THIS_SCRIPT == 'index'"></if>


All times are GMT. The time now is 02:14 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01462 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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