View Full Version : [MODULE] Top 10 Posters
sully02
11-29-2005, 02:03 AM
This module was originally created by Acido (http://www.vbadvanced.com/forum/member.php?u=54) for vBA CMPS 1.x on 3.0.x, I just ported it over to CMPS 2.x on 3.5.x. The original module can be found here (http://www.vbadvanced.com/forum/showthread.php?t=889).
File uploads - 1 (topten.php)
New templates - 2 (adv_portal_topposters, top_posters)
Download the zip file, follow the install instructions, and enjoy!
Flow Fusion
12-02-2005, 12:28 PM
Has a few bugs in it. Can't seem to move it over any where.
redspider
12-21-2005, 04:34 PM
edit problem fix
pointguardu
12-21-2005, 08:19 PM
followed everyone's advice but it doesn't work
pointguardu
12-21-2005, 08:25 PM
this is the error I get
Fatal error: Call to a member function on a non-object in /usr/home/poin64/www/htdocs/cats/modules/topten.php on line 7
can anyone help?
Zachariah
12-27-2005, 12:55 AM
this is the error I get
Fatal error: Call to a member function on a non-object in /usr/home/poin64/www/htdocs/cats/modules/topten.php on line 7
can anyone help?
http://www.vbulletin.org/forum/showthread.php?s=&threadid=99069
pennylessz28
12-27-2005, 01:48 AM
Question, I reversed engineered this hack to display the 10 most recent registrations, then I changed the displayed amount to 3.
Anyway I could then get it to display their avatar?
Brubaum
01-01-2006, 06:38 AM
http://www.vbulletin.org/forum/showthread.php?s=&threadid=99069
Excellent module Zachariah, installed...;)
Mikecp421
01-28-2006, 05:39 PM
Excellent module Zachariah, installed...;)
yea I concur, I could not get the one is this thread to work for nothing even with custom editing but the one from zach was good the first time all the way through.
becks_dn
01-29-2006, 04:33 AM
cool thank
cdembek
02-04-2006, 12:10 PM
Works great...
but the title (row where you can collapse) is not the full width...
Any suggestions?
www.cannondalecentral.com (located on the right side of home and forum page)
Thanks in advanced
cdembek
02-04-2006, 09:08 PM
I also get this error message when I try to open a post...Module is located on the forum page
Unable to add cookies, header already sent.
File: /var/www/html/forum/modules/topten.php
Line: 15
cdembek
02-04-2006, 09:45 PM
Found out why....
Remove from line 15 ?>
the code I used
<?php
// ### TOP STATS ########################################
$top_stats = array();
// TOP POSTERS
$top_posters = $db->query_read("SELECT * FROM ".TABLE_PREFIX."user ORDER BY posts DESC LIMIT 10");
while($top_poster = $db->fetch_array($top_posters))
{
eval('$top_stats[\'top_posters\'] .= "' . fetch_template('top_posters') . '";');
}
unset($top_poster);
$db->free_result($top_posters);
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_topposters') . '";');
cdembek
02-04-2006, 09:46 PM
also replace the code in the top_posters template to...
fixes the shift of the top of the mod
<tr>
<td class="thead"><span class="smallfont"><a href="/forums/member.php?u=$top_poster[userid]">$top_poster[username]</a></span>
<class="$bgclass"><span class="smallfont"><strong><a> </a>[$top_poster[posts]]</strong></span></td>
</tr>
Maxal
02-07-2006, 08:48 PM
cdembek, could you please re-bundle this with your mods?
cdembek
02-09-2006, 08:27 AM
Here you go....
Centurio
02-09-2006, 11:30 AM
Here you go....
Thx ist works,Fine!!
Sorry for English,my Parents are German,and i`m too ;)
Beller
03-29-2006, 04:17 PM
Nice one..Installed!
plateau
04-25-2006, 05:36 AM
thanks for the job.
thinking that it is too simple to lose some concerns, that is why there r problems. :)
how do i change the path so when they click on the screennames of one of the top 10 posters, it goes to their profile. Right now when i click on a screenname, it takes me to /forums/member.php. But it should take me to /tvsf/member.php. Thanks
halpern
05-15-2006, 05:53 PM
Would anyone feel like post a hack of this mod to display the 10 Latest registrations?
Stifmeister
05-16-2006, 12:17 PM
Nice hack and easy to install. :) Good work. :)
Could you also make "Newest Members" module that displays 5 newest rgistrations?
halpern
05-16-2006, 01:09 PM
The newest members is available in the admincp so I assume making a script or mod to show the last 10 registered users would be easy. Could anyone share some insight on this? It's a great idea.
Stifmeister
05-16-2006, 07:40 PM
The newest members is available in the admincp so I assume making a script or mod to show the last 10 registered users would be easy. Could anyone share some insight on this? It's a great idea.
Heck yeah. I think it could be possible by just altering the top 10 posters code a bit... But my skills aren't good enough.
excellent_sir
10-03-2006, 05:39 PM
Hey guys wondering if you can help... Weird issue
All the above was done easily,,, however my top10 shows up only on my pc on firefox but not ie ? has anyone had this issue ?
http://www.allpronation.com
http://giantekk.com/top10ie.JPG
http://giantekk.com/top10firefox.JPG
Brubaum
10-04-2006, 06:56 AM
Hey guys wondering if you can help... Weird issue
All the above was done easily,,, however my top10 shows up only on my pc on firefox but not ie ? has anyone had this issue ?
http://www.allpronation.com
I don't see the top 10 on your site either with Internet Explorer 6.0.2900.2180 and with Mozilla Firefox 1.5.0.7
What version of Internet Explorer do you have? :confused:
GuaRRand
10-24-2006, 10:55 AM
How about a top 10 posters per day? (or 24 hours).
Cause well... to be honest, nobody will ever reach my postcount :D
I would like a per day top 10.
sly ls1
05-29-2007, 09:26 PM
also replace the code in the top_posters template to...
fixes the shift of the top of the mod
<tr>
<td class="thead"><span class="smallfont"><a href="/forums/member.php?u=$top_poster[userid]">$top_poster[username]</a></span>
<class="$bgclass"><span class="smallfont"><strong><a> </a>[$top_poster[posts]]</strong></span></td>
</tr>
I found it looks much better with this code below
<tr class="alt1">
<td><span class="smallfont"><a href="/forums/member.php?u=$top_poster[userid]">$top_poster[username]</a></span>
<span class="smallfont">[$top_poster[posts]]</span></td>
</tr>
ThePhlexican
09-15-2007, 07:43 PM
After a little modification this block works great! Thank you!
lowboost
09-22-2007, 04:10 PM
Can anyone show me hot to get this module to work?
After I install... my site just go blank.. nothing will show up.
I have to shut off the module to get it to work. :(
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.