Jump to content
Invision Community
Indo-IPB

(Indo32) Today's Top Posters

Recommended Posts


Correct me if i'm wrong but wasn't this already a hook included within IPB?




yes, there's already hook like this within IPB but it's for Overal Top Posters and I just editing it according to this topic http://community.invisionpower.com/topic/343166-how-can-i-add-todays-top-poster-in-sidebar/page__fromsearch__1

CMIIW too :D

Share this post


Link to post
Share on other sites

This is an excellent mod, exactly what I needed! Is there a way to limit the number of characters displayed from each member name, to ensure the box shows 3 members horizontally at all times? I have an issue with a long member name who is bumping the 3rd and subsequent members' boxes to the next lines, causing a large white space:

post-117155-0-44675500-1329770449_thumb.

Share this post


Link to post
Share on other sites

This is a great hook! Simple, easy, and doesn't break anything else! :) I would pay for a version of this that would display the Week's Top Posters (instead of just Today's). Might be a good feature for a free or potentially paid version that does a few extra things.

Share this post


Link to post
Share on other sites

JTrollerb123 you and any who have a problem with long users name issue, I have a solution.
Find:

<span class='name'>{parse template="userHoverCard" group="global" params="$r"} ({$r['tpost']})</span>[/CODE]

Change to:

[CODE]<span class='name'>{IPSMember::makeProfileLink( IPSText::truncate( $r['members_display_name'], 9 ), $r['author_id'])}{parse template="user_popup" group="global" params="$r['author_id'], $r['members_seo_name']"} ({$r['tpost']})</span>

Or if you want to view members as formatted names by group do this: Find:

<span class='name'>{parse template="userHoverCard" group="global" params="$r"} ({$r['tpost']})</span>

Change to:

<span class='name'>{IPSMember::makeProfileLink( IPSText::truncate( $r['members_display_name'], 9 ), $r['member_group_id']), $r['author_id'])}{parse template="user_popup" group="global" params="$r['author_id'], $r['members_seo_name']"} ({$r['tpost']})</span>[/code]

Share this post


Link to post
Share on other sites

I found this layout was very messy and used a lot of space so I changed it to this, just one per line with a 15px image.


<div class='ipsSideBlock clearfix'>

<h3><img src='{$this->settings['img_url']}/user_comment.png' alt='' /> {$this->lang->words['todays_top_posters']}</h3>

<div class='_sbcollapsable'>

  <if test="topposters:|:is_array($posters) AND count($posters)">

  <ul class='ipsList_withminiphoto'>

<foreach loop="top_posters_hook:$posters as $r">

  <li class='clearfix'>

<a href='{parse url="showuser={$r['member_id']}" template="showuser" seotitle="{$r['members_seo_name']}" base="public"}' title='{$this->lang->words['view_profile']}'></a><img src='{$r['pp_thumb_photo']}' width='15px' height='15px' alt='{$this->lang->words['photo']}' class='ipsUserPhoto_tiny' />

<span class='name'>{parse template="userHoverCard" group="global" params="$r"} ({$r['tpost']})</span>

</li>

</foreach>

</ul>

  </if>

</div>

</div>

Share this post


Link to post
Share on other sites

Hi I have this installed on my board and it doesn't appear to be updating. It got to a certain stage after a few hours and it stopped counting members posts, it's the next day now and it's as though it has frozen as it still hasn't changed and is showing yesterdays posters.

Share this post


Link to post
Share on other sites

JTrollerb123 you and any who have a problem with long users name issue, I have a solution.
Find:

<span class='name'>{parse template="userHoverCard" group="global" params="$r"} ({$r['tpost']})</span>
Change to:
<span class='name'>{IPSMember::makeProfileLink( IPSText::truncate( $r['members_display_name'], 9 ), $r['author_id'])}{parse template="user_popup" group="global" params="$r['author_id'], $r['members_seo_name']"} ({$r['tpost']})</span>
Or if you want to view members as formatted names by group do this:
Find:
<span class='name'>{parse template="userHoverCard" group="global" params="$r"} ({$r['tpost']})</span>
Change to:
<span class='name'>{IPSMember::makeProfileLink( IPSText::truncate( $r['members_display_name'], 9 ), $r['member_group_id']), $r['author_id'])}{parse template="user_popup" group="global" params="$r['author_id'], $r['members_seo_name']"} ({$r['tpost']})</span>

Hello,

where i must change this code?

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×