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)

YabbaDabba 04-20-2007 08:54 AM

Quote:

Originally Posted by Paul M (Post 1228210)
it was designed purely for real time display, nothing more.

Thanks for your efforts on this.

Questions:
  1. Are all the stats calculated on the fly everytime the topposters page is requested?
  2. Or are stats just updated periodically, like once a day?
  3. If only periodic updates, is there a cron job that runs and where is it defined?
  4. Is there a server load encountered during install (as it calculates stats)?
  5. Any known issues with php 4 vs. 5?
  6. Any known issues with mysql 4 vs. 5?
We have ~2.5 million posts and ~25K posts/week.

Thanks in advance.

Paul M 04-20-2007 11:52 AM

1. On the fly.
2. See 1.
3. See 1.
4. There are no calculations during install.
5. Nope.
6. Nope.

YabbaDabba 04-20-2007 03:02 PM

Thank you for the info

** clicks install**

Majest 04-25-2007 12:26 AM

Great mod, no problems discovered thus far, nice and simple to install and use too. ;)

cash7c3 05-11-2007 05:07 AM

How can I add this as a side bar on my home page? All I need to know is which vbphrase is being used to call the list from the overall top posters..

Aimee1969 05-11-2007 07:47 PM

I like this ;) thank you

Paul M 05-11-2007 08:18 PM

Quote:

Originally Posted by cash7c3 (Post 1245425)
How can I add this as a side bar on my home page? All I need to know is which vbphrase is being used to call the list from the overall top posters..

Sorry, I don't quite follow your question.

cash7c3 05-12-2007 01:22 AM

<a href="http://www.modmymoto.com" target="_blank">www.modmymoto.com</a>. On the left, under the Google ad, I have a small table set up with a link to the top posters page at the moment. I would like to have that table actually display the overall top posters for the site.

Paul M 05-12-2007 08:41 AM

You would need a seperate mod to do that.

coffee 05-13-2007 05:52 PM

Works great with vB 3.6.6 !

FatalBreeze 05-15-2007 07:20 AM

Hi! I really wanted to add another column of the rank of each user is the list, perhaps to put a small icon near the three top members in each category (in the three top rows, and have a number of the ranking in the other rows), but i couldn't add another column without messing up your hack completely. can you please upgrade it a bit? thanks.

Paul M 05-15-2007 12:16 PM

I don't really know what you mean by "upgrade it a bit", but I'm not planning any changes to this.

FatalBreeze 05-15-2007 07:25 PM

so can you give a hint on how to add another column (a sixth column) which shows the number of each row (=the rank of each row) please?

upparoom 05-29-2007 03:19 AM

installed, but it only updated some skins.

can you link the code to update manually?

HoGGeT 06-01-2007 09:50 AM

I installed it but some user groups are not shown at top posters
how can I show that at there?

Lizbaby4 06-02-2007 03:25 AM

I know you have been asked this question a ton of times before, but when I went to add the link to the nav bar (I have a custom style) I could not find this:

PHP Code:

<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr

Is there someplace else I should put the coding to add the link to the nav bar?

CMGU 06-13-2007 12:15 AM

thanks paul

WarDoGG 06-13-2007 12:19 PM

hey this is a great mod... just 1 thing though... i want it to display the no. of user threads, not the posts... can u plz tell me how this can be done ? editing plugin codeS ?

joeychgo 06-14-2007 12:20 AM

Hey Paul -

Is there a way to pull from this hack - the top posters in the last 28 days - and display just that data someplace else such as a forumhome column or a CMPS module?

Paul M 06-14-2007 07:03 AM

Not directly no.

Angel-Pie 07-06-2007 07:47 PM

installed awesome this will be good for a post a thon!!!!

njoker555 07-08-2007 01:00 AM

Quote:

Originally Posted by Lizbaby4 (Post 1259550)
I know you have been asked this question a ton of times before, but when I went to add the link to the nav bar (I have a custom style) I could not find this:

PHP Code:

<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr

Is there someplace else I should put the coding to add the link to the nav bar?

dont know if u found this already but follow this: go to your header file - not ur navbar file

search for:
Code:

<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
under it add:
Code:

