vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=325037

Template Conditional for threads by a specific author
by malmazan
05 May 2017 22:09

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

Dave 05 May 2017 22:24

Threads use the SHOWTHREAD template. Just before </head> you could add the following condition:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


CAG CheechDogg 06 May 2017 05:25

So how exactly does this look ?

malmazan 06 May 2017 12:48

That works, many thanks Dave


All times are GMT. The time now is 13:17.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.