The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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'] == '##'"> <dt>{vb:rawphrase style}</dt><dd>My style name</dd> </vb:if> Thanks! |
#2
|
||||
|
||||
![]()
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. |
#3
|
|||
|
|||
![]() 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? |
#4
|
||||
|
||||
![]()
Does {vb:raw post.styleid} work in the template?
|
#5
|
|||
|
|||
![]()
Yes the Style ID number is returned. It happens to be 15 for me.
|
#6
|
||||
|
||||
![]()
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? |
#7
|
|||
|
|||
![]() Quote:
|
#8
|
|||
|
|||
![]()
A week later, any guesses?
What variable produces the style ID's name, suitable for the postbit? |
#9
|
||||
|
||||
![]()
uhh the one I linked too? I have it on a 4.1.3 been on there since 4.0.7 and works fine shows style name not id #.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|