List latest X paid subscribers on Forum Home
This modification is in the archives.
There's also a vB 3.5 version here: http://www.vbulletin.org/forum/showthread.php?s=&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:
'FORUMHOME',
PHP Code:
'thanks',
PHP Code:
// ### TODAY'S BIRTHDAYS
PHP Code:
$thanks = $templatecache['thanks'];
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:
// ###################### thankyou #######################
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:
$thanksbit = ' <a href=\"member.php?$session[sessionurl]u=$contributer[userid]\"><font color=\"#228E8E\"><b>$contributer[username]</b></font></a>';
3. In includes/functions_subscriptions.php Find: PHP Code:
}
PHP Code:
thankyou();
PHP Code:
}
PHP Code:
thankyou();
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. Download No files for download. |
Similar Mods
Latest X Paid Subscribers on Forum Home | vBulletin 3.5 Add-ons |
Forum Home Enhancements Latest Paid Subscribers v1.1 | Modification Graveyard |