Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Top Thank Earners (monthly stats) for non-vb pages Details »
Top Thank Earners (monthly stats) for non-vb pages
Mod Version: 1.02, by LBmtb (Member) LBmtb is offline
Developer Last Online: Aug 2015 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.5 Rating: (2 votes - 2.50 average) Installs: 25
Released: 02 May 2007 Last Update: 04 May 2007 Downloads: 209
Not Supported Is in Beta Stage  

Top Thank Earners (monthly stats) for non-vb pages
Version: 1.02
Author: LBmtb[/email]
Last updated: May 3nd, 2007



DESCRIPTION:

This displays the top X thank earners in X month. The X's are configurable. You can have multiple tables in a single page. For example: you can have "Top 20 in May 2007" and have "Top 5 in April 2007" or any other combination you can think of.

The table it produces is a plain jane table but can be styled with CSS. The table's class is "top_thanks" and the rows have alternating classes ("odd" and "even") in case you want to do alternating colors for the rows. Here's what it looks like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

vbSEO URLs and caching the queries are both optional. By default they are not used. Please see #3 of the instructions.

If using the caching technique ... the queries are cached for an hour to speed up the page and reduce server load. For more on the PEAR cacheing stuff, read this: http://books.google.com/books?id=iUf...rRRQ#PPA272,M1

A basic understanding of PHP (or be able to follow directions very well) will help a lot here.


VERSION HISTORY:

1.00: Initial release
1.01: Made using the cached technique optional.
1.02: Cleaned stuff up. Made it a bit easier to use and configure.


REQUIREMENTS:

1) Pear must be setup on your server to use the cached technique. You MIGHT need to do an ini_set() to get the Cache/DB.php available to you.
2) vbSEO is optional. See instructions for how to get vbSEO'ized member urls.
3) Abe's Post Thank You Hack. You may download it here: http://www.vbulletin.org/forum/showthread.php?t=122944
4) The page you use this on needs to have a php extension or if it's html, parse it as php (you can set this in htaccess)


INSTALLATION INSTRUCTIONS:

1) Open thanks1-02.php and fill in variables under "FILL IN STUFF BELOW, mk?"

2) Upload thanks1-02.php to your site (same directory where your top thank earner page will be)

3) On the stats page, add the following somewhere before the stats and change first two variables if you'd like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4) Wherever you want a top thank earners table to appear, put in the following code and configure it a bit (look over the comments):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The previous make a table for the current month. For months other then the current month...
thanks() takes two optional arguments. Those arguments are epoch values for the beginning and end of a different month.

Example 1: For stats from two months ago, do this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example 2: For stats one month ago:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


DEMO:

http://www.socaltrailriders.org/top-thanks.php


HELP/TROUBLESHOOTING:

I will try and support this mod as much as time allows on the vBulletin.org thread. Customizations to your own website can be done for a fee. PM me about that if necessary.


COPYRIGHT:

Please do not remove the copyright from the script.

DONATE:

If you use and appreciate this script, please say thank you by donating something: Donate

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	screenshot.jpg
Views:	712
Size:	37.4 KB
ID:	63890  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 02 May 2007, 09:29
LBmtb LBmtb is offline
 
Join Date: Jan 2006
1st post reserved just in case.
Reply With Quote
  #3  
Old 02 May 2007, 16:18
Frapegliko's Avatar
Frapegliko Frapegliko is offline
 
Join Date: Nov 2005
Real name: Bill
what i want! perfect
Reply With Quote
  #4  
Old 02 May 2007, 19:58
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
nice hack but doesnt work for me
Reply With Quote
  #5  
Old 02 May 2007, 20:09
LBmtb LBmtb is offline
 
Join Date: Jan 2006
Originally Posted by tanyeri24 View Post
nice hack but doesnt work for me
Any error? Where are you stuck?
Reply With Quote
  #6  
Old 02 May 2007, 20:30
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
i getting this error on my self created php file:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #7  
Old 02 May 2007, 21:05
LBmtb LBmtb is offline
 
Join Date: Jan 2006
The first part of your error is the script running into a problem when trying to make the db_cache folder. It creates that folder inside of the directory that your using the script and it holds the files with the cached queries. I actually also ran into the problem too and instead of f'ing with it, I just created it myself. That's probably the easiest thing to do. And then I chmod'd it 777.

The second part of your error has to do with the query. Might be fixed after the db_cache folder is made.

Would you or anyone else want an option to use the regular (non-caching) way of querying the database? It'll avoid that db_cache folder problem.
Reply With Quote
  #8  
Old 02 May 2007, 22:42
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
hi thanks for yer message. I created the folder (and chmod), now the error message is reduced:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #9  
Old 03 May 2007, 00:47
maharajah maharajah is offline
 
Join Date: Feb 2005
Possible to put this in the forumhome somehow ?

.
Reply With Quote
  #10  
Old 04 May 2007, 00:23
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
What kind of queries are involved here and can I alter it to update cache like every 12 hours instead? I just get a little worried since I have over 1.3 million "thanks" issued on my board. Thanks for any advice you may be able to give.
__________________
Hi.
Reply With Quote
  #11  
Old 04 May 2007, 02:33
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Its working for you?
Reply With Quote
  #12  
Old 04 May 2007, 03:40
LBmtb LBmtb is offline
 
Join Date: Jan 2006
Originally Posted by tanyeri24 View Post
Its working for you?
I made a new version of it. Hopefully it's easier to use and configure. By default vbSEO URLs and using the cached queries technique is turned off. Make sure you read the instructions.

Let me know if that works for ya!
Reply With Quote
  #13  
Old 04 May 2007, 03:50
LBmtb LBmtb is offline
 
Join Date: Jan 2006
Originally Posted by RMS-Chef View Post
What kind of queries are involved here and can I alter it to update cache like every 12 hours instead? I just get a little worried since I have over 1.3 million "thanks" issued on my board. Thanks for any advice you may be able to give.
The query is:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You CAN change the option for how long it takes to refresh the query. You'd have to supply constructor arguments to the class when you create the instance of it (in the php file). For a thourough rundown on what arguments it takes and how to do it, check out this link. It's on the last paragraph of page 272 and then beginning of the next page.

Let me know if you need help with that. Good luck!
Reply With Quote
  #14  
Old 04 May 2007, 04:51
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
hey nice work, i always like to see more hacks for non vb pages. ill give this a go another day tho. thanks.
Reply With Quote
  #15  
Old 04 May 2007, 17:32
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Originally Posted by LBmtb View Post
I made a new version of it. Hopefully it's easier to use and configure. By default vbSEO URLs and using the cached queries technique is turned off. Make sure you read the instructions.

Let me know if that works for ya!
Hi thanks for update. I get only a blank page with the codes in 3). At 4) I've again error code like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 17:46.

Layout Options | Width: Wide Color: