View Full Version : Are conditionals possible with prefixes?
nando99
09-15-2008, 02:42 PM
I'd like to do something like: if prefix = x show something. Is that possible?
Thanks in advance.
Opserty
09-15-2008, 03:08 PM
Yes
nando99
09-15-2008, 03:12 PM
Thanks for letting me.
Would you by any chance know how? If so, would you be kind enough to provide an example?
Thanks in advance.
Opserty
09-15-2008, 03:18 PM
Where exactly do you want it to show? What are you trying to do?
More info would be helpful. :p
nando99
09-15-2008, 03:24 PM
I'd like to show attached thumbs a certain way depending on the prefix of the post. I've already done it depending on forum - but I'd like more control over it and do it depending on thread prefix... This would all happen in the postbit template.... All I really need is the if statement, not sure what it would be and figured I'd ask since finding the right variable for the forumid in the postbit took a while.... Thanks again to Lynne if she reads this!
thanks in advance...
Opserty
09-15-2008, 03:34 PM
Hmmm...
<if condition="$thread['prefix'] == 'x'">
</if>
Does that work?
Change X to the prefix id.
nando99
09-18-2008, 09:15 PM
thanks for the quick reply and sorry for delayed response.... that didn't work... guessing we have the postbit prefix variable wrong... i'll ask on .com as well....
Dismounted
09-19-2008, 05:07 AM
Try using:
$thread['prefix_rich']
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.