MyBB Community Forums
[1.6][1.4] MyTopPoster - Greet Your TopPoster - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [1.6][1.4] MyTopPoster - Greet Your TopPoster (/thread-150159.html)



[1.6][1.4] MyTopPoster - Greet Your TopPoster - Cedric - 2014-01-19

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:


.zip   mytopposter.zip (Size: 1.79 KB / Downloads: 205)
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!



RE: [1.6][1.4] MyTopPoster - Greet Your TopPoster - Shade - 2014-01-21

Approved!


RE: [1.6][1.4] MyTopPoster - Greet Your TopPoster - saintsinner - 2014-01-21

Fatal error: Call to undefined function topposter_info() in /home/mydomain/public_html/inc/plugins/mytopposter.php on line 28


RE: [1.6][1.4] MyTopPoster - Greet Your TopPoster - Cedric - 2014-01-22

Fixed the error. Sorry for the inconvenience!


RE: [1.6][1.4] MyTopPoster - Greet Your TopPoster - marcus123 - 2014-02-05

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>


RE: [1.6][1.4] MyTopPoster - Greet Your TopPoster - iHydra - 2014-02-05

After uploading it, my entire plugins page is going blank. :/ Any Fix?


RE: [1.6][1.4] MyTopPoster - Greet Your TopPoster - Cedric - 2014-02-17

(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}