 | |
12-05-2007, 03:47 AM
|
#31 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Template Conditionals List ok i want to show photoplog thumbs inside just 1 forum, forum 15 right.
this is the code photoplog says to use
$photoplog[minithumbnails]
i tried this and no worky i guess cause you can't call something like that in a standard conditional?
<if condition="$forum[forumid] == 15">$photoplog[minithumbnails]</if>
EDIT: and they say this code is only for forumhome and when i add it to navbar template it still only shows on forumhome
Last edited by Caddyman; 12-05-2007 at 03:51 AM.
|
| |
12-05-2007, 07:31 AM
|
#32 | | Supporters vBulletin Owner
Join Date: Aug 2006 Location: Anaheim, CA
Posts: 1,657
| Re: vBulletin Template Conditionals List That is because the $forum variable is on the index page, not the other ones. Of course you could add your own query to global_start to get the forum id though
__________________ I hate that someone changed my signature. |
| |
12-06-2007, 05:11 AM
|
#33 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Template Conditionals List do what? im a noob, help mike!! |
| |
12-10-2007, 03:10 AM
|
#34 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Template Conditionals List anything? i need this for somebody |
| |
04-27-2008, 07:47 PM
|
#35 | | vBulletin Owner
Join Date: Jan 2008 Location: www.webicy.com
Posts: 138
| Re: vBulletin Template Conditionals List Thanks for the link Brandon.
btw does the condition's remain same in the latest 3.7 or are we going to see any changes.
Last edited by SticKer; 04-27-2008 at 07:51 PM.
|
| |
08-20-2008, 06:28 PM
|
#36 | | Community Manager Supporters vBulletin Owner vBSetup Mods
Join Date: Jul 2006 Location: Topeka, KS
Posts: 14,107
| Re: vBulletin Template Conditionals List I need a few conditions, hopefully someone can help me
I need one that will only show something on the portal "vbavanced" and
one that will show to everything else, the forumhome, forumdisplay and showthread
thanks |
| |
08-20-2008, 06:33 PM
|
#37 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Template Conditionals List Here is how i do the dynamic forum button on homepage and home button on forum page (breaks added for clarity)
<if condition="THIS_SCRIPT == 'adv_index'">
<a href="http://forum.vbulletinsetup.com/f18/forums.php$session[sessionurl_q]"><img src="http://forum.vbulletinsetup.com/f18/$stylevar[imgdir_misc]/links_forum.gif" alt="Delaware Forum" width="75" height="39" border="0"></img></a>
<else />
<a href="http://www.talkdelaware.com/"><img src="http://forum.vbulletinsetup.com/f18/$stylevar[imgdir_misc]/links_home.gif" alt="Delaware Home" width="75" height="39" border="0"></img></a>
</if>
get it? |
| |
08-21-2008, 04:01 AM
|
#38 | | vBulletin Owner
Join Date: Feb 2007 Location: [Italy]
Posts: 48
| Re: vBulletin Template Conditionals List |
| |
08-21-2008, 04:24 AM
|
#39 | | vBulletin Owner
Join Date: Mar 2008 Location: India
Posts: 145
| Re: vBulletin Template Conditionals List Quote:
Originally Posted by Caddyman ok i want to show photoplog thumbs inside just 1 forum, forum 15 right.
this is the code photoplog says to use
i tried this and no worky i guess cause you can't call something like that in a standard conditional?
<if condition=" == 15"></if>
EDIT: and they say this code is only for forumhome and when i add it to navbar template it still only shows on forumhome  | Try this:-
<if condition="$foruminfo['forumid'] == 15">$photoplog[minithumbnails]</if>
$foruminfo variable is available and should work. |
| |
08-21-2008, 04:27 AM
|
#40 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Template Conditionals List i will check that out if i can remember what site i was trying to do that on, i think it was the porsche forum, ill ask him if he still wants this... |
| |
08-21-2008, 04:28 AM
|
#41 | | vBulletin Owner
Join Date: Mar 2008 Location: India
Posts: 145
| Re: vBulletin Template Conditionals List oops lol.. I didn't notice the date !! |
| |
08-21-2008, 04:30 AM
|
#42 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Template Conditionals List no no it's still relevant, the guy i work for on that site is very cool and patient, i bet he still wants it....ill check it out. |
| |
08-21-2008, 04:52 AM
|
#43 | | vBulletin Owner
Join Date: Mar 2008 Location: India
Posts: 145
| Re: vBulletin Template Conditionals List oh okayy chase, he seems toooo cool
anyways, do try this also:-
<if condition="$forumid == X">
I just tried both of them in navbar and they work. |
| |
08-21-2008, 05:02 AM
|
#44 | | Community Manager Supporters vBulletin Owner vBSetup Mods
Join Date: Jul 2006 Location: Topeka, KS
Posts: 14,107
| Re: vBulletin Template Conditionals List Quote:
Originally Posted by Caddyman Here is how i do the dynamic forum button on homepage and home button on forum page (breaks added for clarity)
<if condition="THIS_SCRIPT == 'adv_index'">
<a href="http://forum.vbulletinsetup.com/f18/forums.php"><img src="http://forum.vbulletinsetup.com/f18//links_forum.gif" alt="Delaware Forum" width="75" height="39" border="0"></img></a>
<else />
<a href="http://www.talkdelaware.com/"><img src="http://forum.vbulletinsetup.com/f18//links_home.gif" alt="Delaware Home" width="75" height="39" border="0"></img></a>
</if>
get it? | so I think I can use this to show on the vba pages, how do I make it NOT show on the vba pages as well?
thanks |
| |
08-21-2008, 05:16 AM
|
#45 | | vBulletin Owner
Join Date: Mar 2008 Location: India
Posts: 145
| Re: vBulletin Template Conditionals List ya you can use it show just on vba pages. To do just the opposite i.e. not to show on vba page but show everywhere else, just inverse it.
<if condition="THIS_SCRIPT != 'adv_index'"> |
| |
08-21-2008, 05:17 AM
|
#46 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Template Conditionals List yeah add the exclamation point! |
| |
08-21-2008, 06:55 AM
|
#47 | | Community Manager Supporters vBulletin Owner vBSetup Mods
Join Date: Jul 2006 Location: Topeka, KS
Posts: 14,107
| Re: vBulletin Template Conditionals List Quote:
Originally Posted by veenuisthebest ya you can use it show just on vba pages. To do just the opposite i.e. not to show on vba page but show everywhere else, just inverse it.
<if condition="THIS_SCRIPT != 'adv_index'"> | I don't understand?
This condition will show on the vba page only, how do I make it show on all but the vba page?
thanks |
| |
08-21-2008, 07:03 AM
|
#48 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Template Conditionals List adding the exclamation point makes it show on anything that is NOT that script.... |
| |
08-21-2008, 07:07 AM
|
#49 | | vBulletin Owner
Join Date: Mar 2008 Location: India
Posts: 145
| Re: vBulletin Template Conditionals List you didn't notice the difference in the two:-
For ONLY vba page:- <if condition="THIS_SCRIPT == 'adv_index'">
For ALL pages EXCEPT vba page:- <if condition="THIS_SCRIPT != 'adv_index'"> |
| |
08-21-2008, 10:57 AM
|
#50 | | Community Manager Supporters vBulletin Owner vBSetup Mods
Join Date: Jul 2006 Location: Topeka, KS
Posts: 14,107
| Re: vBulletin Template Conditionals List ah, your right, I didn't notice the difference
thanks guys |
| |
08-21-2008, 11:08 AM
|
#51 | | Supporters vBulletin Owner
Join Date: Jul 2007 Location: Rochester, New York
Posts: 500
| Re: vBulletin Template Conditionals List Is there one for if the thread was created by member X? |
| |
10-08-2008, 08:35 AM
|
#52 | | vBulletin Owner
Join Date: Apr 2008
Posts: 10
| Re: vBulletin Template Conditionals List What i want to do is to show latest active thread title in particular forum (2 in.ex) on my forumhome...so which condition should i use?
Maybe this:
<if condition="$thread['forumid'] == 2">$thread[title]</if>
??? |
| |
11-07-2008, 11:32 PM
|
#53 | | vBulletin Owner
Join Date: May 2007
Posts: 15
| Re: vBulletin Template Conditionals List Could someone tell me what the condition would be to only show something (i.e. adsense) to to users with a certain rank or post count?
Basically I want to only show some specific ads or content to those who have post count of less than X amount of post. Otherwise I would settle for only showing content to users who belong to a specific user rank.
BTW, this is for a 3.6.4 forum.
Thanks for any advice! |
| |
11-08-2008, 03:17 AM
|
#54 | | vBulletin Owner
Join Date: May 2008 Location: Florida
Posts: 450
| Re: vBulletin Template Conditionals List Quote:
Originally Posted by kenfuzed Could someone tell me what the condition would be to only show something (i.e. adsense) to to users with a certain rank or post count?
Basically I want to only show some specific ads or content to those who have post count of less than X amount of post. Otherwise I would settle for only showing content to users who belong to a specific user rank.
BTW, this is for a 3.6.4 forum.
Thanks for any advice! | I cannot think of a conditional based on post count.
The only way to successfully do this is to create a new usegroup with a promotion based on post count, then show the ads to that usergroup. |
| |
11-08-2008, 07:52 AM
|
#55 | | vBulletin Owner
Join Date: May 2007
Posts: 15
| Re: vBulletin Template Conditionals List Quote:
Originally Posted by Nick R I cannot think of a conditional based on post count.
The only way to successfully do this is to create a new usegroup with a promotion based on post count, then show the ads to that usergroup. | Ok, I was hoping that since users are already promoted to ranks based on their post count (Newbie, Rookie, Veteran, etc) I could leverage these rank groups already established. |
| |
11-09-2008, 01:44 PM
|
#56 | | vBulletin Owner
Join Date: Jun 2008 Location: Arkansas
Posts: 49
| Re: vBulletin Template Conditionals List Excellent post! Very helpful. I appreciate your help!
Cheers,
Bruce
__________________ RVO's OrchidTalk Orchid Forum - "Bringing People Together" We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors....but they all exist very nicely in the same box.:yup: |
| |
11-12-2008, 12:30 PM
|
#57 | | vBulletin Owner
Join Date: Apr 2007
Posts: 34
| Re: vBulletin Template Conditionals List How do i make something show up just for a certain user id, but viewable to all users except guests??
i tried this
<if condition="$bbuserinfo['userid'] ==231"></if> but it shows it for everyone but only for me. no what im looking for! lol
__________________ [url=h |
| |
01-31-2009, 11:36 AM
|
#58 | | vBulletin Owner
Join Date: Apr 2008 Location: South Florida
Posts: 2,882
| Re: vBulletin Template Conditionals List You can use the ! to tell it to not show it to the x usergroup but show it to everyone else. Quote: |
<if condition="$post['usergroupid'] != 6"></if>
| How do you place multiple usergroup IDs here? Would you just put two numbers separated by a comma in the place of the "6" in that example? Edited: Actually used this one which helped me for what I was looking to do Quote: |
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>
|
Last edited by ArnyVee; 01-31-2009 at 11:49 AM.
|
| |
03-24-2009, 12:52 PM
|
#59 | | entrepreneur
Join Date: Mar 2009
Posts: 5
| Re: vBulletin Template Conditionals List Hi,
Thanks for the great resource............... |
| |
03-26-2009, 09:59 AM
|
#60 | | vBulletin Owner
Join Date: Mar 2009 Location: United Kingdom
Posts: 7
| Re: vBulletin Template Conditionals List I need to check if a reply post is owned by the thread starter and if the thread is held in specific forums, if these conditions are true then an image is added to the bottom of the reply post.
I'm trying to do this using this conditional but it's not working, can anyone see why? Code: <if condition="in_array($thread['forumid'], array(28,29,32,10,39,43,41)) && $threadinfo['postuserid'] == $post['userid']">
<div><img src="$stylevar[imgdir_misc]/moddev.gif" width="100" height="21" border="0" alt="" class="inlineimg" /></div>
</if>
*********** edit ************
Lynne at vB.org has found the problem, the $threadinfo should have been $thread
Last edited by Phantasma; 03-26-2009 at 10:02 AM.
|
| | |