Show users avatar on last post (on home page)
Nov 22, 2013 18:53:12 GMT -8
aRMY83, thestanleyparable, and 1 more like this
Post by Former Member on Nov 22, 2013 18:53:12 GMT -8
Tested: Using Latest Browsers
Firefox - Chrome - Internet Explorer 11
Microsoft new browser (Win 10 Microsoft Edge)
Add small users Avatar to show on each of the boards
On the last Poster Post Column
See Screen-Shot
Go Admin > Layout Templates > Board > Board List
And Look For These Lines
<td class="threads">{if $[board.threads] == -1}N/A{else}$[board.threads]{/if}</td>
<td class="posts">{if $[board.posts] == -1}N/A{else}$[board.posts]{/if}</td>
<td class="latest last">
{if $[board.posts] > 0}
{if $[board.last_thread]}
$[board.last_thread.recent_link]<br />
by $[board.last_thread.last_post.created_by]<br />
<span class="date">$[board.last_thread.last_post.created_on]</span>
{/if}
{else}
No posts have been made on this board.
{/if}
</td>
</tr>
And replace all that with this code below
<!-- Template avatar on last post by xsteveuk -->
Then click to save changes
Then go admin > Themes > Advanced Styles & CSS > Style Sheet
And then add this code to the very bottom of the Style Sheet
.latest .avatar-wrapper {display: block;}
Then Click To Save Changes
Thank You Chris For the help & fix with Internet Explorer
Steve
NOTE:
You can always remove $[board.last_thread.recent_link]<br>by<br>
From the code above
To just show the last posters user avatar
See screen-shot
And Then Use The Template
Show Last thread Post & Last User To Post On Board List Template
support.proboards.com/post/5587906/thread
To show the last thread title on each of the board lists
If you wish the avatar to be smaller
Replace
$[board.last_thread.last_post.created_by.avatar_small]
With
$[board.last_thread.last_post.created_by_user.avatar_quote]
Screen-shot
Steve
Firefox - Chrome - Internet Explorer 11
Microsoft new browser (Win 10 Microsoft Edge)
Add small users Avatar to show on each of the boards
On the last Poster Post Column
See Screen-Shot
Go Admin > Layout Templates > Board > Board List
And Look For These Lines
<td class="threads">{if $[board.threads] == -1}N/A{else}$[board.threads]{/if}</td>
<td class="posts">{if $[board.posts] == -1}N/A{else}$[board.posts]{/if}</td>
<td class="latest last">
{if $[board.posts] > 0}
{if $[board.last_thread]}
$[board.last_thread.recent_link]<br />
by $[board.last_thread.last_post.created_by]<br />
<span class="date">$[board.last_thread.last_post.created_on]</span>
{/if}
{else}
No posts have been made on this board.
{/if}
</td>
</tr>
And replace all that with this code below
<!-- Template avatar on last post by xsteveuk -->
<td class="threads">{if $[board.threads] == -1}N/A{else}$[board.threads]{/if}</td>
<td class="posts">{if $[board.posts] == -1}N/A{else}$[board.posts]{/if}</td>
<td class="latest last"><center>
{if $[board.posts] > 0}
{if $[board.last_thread]}
$[board.last_thread.recent_link]<br>
by<br>$[board.last_thread.last_post.created_by.avatar_small]$[board.last_thread.last_post.created_by]<br>
<span class="date">$[board.last_thread.last_post.created_on]</span>
{/if}
{else}
No posts have been made on this board.
{/if}</center>
</td>
<td class="posts">{if $[board.posts] == -1}N/A{else}$[board.posts]{/if}</td>
<td class="latest last"><center>
{if $[board.posts] > 0}
{if $[board.last_thread]}
$[board.last_thread.recent_link]<br>
by<br>$[board.last_thread.last_post.created_by.avatar_small]$[board.last_thread.last_post.created_by]<br>
<span class="date">$[board.last_thread.last_post.created_on]</span>
{/if}
{else}
No posts have been made on this board.
{/if}</center>
</td>
Then click to save changes
Then go admin > Themes > Advanced Styles & CSS > Style Sheet
And then add this code to the very bottom of the Style Sheet
.latest .avatar-wrapper {display: block;}
Then Click To Save Changes
Thank You Chris For the help & fix with Internet Explorer
Steve
NOTE:
You can always remove $[board.last_thread.recent_link]<br>by<br>
From the code above
To just show the last posters user avatar
See screen-shot
And Then Use The Template
Show Last thread Post & Last User To Post On Board List Template
support.proboards.com/post/5587906/thread
To show the last thread title on each of the board lists
If you wish the avatar to be smaller
Replace
$[board.last_thread.last_post.created_by.avatar_small]
With
$[board.last_thread.last_post.created_by_user.avatar_quote]
Screen-shot
Steve