![]() |
|
Thread Tools |
#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 No members have liked this post.
|
#2
|
||||||||
|
||||||||
Threads use the SHOWTHREAD template. Just before </head> you could add the following condition:
Then create a new template called davethreadstyle.css (or whatever you named it in the code above) and it will load it in a thread when the thread is started by userid 1. Add your custom CSS to the CSS template. Alternatively, instead of injecting a CSS file, you could use the regular CSS style tag like this:
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
Last edited by Dave; 05 May 2017 at 23:30. |
#3
|
||||
|
||||
So how exactly does this look ?
No members have liked this post.
|
#4
|
|||
|
|||
That works, many thanks Dave
No members have liked this post.
|
![]() |
Tags |
author, conditional, template |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 01:01.