MyBB Community Forums

Full Version: ProStats (Professional statistics)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
I added this to the prostats.php file to include the thankyou plugin as suggested by Saeed:

function ps_GetMostThanks($NumOfRows)
{
global $mybb, $db, $templates, $theme, $lang, $ps_align;

if($db->table_exists("thx"))
{
$query = $db->query("SELECT u.uid, u.username, u.usergroup, u.displaygroup, COUNT(t.adduid) as thxcount FROM ".TABLE_PREFIX."thx t LEFT JOIN ".TABLE_PREFIX."users u ON (t.adduid=u.uid) GROUP BY t.adduid ORDER BY thxcount DESC LIMIT 0,{$NumOfRows}");
while($most_thanks = $db->fetch_array($query))
{
$uid = $most_thanks['uid'];
$username = ps_FormatName(htmlspecialchars_uni($most_thanks['username']), $most_thanks['usergroup'], $most_thanks['displaygroup']);
$thxnum = $most_thanks['thxcount'];
$profilelink = get_profile_link($uid);
eval("\$mostthanks_row .= \"".$templates->get("prostats_mostthanks_row")."\";");
}
}
eval("\$column_mostthanks = \"".$templates->get("prostats_mostthanks")."\";");

return $column_mostthanks;
}

and it works fine!

I just wanted to exclude the admin group of that list as they will always be on top... Is that possible?

Thanks in advance and I love the plugin Smile
Hi patrese,

Concerning "Most thanks" column... you really didn't have to do that. You just need to install both of "ProStats" and "Thanks" plugins.

And about your idea, I think it's not exactly what we expect the "Most thanks" column to be. I'm afraid that it would cause to kind of obscuring!
"Thanks" plugin is awesome in combination with prostats Smile
(2010-09-04, 08:15 PM)SaeedGh Wrote: [ -> ]Hi patrese,

Concerning "Most thanks" column... you really didn't have to do that. You just need to install both of "ProStats" and "Thanks" plugins.

And about your idea, I think it's not exactly what we expect the "Most thanks" column to be. I'm afraid that it would cause to kind of obscuring!

Thanks for a great plugin and also for your answer Saeed. I have it working well, prostats and thanks together.
I just feel stupid about the thanks column as it is always me on the 1st place at the top of the list, and I would like it to be for the members only, not for the admins.

Anyway, never mind, and thanks again Smile

is there anyway you can put the thread views in latest posts?
(2010-09-10, 05:50 PM)christinaxx Wrote: [ -> ]is there anyway you can put the thread views in latest posts?

Nope! But if this feature would be popular, I'll work on it.
I have this installed. but it does not show on my home page? I have it turned on and all that, but cant see it?

Thanks
(2010-09-10, 06:36 PM)SaeedGh Wrote: [ -> ]
(2010-09-10, 05:50 PM)christinaxx Wrote: [ -> ]is there anyway you can put the thread views in latest posts?

Nope! But if this feature would be popular, I'll work on it.

I would be really greatful if you could. Smile I think it would be very popular.
(2010-09-10, 07:54 PM)articman Wrote: [ -> ]I have this installed. but it does not show on my home page? I have it turned on and all that, but cant see it?

Thanks

Please read this post: http://community.mybb.com/thread-48686-p...#pid564023
Any news on thread views on recent posts?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42