The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Are conditionals possible with prefixes?
I'd like to do something like: if prefix = x show something. Is that possible?
Thanks in advance. |
#2
|
|||
|
|||
Yes
|
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
Where exactly do you want it to show? What are you trying to do?
More info would be helpful. |
#5
|
|||
|
|||
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... |
#6
|
|||
|
|||
Hmmm...
Code:
<if condition="$thread['prefix'] == 'x'"> </if> Change X to the prefix id. |
#7
|
|||
|
|||
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....
|
#8
|
||||
|
||||
Try using:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|