vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Top Posters (https://vborg.vbsupport.ru/showthread.php?t=121918)

Paul M 08-28-2006 11:46 PM

Quote:

Originally Posted by wolfyman
The one case I was looking at that is not on the list

Primary: 36
Additional: 30, 26, 7, 37

Another that is not showing up:

Primary: 36
Additional: 30, 26, 2

Then I have no idea, and don't really see how it's possible, mysql should return what you ask it for.

wolfyman 08-29-2006 12:02 AM

The older version of the hack worked just fine for me, on 3.5.4. Does that help at all?

And now that I look at it - no users in that usergroup are showing on the toplist.

Paul M 08-29-2006 12:19 AM

Quote:

Originally Posted by wolfyman
The older version of the hack worked just fine for me, on 3.5.4. Does that help at all?

The actual code is identical to the 3.5 version.

LordDB 08-30-2006 08:42 PM

I'm using vB3.6, and after I installed, clicked on the link, and now get Database Error.

Any advice here, plz?

Br.

Paul M 08-30-2006 10:41 PM

No one can tell you anything unless you post the actual error.

wolfyman 08-31-2006 01:30 PM

hey Paul, could you send me the older version? I would like to give it a shot, I think I've pushed every button possible in my admincp with no results.

I just don't get it...

I just took a user from primary 36 and put them as additional 36/primary 2, and they show up just fine on the top posters list....

LordDB 08-31-2006 03:39 PM

Here you go, Paul:

Database error in vBulletin 3.6.0:

Invalid SQL:

SELECT COUNT(post.dateline) AS postcount, post.userid, user.username
FROM post AS post
LEFT JOIN user AS user ON (post.userid = user.userid)
WHERE dateline > 1156955856 AND user.usergroupid IN (2,5,6,7,9,11,)
GROUP BY 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 ')
GROUP BY userid ORDER BY postcount DESC LIMIT 5' at line 4
Error Number : 1064
Date : Thursday, August 31st 2006 @ 05:37:28 PM
Script : http://www.norfolkmanagementrentals.co.uk/forum/
Referrer :
IP Address :
Username : Mega Admin
Classname : vb_database

Cheers! :)

Paul M 08-31-2006 10:16 PM

Remove the comma after the 11 in the usergroup settings.

wolfyman 08-31-2006 11:31 PM

show me some love paul, pleeeeeeease :)

Paul M 09-01-2006 03:54 AM

Quote:

Originally Posted by wolfyman
show me some love paul, pleeeeeeease :)

Huh ?

psalzmann 09-01-2006 04:49 PM

Great hack. It has been installed on our site for at least a month and I just noticed a huge flaw (well, maybe not) but check this:

So we have a Top Posters Competition where each month a top poster wins $20 for having the most posts in that given month. Fine, no problem.

A new month is finally here (Aug 1st) and the top posters system HAS NOT RESET back to 0. Is this something we're going to code in ourselves to reset these stats?

Anyways, obvisouly the script doesn't support stat resetting, so I ask .. is there an easy method to reset all stats on a given month maybe via CRON or my manuallly typing something in or by running a script to reset?

Please advise what tables I need to clean out to reset each month?

Thanks in advance guys.

wolfyman 09-04-2006 03:13 AM

Quote:

Originally Posted by Paul M
Huh ?

"Huh" what? I asked you for support, I asked you for an older version, and you ignored me.


I just got this email from a programmer I use:

Quote:

The problem is with this topposters module, you know this, right?
https://vborg.vbsupport.ru/showthread.php?t=121918

Here is what I found in topposters.php:
// List usergroups to be included //
$groups = '2,5,6,7,12,20,21';
These groups were just hardcoded in module code, so settings in vBulletin options were useless!

It should work now.

And guess what? It DOES work now. Thanks, buddy.

Paul M 09-04-2006 01:32 PM

Maybe your programmer should have looked a bit more carefully ;)

This mod doesn't use topposters.php - nor does the 3.5 version, that file is only found in the original vb3.0 version.

wolfyman 09-04-2006 01:42 PM

Why should my programmer have looked more carefully? He got it working, that's all I care about. If you weren't so busy defending your "code" you would have realized you weren't helping solve the problem. Like I said in my last post - thanks, buddy. :D

Paul M 09-04-2006 02:34 PM

Quote:

Originally Posted by wolfyman
Why should my programmer have looked more carefully?

Perhaps to save himself/herself the trouble of fixing something that wasn't actually broken. :cool:

Quote:

Originally Posted by wolfyman
If you weren't so busy defending your "code" you would have realized you weren't helping solve the problem.

I responded to you at least three times (posts 38, 41 & 43). :) I'm not quite sure how I'm supposed to realise you are trying to use a file that doesn't even exist in this version, or the current 3.5 version. As for "defending my code" - yes, I will, and make no apologies for it - if you choose to post an e-mail from a "programmer" saying that something is "useless" then you can be sure you will get a respose pointing out thier mistake.

If you have something that is working then great :) - but JFYI - what you have is not this mod, it guess it must be a very early 3.5 conversion (released while 3.5 was still in the beta stage) and you could [I think] uninstall this mod completely and that file would continue to work.

davelacey 09-08-2006 09:52 AM

Sweet.
Thankyou :)

gingery 09-08-2006 01:39 PM

Is there any way to exclude a specific forum from counting towards the posts totals (while still allowing "Count Posts Made in this Forum Towards User Post Counts" to be yes in the vb adminCP)?

