vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   vB4 Template Conditionals List (https://vborg.vbsupport.ru/showthread.php?t=231525)

BirdOPrey5 07-01-2011 05:25 PM

Quote:

Originally Posted by baghdad4ever (Post 2215511)
How can I insert a banner in the first post of the every pages of the thread ?

Open postbit template...

find {vb:raw post.message}

Either directly above it or below it add this code:

Code:

<vb:if condition="$post['isfirstshown']">
BANNER CODE HERE
</vb:if>


baghdad4ever 07-01-2011 07:23 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2215547)
Open postbit template...

find {vb:raw post.message}

Either directly above it or below it add this code:

Code:

<vb:if condition="$post['isfirstshown']">
BANNER CODE HERE
</vb:if>



thanks alot

it is worked perfectly:D

is there any way to put the banner between the content of thread?

ie: among words of post not before nor after


thanks again

BirdOPrey5 07-01-2011 08:39 PM

Not with a template conditional... that would require some custom coding beyond the realm of this article.

baghdad4ever 07-01-2011 09:09 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2215622)
Not with a template conditional... that would require some custom coding beyond the realm of this article.

thanks alot for your kind reply

flbutterflyz 07-07-2011 07:34 PM

Hi,

I created a profile field that I'd like each usergroup to view but only want 3 usergroups to use. How do I go about that in postbit legacy? Here's what I have so far:

Code:

<vb:if condition="$post[field27] != ''"><img src="images/favthings/{vb:raw post.field27}.png" title="Favorite Things" align="left" border="0"  /></vb:if>

HMBeaty 07-07-2011 07:37 PM

Quote:

Originally Posted by flbutterflyz (Post 2217896)
Hi,

I created a profile field that I'd like each usergroup to view but only want 3 usergroups to use. How do I go about that in postbit legacy? Here's what I have so far:

Code:

<vb:if condition="$post[field27] != ''"><img src="images/favthings/{vb:raw post.field27}.png" title="Favorite Things" align="left" border="0"  /></vb:if>

HTML Code:

<vb:if condition="is_member_of($bbuserinfo, 1,2,3) AND $post[field27] != ''"><img src="images/favthings/{vb:raw post.field27}.png" title="Favorite Things" align="left" border="0"  /></vb:if>
And change "1,2,3" to the 3 usergroup id's you wish to show the code to

flbutterflyz 07-08-2011 12:10 AM

Thank you SO much!! :)

HMBeaty 07-08-2011 12:31 AM

Quote:

Originally Posted by flbutterflyz (Post 2217975)
Thank you SO much!! :)

No problem :)

flbutterflyz 07-26-2011 05:23 PM

^^Regarding the same code above, is there a way to let the image show to everyone but only usable for certain usergroups? Meaning the image will only be active in 4 usergroups' postbit but everyone can view the image.

Not sure if I'm explaining it well...

mrderanged 08-04-2011 05:05 PM

I'm trying to make the tab to collapse the sidebar only visible to paid members, I want everyone else to be unable to collapse it.

Would this be the correct edit to the forumhome template?

Code:

<a id="sidebar_button_link" href="#">
                <vb:if condition="is_member_of($bbuserinfo, 9,10,11)">
                        <vb:if condition="$show['sidebarposition'] == 'left'">
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
                        <vb:else />
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
                        </vb:if>
                </vb:if>       
                </a>


thanks in advance


All times are GMT. The time now is 11:03 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.01543 seconds
  • Memory Usage 1,743KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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