AVeryNiceWeb

How to add avatar in forum list, topic list and board index

Here we discuss all topic related to PHPBB 3.0 and up

How to add avatar in forum list, topic list and board index

Postby admin » Mon Mar 06, 2017 1:03 am

Download plugin "Avatar of Poster on Index and Viewforum" for phpBB 3.11.
Installation is pretty straight forward and easy with the exception that in prosilver, the script can't find the lines to add in viewforum_body.html and forumlist_body.html.

It is recommended to do manual editing before forcing install.


For Absolution Style:

This places the poster avatar right next to the user's last post link.
Go to ~root/styles/absolution/template/forumlist_body.html

Find:
Code: Select all
<!-- ELSEIF not forumrow.S_IS_LINK -->


Add After:
Code: Select all
<dd class="lastpost"><span>
    <!-- IF forumrow.FORUM_LAST_POSTER_AVATAR --><li style="float: left; padding-top: 10px; margin-left: 5px; margin-right:  {forumrow.FORUM_LAST_POSTER_AVATAR_MARGIN}px;"><a href="{forumrow.U_LAST_POST}">{forumrow.FORUM_LAST_POSTER_AVATAR}</a></li><!-- ENDIF -->


This places the poster avatar at the start of the row next to the forum icon (the far left).
Find (aprox 26):
Code: Select all
<ul class="topiclist forums">


Add After <!-- ENDIF -->:
Code: Select all
<!-- IF forumrow.FORUM_LAST_POSTER_AVATAR --><dd style="float: left; padding-top: 10px; margin-left: 5px; margin-right:  {forumrow.FORUM_LAST_POSTER_AVATAR_MARGIN}px;"><a href="{forumrow.U_LAST_POST}">{forumrow.FORUM_LAST_POSTER_AVATAR}</a></dd><!-- ENDIF -->


Correct the category background image header :
Go to ~root/styles/absolution/theme/colours.css

Find:
Code: Select all
.custom-cat-header {
   background-color: #0e3860;
   background-image: url("{T_THEME_PATH}/images/custom-cat-header.gif");
   background-repeat: no-repeat;
   width: 930px; height: 41px;
}


Add After:
Code: Select all
.custom-cat-header2 {
   background-color: #0e3860;
   background-image: url("{T_THEME_PATH}/images/custom-cat-header.gif");
   background-repeat: no-repeat;
   width: 930px; height: 41px;
        margin-left: -10px;
}


Go to ~root/styles/absolution/template/forumlist_body.html
Find:
Code: Select all
<div class="custom-cat-header">

Replace with:
Code: Select all
<div class="custom-cat-header2">
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 451
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City

Return to PhpBB 3.0.XX

Who is online

Users browsing this forum: No registered users and 0 guests

cron