The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
List latest X paid subscribers on Forum Home Details »» | |||||||||||||||||||||||||||
List latest X paid subscribers on Forum Home
Developer Last Online: Nov 2023
There's also a vB 3.5 version here: https://vborg.vbsupport.ru/showthrea...threadid=99049
What this hack does: This hack will list and instantly refresh (when a new subscription is made) a list of the latest X paid subscribers to your forum. It's a nice way of recognizing members who help pay the the forum bills, and encourages others to join. Demo: http://forum.lowcarber.org PHP edits: 1. 2 edits in index.php 2. 1 edit in includes/functions.php 3. 2 edits in includes/functions_subscriptions.php Template edits: 1. 1 new template: thanks 2. 1 edit in FORUMHOME Installation: 1. In index.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
At the end of the file, just before the end/footer stuff, Code:
/*======================================================================*\ || #################################################################### || # Downloaded: Thu Apr 15th 2004 || # CVS: $RCSfile: functions.php,v $ - $Revision: 1.967 $ || #################################################################### \*======================================================================*/ ?> PHP Code:
Note2 The template for usernames is in the code. To change the style and colour, edit this line from the code you added to functions.php: PHP Code:
3. In includes/functions_subscriptions.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Leave the new template empty 5. Edit the FORUMHOME template Add $thanks where you want the list of members to appear. For example, I use this in the stats area of FORUMHOME: Code:
<div>Thanks latest <a href="subscriptions.php">contributing members</a>: $thanks</div> To auto fill it right now: Simply go to your admin control panel, click on subscriptions, view list, edit any existing subscription, for example, add 1 day to the subscription of a member, and save. You can re-edit to subtract the 1 day if you want. Show Your Support
|
Comments |
#12
|
||||
|
||||
You're right. I forgot that there was no date references for usergroups. I'll have to come back to this one I guess once I have some time to play around with it. I'm still trying to restore everything after upgrading to 3.0.1.
|
#13
|
||||
|
||||
I'm getting foreach errors also..
One question: when you say 'before the bracket', do you mean 'before the curly bracket' or 'before the round bracket?' I currently have: PHP Code:
PHP Code:
|
#14
|
|||
|
|||
Kall, the "thankyou();" line should be plasced above the quoted code.
The code you posed (the first block) look fine. If you still have problems, email me the two files and I'll take a look. |
#15
|
|||
|
|||
For those interested, I've had a few emails back and forth with Kall, and he emailed me several of his forum files to investigate.
The conclusion is as follows: 1. The "foreach" warning is a result of another hack, in combination with this hack. The other hack is the "store cash hack". The line numbers reported in the warning is not related to this hack. 2. Despite the warning, both hacks seem to work fine, with no problems, so you can ignore it. |
#16
|
||||
|
||||
I'm getting errors, too:
Quote:
I have the ucash/ustore hack installed, as well as the recurring paypal hack. |
#17
|
|||
|
|||
Quote:
You just need to re-do step 2 with this code: PHP Code:
|
#18
|
||||
|
||||
Thanks for the prompt response. Now I'm getting this error:
Quote:
|
#19
|
||||
|
||||
PHP Code:
|
#20
|
|||
|
|||
Quote:
|
#21
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|