Version: 1.1, by Lea Verou
Developer Last Online: Jul 2012
Version: 3.5.3
Rating:
Released: 11-16-2005
Last Update: 11-28-2005
Installs: 323
Uses Plugins Template Edits
Additional Files
No support by the author.
This hack displays the referrers and the members they referred in a separate page. Also for registered members it displays their referrer link.
Features:
-Fully phrased
-WOL location so that it doesn't show up as Unknown location
-Usergroup permissions
-Ability to count statistics from a specific date - great for referrer contests
-Highly customizable look of the page from the admincp
-Ability to exclude specific usergroups from the statistics (eg banned users)
-Pages in the results (results per page is customizable)
-Formatted nicknames
-Ability to display post count next to each username
Installation
1. Upload the file referrers.php to your forum root directory
2. Import the product product-michelle_referrers.xml
3. Done! The link for the page would be like www.yoursite.com/forum/referrers.php. Place it wherever you feel it fits.
Do not forget to click INSTALL!!!
Changelog
version 1.1
-bugfix (when there are no results)
-new feature(postcount next to username, can be turned off via admincp)
Credits
Psionic Vision
Conqsoft
Notice: The current hack attached in the right will cut both referrals AND referrers that have registered before the cut-off date. Most people seem to only want it to cut the referrals so, if you too want that, you can replace the referrers.php in the zip with the one attached here.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
That definitely is mean. Come on, Boofo, give her a break... She put her efforts in. You are not obliged to always express your dislike for every person's work
It was not an expression of dislike. It just didn't suit my needs at the time and will probably do so in the future when the fix is added. Generalizations are not a good thing to get started.
Then I sloud probably rush a bit more with it I guess
Yes, you should
Quote:
Oh, I just saw that! It sounds nice!
Ok, here's what you gotta do.
Somewhere in your file after inclusion of global.php put this:
PHP Code:
if (isset($vbulletin->userinfo['invites']))
{ // Psionic Vision's Invite Hack Installed, Adjust Template Settings
if ($canmanageinvites AND ($vbulletin->userinfo['invites'] > 0 OR !$vbulletin->options['invites_reg_only_by_invite']))
{
$show['invites_link'] = 'c_psi_inv_link';
$show['invites_left'] = ($vbulletin->options['invites_reg_only_by_invite'] ? true : false);
}
else
{
$show['invites_link'] = false;
$show['invites_left'] = false;
}
}
else
{ // Psionic Vision's Invite Hack Not Installed, use e-steki link $show['invites_link'] = 'c_def_link';
$show['invites_left'] = false;
}
And then, in template:
HTML Code:
<if condition="$show['invites_link'] == 'c_def_link'">
YOUR CURRENT HTML CODE
<else /><if condition="$show['invites_link'] == 'c_psi_inv_link'"><!-- ############## INVITES LINK ############## --><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"><tr><td class="tcat">$vbphrase[invites_issue_new_invite] <if condition="$show['invites_left']"><phrase 1="$bbuserinfo[invites]">($vbphrase[invites_x_left])</phrase></if></td></tr><tr><td class="alt1"><span class="smallfont"><a href="invites.php?$session[sessionurl]">$vbphrase[invites_click_here_to_invite_new_users]</a></span></td></tr></table><br /><!-- ############## END INVITES LINK ############## --></if></if>
P.S. Just noticed - nice threadid I put that ID in my hack so that it is linked to yours (listed in add-ons in your top post). If you put my ID in, you hack will be listed on my page.
P.P.S. If you are confused, don't worry about variables in my code. They are defined in global_start by one of the plugins that make up the Invite System.
I removed the word "posts:" from displaying because I thought it made things look messy. My next thought is to have it re-rank the display or remove the count for users that never posted (or posted less than a certain amount). Example, if a user posted less than 5 times, then it doesn't count as a referral, etc.
-vissa
Quote:
Originally Posted by Michelle
I am going to upload shortly a version with a bugfix and the postcount that vissa requested but I was too bored to think how to do that
It will be included in the next version.
I removed the word "posts:" from displaying because I thought it made things look messy. My next thought is to have it re-rank the display or remove the count for users that never posted (or posted less than a certain amount). Example, if a user posted less than 5 times, then it doesn't count as a referral, etc.
-vissa
if you want to remove the post count for the referrers that haven't voted you can change
<if condition="$vboptions[showposts]">
to
<if condition="$vboptions[showposts] && referrerposts[$key]">
but if you want to change it for the listed referrals you'll have to edit the php file (not a difficult edit though )
BTW Psionic Vision I thought about it and I think it's better that we release that as an addon/modification for it and not the original product
You know what, you're right. Assuming that my product might change with time, there is a chance that the code I gave you will stop working. Is that you reason?