The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
show style postbit
Hello, how could i do that apear in thee postbit of any users the style what is using?
|
#2
|
||||
|
||||
sorry deleted thanks
|
#3
|
|||
|
|||
<b>Style:</b>
<if condition="$post[styleid]==1"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=$post[styleid]">Style 1</a></if> <if condition="$post[styleid]==2"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=$post[styleid]">Style 2</a></if> <if condition="$post[styleid]==3"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=$post[styleid]">Style 3</a></if> <if condition="$post[styleid]==4"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=$post[styleid]">Style 4</a></if> Try that. |
#4
|
||||
|
||||
wouldn't it be easier to hack is using a query?
ie in showthread have Code:
$post_styleid = SELECT styleid FROM post $post_stylename = SELECT stylename FROM post WHERE styleid = $post_styleid Code:
<b>style:</b> <if condition="$post[styleid]==$post_styleid">$post_stylename</if> |
#5
|
|||
|
|||
Why add another query to the 80 vb3 has as a default, when the template systems already supports what he needs to do.
|
#6
|
||||
|
||||
cleaner template :shrugs:
|
#7
|
|||
|
|||
Quote:
|
#8
|
||||
|
||||
heh i just realised this is the vB2 forums lol
|
#9
|
|||
|
|||
It is not possible to do this in vB 2 without hacking the board, well you can show the style id a user is using but you can not get the style name.
|
#10
|
|||
|
|||
i just relized this is in the vb2 section, stupid me. ^^
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|