![]() |
Widget: Top 5 Posters this Week
......................................
|
Excellent add-on :) I like it!
|
Nice work!
Is it possible to include multiple usergroups in this, or just one? |
Quote:
1.- Changing the "where" argument from WHERE usergroupid=2, to WHERE usergroupid=2 OR usergroupid=3 OR usergrooupid=7 . In this example we assume that you want to include members who belong to usergroups 2,3,7 2.- By using an array. At the top of the file add: Code:
$grouparray = "2,3,7"; Maria |
Thanks, installed
|
Any way to EXCLUDE certain users? I have some newsbot users that will always win the post wars.
|
Quote:
Ah ha! That worked!! Was that always here, my bad :o Thanks for the great widget!! Happy new year! |
Didn't work.
Broke my board :( Got the following database error because I have the majority of users are imported from a previous board. The user name is REGISTERED and the user I.D. is 31. I edited the code as you said... but it didn't work. Any ideas? Database error in vBulletin 4.0.0: Invalid SQL: SELECT user.userid, user.username, user.usertitle, COUNT(post.postid) AS postcount FROM user LEFT JOIN post ON post.userid=user.userid AND dateline>'1262563200' WHERE usergroupid=2 OR to WHERE usergroupid=31 GROUP BY user.userid ORDER BY postcount DESC LIMIT 5; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to WHERE usergroupid=31 GROUP BY user.userid ORDER BY postcount DESC LI' at line 7 Error Number : 1064 Request Date : Wednesday, January 6th 2010 @ 07:00:10 PM Error Date : Wednesday, January 6th 2010 @ 07:00:11 PM Script : http://www.microlightforum.com/content.php?121 Referrer : http://www.microlightforum.com/content.php?142 IP Address : 90.194.162.111 Username : VinceG Classname : vB_Database MySQL Version : 5.0.87-community |
this widget crashes my whole site when using it
|
Quote:
In your case, you wrote "WHERE usergroupid=2 OR to WHERE usergroupid=31" while the correct is "WHERE usergroupid=2 OR usergroupid=31". Why you added more "to WHERE"? Maria |
Quote:
Maria |
I tried changing the where, the way you show it, but it gives me
a database error no matter which of the two methods you show, I use. :( |
Sorry Maria. It didn't work and I didn't put the 'to' in there.
Your other one top posters this month is now on my site. I removed completely the following line WHERE usergroupid=2 And the other monthly mod works fine. Although I am the highest poster to my site :D |
Works great !
The only thing to improve would be to avoid displaying old inactive members with 0 posts during the first hours of the new current week. I guess there could be a condition to allow only members who posted this week, that would work. Thanks a lot! |
I'm probably going to sound so dumb, but I am new with Vbulletin and can't even find the "VbulletinCMS" area. I know I have seen Add widget before, but I have looked for countless minutes.
|
Great Idea,
didn't work on my forum, i will wait till this has been fixed... Can't wait, GG! |
Quote:
|
Due to lack of free time, I must decrease the time that I'm spending here for support. By having a long thread for each of my 16 mods, most often I'm bypassing questions. That's why for urgent questions please visit my site, where it's easier to support you, by having a thread per question.
Thank you Maria |
Quote:
|
Very nice, I just have one problem - the post count column appears one row below the user name under the top poster section, so the last row has an empty user name and the post count of the user above, and the first row has just a user name with no post count.
Any ideas? |
hi, thanks for mod !!!!! I installed !!!
one question??? can I add this code in vbblock for sidebar of the forum? thanks |
Changed the id to guild group, but top poster displays - Posts:%u00A066
any idea's? |
Me too
|
Me Too.
|
Ok, try this code, and ad your group id: in $grouparray = "2,3,4,5,"; in the first line.
Code:
|
Quote:
any ideas anyone? |
hi Maria, How to apply this code in a sidebar block?????
|
Having to uninstall this - it crashed my website with mysql errors as well.
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server during query /home/authent/public_html/forum/includes/class_core.php on line 312 MySQL Error : Error Number : Request Date : Wednesday, March 3rd 2010 @ 03:31:44 PM Error Date : Wednesday, March 3rd 2010 @ 03:31:44 PM Script : http://www.authentic-campaigner.com/...and=1267648292 Referrer : http://www.authentic-campaigner.com/forum/content.php? IP Address : xxx.xxx.xxx.xxx Username : Classname : vB_Database MySQL Version : |
I've installed this on vb 4.0.2 and is working fine.
Installed it on my home page. |
Installed. Just the member's profile photo didn't appear though already add in the photo in the profile page. I want exactly like the screen shot. What's the matter with my installation.
TQ. |
Quote:
BEWARE! As your user table grows it will kill your server! We have 700k member it took down the entire site! I believe its scanning the user table maybe? Nice mod for smaller forums. |
How about slightly modifying this to show top repped members/week or month. I'm no developer but reading over the code a bit it looks like it would be doable to someone who knew what they were doing. It would be good for my forum. Please consider it.
Thanks for the hack as it is, btw. |
This is working well on my 4.03 site.
I'd like to see what it looks like with top poster this year, anyone know what to change in the date line to so it starts counting from 00:01 on the 1st of Jan 2010? Steve |
Hydn: I created a much more efficient widget for this; it shouldn't crash your site at all.
Steve: Again, the widget I created has 8 different time settings See here: https://vborg.vbsupport.ru/showthread.php?t=236301 |
Does anyone know how we can use this as a forum block? I tried entering the same code as PHP in a forum block but nothing displayed.
|
One more question, can this be modified to show Top Posters this month rather than week? Seems like it has something to do with this line but I'm not a programmer :(
$starttime = mktime(0, 0, 0, date('n'), date('j'), date('Y')) - ((date('N')-1)*3600*24); |
Nice addition to the website ...
thanks alot :) |
Quote:
|
Thanks installed works great!
|
Installed and works sweet on 4.0.5
;-) |
All times are GMT. The time now is 06:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|