The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional list?
Is there a list of conditionals that can be used in the templates?
I'm attempting to make the whole row of each thread with a new post have a different color than those which have no new posts. It's probably possible to do this with the $thread[statusicon] variable, but there are (looks like) 18 possible values of that, so it would get to be a headache. There has to be a variable already set that indicates whether the current thread has new posts...? |
#2
|
|||
|
|||
No, there is no list of conditionals, just as there is no list of all the coding possibilities of any given language.
The list is only limited by your imagination and coding skills |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
I'd suggest using <if condition="$show['gotonewpost']"> for your particular case.
|
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
This is just a tip. You need to figure out the rest of the HTML yourself...
Maybe: ...somehtmlcode... <if condition="$show['gotonewpost']"> style="background-color:white;" </if> ...morehtmlcode... |
#7
|
|||
|
|||
Well that goes without saying... I put some sample code between those tags, just to see where it worked, and couldn't get it to ever show up, under various conditions.
Code:
<if condition="$show['gotonewpost']">NEW</if> |
#8
|
|||
|
|||
Weird, it works on my board. What template are you trying to use that code in?
|
#9
|
|||
|
|||
Quote:
I was also curious if there was a way to pull information from a variable in templates. Example. I want to have information on user 200 insted of $user[fieldx] I want $pull(200)[fieldx] so this phantom 'pull' command works as the user or userinfo string but can be used at anytime anywhere. would solve a kazillion hacks that need extra information. say gender on a pager or ummm avatar of who sent you admeration the list could go on and on. Im on 3.0.x but it would be nice to see someone have this for their system. |
#10
|
|||
|
|||
threadbit... and what's weird is that there are several other places in the template where it shows up also, but doesn't seem to be doing anything either.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|