<tr><td class="vbmenu_option"><a href="http://www.yoursite.com/misc.php?do=topposters">Top Posters</td></tr>
i just added the mod, its great :) thanks for it

Brembo 07-08-2007 02:11 PM

I am interest this mod..Unfortunately i don't know how to install it..Can somebody help me please..:o

deezelpope 07-08-2007 02:24 PM

<i>Paul's mod's always come with very easy-to-understand instructions, usually in the first post and/or in the zip file.</i>

swissbob 07-09-2007 12:40 PM

I get a mysql error
http://www.democracyforum.co.uk/misc.php?do=topposters

Quote:

Database error in vBulletin 3.6.7:

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 > 1183988154 AND 1
GROUP BY userid ORDER BY postcount DESC LIMIT;

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 '' at line 5
Error Number : 1064
Date : Monday, July 9th 2007 @ 09:35:54 AM
Script : http://www.democracyforum.co.uk/misc.php?do=topposters
Referrer :
IP Address : ***
Username : ****
Classname : vb_database

Paul M 07-09-2007 02:37 PM

You're missing a setting ;

In the vboptions page for this mod, make sure "Set the number of Top Post lines to be displayed" has a value set.

swissbob 07-09-2007 03:12 PM

Quote:

Originally Posted by Paul M (Post 1286748)
You're missing a setting ;

In the vboptions page for this mod, make sure "Set the number of Top Post lines to be displayed" has a value set.

Now I just get a blank page :mad: I have tried altering all of the settings, but nothing seems to make a difference.

Thanks for you help, btw.

Paul M 07-09-2007 06:25 PM

I suggest you reinstall the product, sounds a bit like vb failed to import it properly.

swissbob 07-09-2007 09:32 PM

Quote:

Originally Posted by Paul M (Post 1286912)
I suggest you reinstall the product, sounds a bit like vb failed to import it properly.

weirdly I had done that before.... but I tried it once more on your suggestion and now it works, thankyou. :)

aakhan136 07-14-2007 04:38 PM

thanks

ncangler 07-31-2007 04:00 AM

I had this working with the 3.27 version but when I upgraded to 3.29 via the XML file I now get this 404 error message:
Quote:

404 Not Found

The requested URL /misc.php?do=topposters does not exist.
Any suggestions on how I can fix this? Thanks.

Makc666 08-01-2007 04:53 AM

Quote:

Originally Posted by ncangler (Post 1305890)
I had this working with the 3.27 version but when I upgraded to 3.29 via the XML file I now get this 404 error message:

Any suggestions on how I can fix this? Thanks.

Uninstall - Install again...

ncangler 08-09-2007 04:18 AM

I uninstalled and installed again, then realized that the Quicklinks link works from forum pages but not from the vBadvanced CMPS home page. So I need to add the /forums/ to the path. But I'm not sure where to do this. Is this the line of code that the script adds to the Quicklinks:
$template_hook[navbar_quick_links_menu_pos2]
If so can I just change this to something like:
<tr><td class="vbmenu_option"><a href="/forums/misc.php?do=topposters">Top Posters</a></td></tr>
Quote:

Originally Posted by Makc666 (Post 1306748)
Uninstall - Install again...


Paul M 08-09-2007 12:20 PM

Yep, that should work.

ncangler 08-09-2007 02:21 PM

That did it. Thanks Paul!

control1110 08-13-2007 05:08 AM

how do I put this information on my forumhome instead of linking it to a different page

Paul M 08-13-2007 10:55 AM

You can't, it's designed to be a seperate page.

Tygerwoody 08-16-2007 03:08 PM

awesome mod. Thanks :)

KURTZ 09-11-2007 03:44 PM

updated

ncangler 09-11-2007 04:14 PM

I just updated and I'm having the same path problem for my vbA CMPS home page. If I try to add the URL to the NAVBAR code I end up with two Top Posters links in Quick Links and the one installed with the update does not work because it does not have /forums/ in the path.

Where could I edit the template hook to add the path statement or URL to make the new version work? Thanks for this great tool!


All times are GMT. The time now is 05:06 AM.

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.02046 seconds
  • Memory Usage 1,819KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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