MyBB Community Forums

Full Version: [1.6][1.4] MyTopPoster - Greet Your TopPoster
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
MyTopPoster
Now alert the user if he is today's top poster easily!

If you are/were looking for a way to Congratulate a member if he is a top poster, this this plugin opens the way for it!

Download:

[attachment=30889]
Mods Site: http://mods.mybb.com/view/my-top-poster-2

Feature listing

For now, it has some simple features:
  • Easy-to-use & Simple in installation
  • Provides a template for easy editing [tp_topposter] and that too in a separate group to make it easy for you to find it!
  • Light-Weight - No time taking queries!
  • Globally available - The variable [$postertop] is available globally throughout your forum! Use it anywhere!

Example Usage

By default, it will add the NOTIFICATION just beside the username of user in header_welcomeblock_member.

However, you can remove it from there and display it else where.

For example:
As a notification like the private messages:
1. Edit the template tp_topposter and replace it with:
<div id="pm_notice">You are today's top poster with {$user['poststoday']} Posts!</div>

Easy right?

As a notification like the private messages along with their USERNAME & PROFILE LINK:
<div id="pm_notice">Hey <a href="member.php?action=profile?uid={$user['uid']}">{$user['username']}</a>! You are today's top poster with {$user['poststoday']} Posts!</div>

Similarly you can derive your own ways of using it.

Installation instructions

1. Upload Plugin to folder [MYBBROOT/inc/plugins/]
2. Go to ACP -> Plugins -> Install & Activate MyTopPoster
Done!

I will for sure add more features to it! Soon!
Approved!
Fatal error: Call to undefined function topposter_info() in /home/mydomain/public_html/inc/plugins/mytopposter.php on line 28
Fixed the error. Sorry for the inconvenience!
Please how to show a message inside user post when it is a top poster postbit template?????

<if $post['uid'] = ($topposter->$user['uid']) then>TOP POSTER</if>
After uploading it, my entire plugins page is going blank. :/ Any Fix?
(2014-02-05, 06:34 PM)marcus123 Wrote: [ -> ]Please how to show a message inside user post when it is a top poster postbit template?????

<if $post['uid'] = ($topposter->$user['uid']) then>TOP POSTER</if>

Ah, you don't need to do that.....

You just need to add this in member_welcomeblock_user template:

{$postertop}