Add authors username On SUBJECT BAR at the top of a thread
Apr 14, 2014 6:21:05 GMT -8
CåñåÐå™, Jen Parsons, and 1 more like this
Post by Former Member on Apr 14, 2014 6:21:05 GMT -8
This will add the authors username of the thread subject
On the SUBJECT BAR at the top of a thread
See Screenshot
Go - Admin - Templates - Thread
And look for
<h1>$[thread.subject]</h1>
And add
By $[thread.created_by_user.name]
So It will look like this
<h1>$[thread.subject] By $[thread.created_by_user.name]</h1>
It will add the authors username of the thread subject
On the SUBJECT BAR at the top of a thread
Reminder you can always click on the preview button to view how it will look
Before clicking to save any changes to your template
_________________________________________
If you would like to show the number of likes
The thread has received on the subject bar also
See screen-shot
Replace
<h1>$[thread.subject] By $[thread.created_by_user.name]</h1>
With The Code below
Please note the number of likes font shows as Red
But you can change the font colour color: #c73f17
You can also change the font size if needed font-size:11px
<h1>$[thread.subject] By $[thread.created_by_user.name] <span class="thread-likes" style="padding-left: 2px; font-size:11px; font-style:italic; color: #c73f17;">{if $[thread.first_post.likes.total]}- $[thread.first_post.likes.total] Like{if $[thread.first_post.likes.total] != 1}s{/if}{/if}</span></h1>
__________________________________________
With a little help from jrryan
If you wish to add the number of thread views also on the subject bar
See Screen-shot
Use the code below
You can change the font colour color: #ffffff
You can also change the font size if needed font-size:11px
<h1>$[thread.subject] By $[thread.created_by_user.name] (Read $[thread.views] time{if $[thread.views] != 1}s){/if} <span class="thread-likes" style="padding-left: 2px; font-size:11px; font-style:italic; color: #ffffff;">{if $[thread.first_post.likes.total]}- $[thread.first_post.likes.total] Like{if $[thread.first_post.likes.total] != 1}s{/if}{/if}</span></h1>
Steve
Reminder you can always click on the preview button to view how it will look
Before you click to save any changes to your template
On the SUBJECT BAR at the top of a thread
See Screenshot
Go - Admin - Templates - Thread
And look for
<h1>$[thread.subject]</h1>
And add
By $[thread.created_by_user.name]
So It will look like this
<h1>$[thread.subject] By $[thread.created_by_user.name]</h1>
It will add the authors username of the thread subject
On the SUBJECT BAR at the top of a thread
Reminder you can always click on the preview button to view how it will look
Before clicking to save any changes to your template
_________________________________________
If you would like to show the number of likes
The thread has received on the subject bar also
See screen-shot
Replace
<h1>$[thread.subject] By $[thread.created_by_user.name]</h1>
With The Code below
Please note the number of likes font shows as Red
But you can change the font colour color: #c73f17
You can also change the font size if needed font-size:11px
<h1>$[thread.subject] By $[thread.created_by_user.name] <span class="thread-likes" style="padding-left: 2px; font-size:11px; font-style:italic; color: #c73f17;">{if $[thread.first_post.likes.total]}- $[thread.first_post.likes.total] Like{if $[thread.first_post.likes.total] != 1}s{/if}{/if}</span></h1>
__________________________________________
With a little help from jrryan
If you wish to add the number of thread views also on the subject bar
See Screen-shot
Use the code below
You can change the font colour color: #ffffff
You can also change the font size if needed font-size:11px
<h1>$[thread.subject] By $[thread.created_by_user.name] (Read $[thread.views] time{if $[thread.views] != 1}s){/if} <span class="thread-likes" style="padding-left: 2px; font-size:11px; font-style:italic; color: #ffffff;">{if $[thread.first_post.likes.total]}- $[thread.first_post.likes.total] Like{if $[thread.first_post.likes.total] != 1}s{/if}{/if}</span></h1>
Steve
Reminder you can always click on the preview button to view how it will look
Before you click to save any changes to your template