Jump to content

(Indo32) Today's Top Posters


Indo-IPB
 Share

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
Link to comment
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.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

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]

Link to comment
Share on other sites

  • 5 weeks later...

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>

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

  • 2 years later...

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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