Jump to content

Topic Feedback Block - Latest Member Info


Recommended Posts


I used similar sidebar blocks before on the forum, now I am using the IPB blocks instead of an external one. One of the most important differences, that most of my members also noticed is, the new sidebar blocks show the name of the owner of topic and the date of when the topic was started. However, I think the idea of creating a sidebar block with the most active, recent or popular topics is to show the users that your forum is active. 

For this reason, I think it makes more sense to show the name and the date of the last reply to that post. Its not only my request but also many of members of my forum suggested that it was much more useful to see that information. 


Link to comment
Share on other sites

  1. In the ACP go to Pages > Blocks.
  2. Click "Create New Block."
  3. Make sure Type = Plugin is selected.
  4. From the plugin dropdown select "Topic Feed", which is under Forum.  Then click "Next".
  5. Under the details tab give it any name and template key that you want.
  6. In the Feed configuration tab give it whatever title you want.  Change any other settings based on preference.  The main one is "Number to Show."
  7. At the bottom of the page change drop for "Use this template as-is" to "Use as base for a custom template."  That will open up the content window where  you'll see the default template which is
  8. On line 10 you'll see the following: 
    {template="userPhoto" group="global" app="core" params="$topic->author(), 'tiny'"}
  9. Replace that with: 

    {template="userPhoto" group="global" app="core" params="$topic->lastCommenter(), 'tiny'"}
  10. Then on line 28 you'll see the following:

    <span class='ipsType_light ipsType_small'>{lang="byline_nodate" htmlsprintf="$topic->author()->link()"} &middot; {lang="topic_started_date" htmlsprintf="\IPS\DateTime::ts( $topic->mapped('date') )->html()"}</span>
  11. Replace that with:

    <span class='ipsType_light ipsType_small'>{lang="byline_nodate" htmlsprintf="$topic->lastCommenter()->link()"} · {datetime="$topic->mapped('last_comment')"}</span>
  12. Hit save and you your site.  Open up manage blocks and drag "Custom Blocks." which is under pages to the desired location. Click "Edit" and select whatever you named the block.  It will be listed under Plugins.

That should get the sidebar working with the info for the last commenter instead of the topic starter.  Let me know if you have any questions or problems.

Link to comment
Share on other sites

  • 1 year later...

I realize that I'm bumping an old topic, but the one piece this is missing is what to change the following to:

{lang="topic_started_date" htmlsprintf="\IPS\DateTime::ts( $topic->mapped('date')

Right now, this is pulling both the language for the start date and the time the topic was created rather than the language/time the last post was made.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...