Paul M 09-08-2006 04:27 PM

No, there is no such facility.

zafrir 09-13-2006 03:57 AM

Installed - working!

can't change the 28 days column to somthing else.
how can I delete a column?

Paul M 09-13-2006 08:45 AM

You can change the 28 days to whatever value you want.

Quote:

The other three periods are user definable (in days) - the default values are 1 day (24 hours), 7 days & 28 days. These three columns cannot be turned off.

aky 09-15-2006 06:45 AM

anyway to have a colum that an admin can reset... say if i want to have a top poster of the month contest starting in the middle of a month, i would like to reset a column to 0 posts and let to run until i click reset again

any chance of having this?

Paul M 09-15-2006 07:08 AM

Sorry, but no - you cannot do that, and I have no plans to add such a feature.

xman_79 09-15-2006 07:47 AM

Very nice .
Thank you.

Alfa1 09-19-2006 08:32 PM

Hey Paul. Yet another handy hack from you. Is there any chance of expanding this to top posters per forum? That would make my day.

VitroX 09-21-2006 01:58 PM

thanks for your hack, however where is supouse to be the link to the Top Posters?, I cant find it, I installed it and didnt report problems, I'm using vb 3.6.1

Paul M 09-21-2006 03:59 PM

If it manages to create it, it will be in Quick Links. If not, you will need to manually add one, linking to misc.php?do=topposters

exilera 09-21-2006 04:17 PM

Is there any way to add a list of top posters within the "left side column" hack also found on vBulletin.org?

Thanks!

Skedoozy 09-22-2006 08:02 PM

Quote:

Originally Posted by Paul M
You can change the 28 days to whatever value you want.

I think he means that whatever you change the days or hours to it still says 24 hours, 7 days, 28 days, in the column headers.

I fixed this by editing the original XML to say what I put the settings on and then uploading it again checking yes on Allow Override when I did. That worked. :)

Paul M 09-22-2006 09:38 PM

or you could do it the proper way and just edit the phrase in the ACP, like you would any other phrase. :)

AngieZ 09-23-2006 07:28 PM

Is there a way I can edit the title to include my forum name on the list instead of it displaying "Top Posters List" by default?

Paul M 09-23-2006 09:43 PM

Not exactly - it uses a phrase, but that phrase is used in more than one place.

Dasme 09-25-2006 11:59 PM

Great mod Paul M.

Is there any way or a simple modification so that this would show the previous month's Top Posters as well? I'm planning on using this for a contest, and would love it if the previous months stats stayed for the month.

Thanks for putting out such a useful mod.

Captain Kirk76 09-26-2006 01:06 AM

Hi, Great Mod!
Unfortunatly it didnt add it to my navbar, as its full. Is there anyway of making it a little link on the Whose Online part?

Thanks! (forum is www.forumchunkies.co.uk , as you can see, my navbar is full already, it has 2 extra when logged in)

Its also missing certain members off the list too? :( how can i set it to accept ALL usergroups? (that part is here http://forumchunkies.co.uk/vb/forum/...?do=topposters )

Paul M 09-26-2006 01:43 AM

Quote:

Originally Posted by Dasme
Is there any way or a simple modification so that this would show the previous month's Top Posters as well? I'm planning on using this for a contest, and would love it if the previous months stats stayed for the month.

There is no way to do that, it would need a new section of code writing.

Quote:

Originally Posted by Captain Kirk76
Hi, Great Mod!
Unfortunatly it didnt add it to my navbar, as its full. Is there anyway of making it a little link on the Whose Online part?

It tries to attach a link in Quick Links, not the navbar - but that will only work if you don't have a customised style. Otherwise you need to manually add a link yourself.

Quote:

Originally Posted by Captain Kirk76
Its also missing certain members off the list too? :( how can i set it to accept ALL usergroups? (that part is here http://forumchunkies.co.uk/vb/forum/...?do=topposters )

The usergroups included is part of the options, add all the groups you want to include (the default is 2,5,6,7).

Captain Kirk76 09-26-2006 02:28 AM

I understand the bit about adding the usergroup, but how do i know which number to add?

Paul M 09-26-2006 06:55 AM

Look it up in the usergroup manager.

navjotjsingh 10-04-2006 08:28 AM

Hey Even When I set 30 days instead of 28 days...It still shows the topic under Top posters as Last 28 days...is it just typo error or is it really showing posts from 28 days?

Paul M 10-04-2006 09:14 PM

If you set it to 30 days then it will display 30 days - the text is a phrase, you need to edit that as well if you change the days.

Doglet 10-09-2006 10:01 AM

Version 3.22 with vBulletin 3.6.2

There is definitely something wrong with the Last 28 days column. The totals in that are larger than the Overall column, which is correct. This must surely cast a doubt on other rolling totals?

Look at this site. The link is on navbar.

Paul M 10-09-2006 12:06 PM

There is nothing wrong with it, You just need to understand what it does.

All the columns except "overall" count the actual number of posts in the database by each user over the time period - this includes any hidden/moderated/deleted posts, and any in private forums or forums that don't normally count posts. It is exactly what it says, a count of ALL posts in the given timeframe.

The final "overall" column is simply read from the user table, it is the one shown in a users postbit, it's not a true count and is rarely accurate on older forums - the reason it's done this way is simply because counting all posts in the database would be a seriously slow query on any decent sized forum.


All times are GMT. The time now is 01:05 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
  • Page Generation 0.01310 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete