MyBB Hacks

Full Version: Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to get the best 5 thread makers in X forum? (fid)

I made a wiki system on my forum using product review system from xthreads and i wish to make a contest.

The idea is show at the main page (thread list) who's "winning" at making threads

Yes

Thanks in advance
Depends on how the best 5 thread makers choice system works?
the problem is that such system does not exist, i thought it was possible to make it with xthreads but it's not possible

and as far i seem within mybb documentation is not possible either owo
I think what RateU means is how do you define what is winning?

Is it the top rated threads? The most viewed threads? The most replies? Or is it a combination of them all? If it is a combination then that is interesting as you would have to find a way to "combine" those scores to give a result. Then you have a possibility to make such a leaderboard.
Oh, pardon me, i did not explain that, i mean Top thread makers, "who made more threads in X FID" as each thread is actually an article/review, that would be enough to count him
You need a plugin for that, because you need to run an additional query (if you are OK for using a plugin).
I use that method for my "YouTube Freaks" here (the block at the left bottom of the page):
http://xtest.byethost7.com/forumdisplay.php?fid=4
(03-26-2012 07:41 AM)RateU Wrote: [ -> ]You need a plugin for that, because you need to run an additional query (if you are OK for using a plugin).
I use that method for my "YouTube Freaks" here (the block at the left bottom of the page):
http://xtest.byethost7.com/forumdisplay.php?fid=4
Wow, nice one, that's exactly what i was looking for Aww
Try this plugin (attached).
Open up the file, change these settings:

PHP Code:
'type'	=> 0,//0 = threads, 1 = posts
'fids'	=> '2',//Forum IDs applied for this plugin (separated by commas)
'gids'	=> '2,3,6',//Only these usergroups are allowed to be a freak (separated by commas)
'limit'	=> 5,//How many users should be displayed
'tlmt'	=> 0,//In hour(s). Only for threads/posts submitted in the last x hour(s). 0 = No limit.
'nlmt'	=> 0,//Only accept freak if their num of threads/posts in this forum is above this setting. 0 = No limit.
'avdim'	=> '50x50'//Maximum avatar dimensions (width x height)

Put {$mn_freak} variable in your article/review's forumdisplay or forumdisplay_threadlist template  (depends on what template prefix you use for the forum).
If you want to change the layout, edit the forumdisplay_mn_freak and forumdisplay_mn_freak_user templates in your Global Templates.

Reference URL's