Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 May 2017, 22:09
malmazan malmazan is offline
 
Join Date: Feb 2006
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
Reply With Quote
  #2  
Old 05 May 2017, 22:24
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
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.

__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.

Last edited by Dave; 05 May 2017 at 22:30.
Reply With Quote
  #3  
Old 06 May 2017, 05:25
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
So how exactly does this look ?
Reply With Quote
  #4  
Old 06 May 2017, 12:48
malmazan malmazan is offline
 
Join Date: Feb 2006
That works, many thanks Dave
Reply With Quote
Reply


Tags
author, conditional, template


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 08:54.

Layout Options | Width: Wide Color: