The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Conditional for threads by a specific author
Hi all
I need to change the appearance of threads started by a specific author. What would be the template conditional for that? Ideally by user id number, else by author name. Since the author is also the admin, a conditional for admin thread authors could also be a compromise solution. Using a plugin is fine. Thanks in advance for the help |
#2
|
|||
|
|||
Threads use the SHOWTHREAD template. Just before </head> you could add the following condition:
HTML Code:
<vb:if condition="$thread['postuserid'] == 1"> {vb:cssfile davethreadstyle.css} </vb:if> Alternatively, instead of injecting a CSS file, you could use the regular CSS style tag like this: HTML Code:
<vb:if condition="$thread['postuserid'] == 1"> <style type="text/css"> .element{ attribute: value; } </style> </vb:if> |
#3
|
||||
|
||||
So how exactly does this look ?
|
#4
|
|||
|
|||
That works, many thanks Dave
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|