![]() |
Help with style name in postbit conditional
I'm looking for an efficient way to display the users style choice in the postbit. Here's what I have so far:
Code:
<vb:if condition="$post['styleid'] == '##'"> Thanks! |
Define doesn't work properly?
It would only show which style a user has set in their usercp, which might not be the style they're using, since cookies can override a setting in the usercp. |
Quote:
Code:
<vb:if condition="$post['styleid'] == '##'"> <dt>{vb:rawphrase style}</dt><dd>No text appears here</dd> </vb:if> 2, The text that should appear based on the open 'if' statement doesn't appear either. I can only conclude that the first line of the "if" statement is incorrect. Since I want the term users style choice to appear in every style, is there perhaps a simpler way of doing this? |
Does {vb:raw post.styleid} work in the template?
|
Yes the Style ID number is returned. It happens to be 15 for me.
|
This works fine for 4.x:
https://vborg.vbsupport.ru/showthread.php?t=168816 View the modification code and you'll see another way it was done, shows correct name etc but note* this shows the style they have set as default not the selected style in use kwim? |
Quote:
|
A week later, any guesses?
What variable produces the style ID's name, suitable for the postbit? |
Quote:
|
All times are GMT. The time now is 05:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|