PDA

View Full Version : Referrer Statistics


akanevsky
12-06-2005, 10:00 PM
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*==================================*\
|| Referrer Statistics
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5 / 3.6
|| Released : Nov 22, 2006
||
|| Time required to install: 30 seconds
|| Difficulty: easy
\*==================================*/

DESCRIPTION

The modification enchances your vBulletin community with a sophisticated listing of referrers and users they have referred.

STATISTICS

File Uploads: 1
Template Changes: 1
Products to Install: 1


FEATURES


Referrers are sorted first by the amount of referred users and then by username.
Referred users are sorted by username.
On top of the page, there is a message offering to invite more users, which is helpful in terms of expanding your community.
Automatic integration with vS-Invites System.
Graphical representation of the amount of users referred by each referrer as a percentage of total referred users.


VERSION HISTORY

1.3.1
[+] The modification is now officially compatible with vBulletin 3.6.0 and above.
[+] Internal optimization of code: the script now finishes loading twice as fast compared to the previous version.

1.3.0
[+] Corrected a bug, which caused numerous error messages on a board with no referrers.
[+] Corrected a bug, which caused bar widths to be displayed incorrectly at 100%.

1.2.0
[+] Separate phrasegroup for the phrases used solely by this modification.
[+] Redesigned visual look.

1.1.0
[+] Corrected a minor template bug.

1.0.0
Initial Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=102452)

Boofo
12-07-2005, 09:25 PM
Didn't Michelle already release a hack that does this same thing?

Lea Verou
12-07-2005, 09:26 PM
I can't believe this... This is almost identical to mine!!
Even the graphcal represenatation!!
And no credit at all... :(

Ok... I get it that it's due to your age... I hope you grow up to maturity in a few years... :(

Daniel
12-07-2005, 10:25 PM
Because he made the same type of hack as you he is immature? Never heard that one before.

akanevsky
12-07-2005, 10:59 PM
I do apologize for forgetting to put in the credits. That kind of missed my attention as I was concentrating on my homework :) The credits have been put in :)

I cannot say I agree on the immaturity part... Nice invention though.

Anyway, this is just an alternative. You didn't accept my code and I wanted to share it. Considering the fact that I gave you an opportunity to use this code as your own hack before you ever released it, I don't think it's such a big deal :)

Oh, and not that it is of a big importance, but my graphical formula is a bit different than yours.

Dead End Society
12-07-2005, 11:49 PM
Wow this one works for me perfect, thanks! *Clicks Install*

The Chief
12-08-2005, 01:21 AM
Installed but where is this supposed to show?? Where do we click to see this?

RMS-Chef
12-08-2005, 04:17 AM
Any options on this?
For some reason I could not get Michelle's date range option to work properly and was hoping this one would. But it does not seem to have any options. Are there any plans to add any options to this?

Snake
12-08-2005, 03:58 PM
Seems to be a copy of Michelle's hack but I'll check this out soon. Thanks!

lazyseller
12-08-2005, 05:05 PM
Psionic Vision Thanks alot exactly what i was looking for...

clicked installed....

akanevsky
12-08-2005, 08:35 PM
Seems to be a copy of Michelle's hack but I'll check this out soon.

Won't seem that way after you compare the code :)

lazytown
12-09-2005, 05:08 PM
Nice, but I still like Michelle's better. Plus you shouldn't really be copying her template without getting her permission first. Credit alone is not enough.

-vissa

akanevsky
12-09-2005, 05:16 PM
Ok, then template will be changed to something else.

Injektilo
12-09-2005, 10:12 PM
people register when i invite them... i am the referrer but, it doesnt show up in the statistics. why?

akanevsky
12-09-2005, 10:22 PM
You must have mis-installed something in one of the hacks.

Injektilo
12-09-2005, 10:25 PM
You must have mis-installed something in one of the hacks.


i just skipped the step for the navbar edit "<if condition="$show['registerbutton']">" because i found 2 of entries of this code, and didnt know which one to use :)

Snake
12-10-2005, 12:00 PM
Ok, then template will be changed to something else.

And probably add more features & additions?

akanevsky
12-10-2005, 12:00 PM
Like what?

Snake
12-10-2005, 12:09 PM
You know...

akanevsky
12-10-2005, 12:19 PM
Strangely enough, I do not...

Snake
12-10-2005, 12:39 PM
Ever thought of guessing? :p

akanevsky
12-10-2005, 12:45 PM
No...

akanevsky
12-10-2005, 01:40 PM
<u>UPDATE: 1.2.0</u>

Changes: See First Post (and the screenshot)
To Upgrade:
1. Overwrite the Product XML
2. Re-upload the referrers.php file
3. Do the navbar template change described in the manual

Snake
12-10-2005, 01:58 PM
That's more I like it! :)

Injektilo
12-10-2005, 07:32 PM
Psionic Vision : any ideas for my problems please?

akanevsky
12-10-2005, 07:36 PM
people register when i invite them... i am the referrer but, it doesnt show up in the statistics. why?

Did they specify you as a referrer?

Injektilo
12-10-2005, 07:38 PM
Did they specify you as a referrer?


yes, they are also added automaticaly as my friends... the only thing is that it doesnt count in statistics

akanevsky
12-10-2005, 07:44 PM
OK I'll check

akanevsky
12-10-2005, 08:32 PM
Just checked, it does work for me... Try reinstalling the invites hack.

Injektilo
12-10-2005, 11:29 PM
Just checked, it does work for me... Try reinstalling the invites hack.

still the same :(

VB-STYLE
12-11-2005, 02:21 PM
Warning: krsort() expects parameter 1 to be array, null given in /referrers.php on line 132

Warning: Invalid argument supplied for foreach() in /referrers.php on line 134

any ideas for my problems please?

akanevsky
12-11-2005, 02:25 PM
Hmm... Will the following fix the problem?

In referrers.php, find

unset($refusercache);

add above:

if (!is_array($a_refusercache))
{
eval(standard_error(fetch_error('sorry_but_there_a re_no_referrers_on_this_board')));
}

VB-STYLE
12-11-2005, 04:12 PM
It's working fine now thanks. :)

akanevsky
12-11-2005, 05:11 PM
UPDATE: Version 1.3.0

See changelog for details.
To upgrade, overwrite product XML and re-upload referrers.php.

LBSources
12-11-2005, 05:46 PM
works great! thanks..

INSTALLED clicked

harry1951
12-12-2005, 11:04 AM
Seems that it is not working correctly. I invited some people with your inviteshack. I see in my UCP that they accepted and registered, but I don't see them in the stats...

akanevsky
12-12-2005, 05:44 PM
It is working fine for me..

harry1951
12-14-2005, 11:12 AM
*clicks uninstall*

akanevsky
12-14-2005, 08:37 PM
Since you clicked uninstall, you won't receive any support from now on.
Even though I know what the cause of the problem is. :)
You might want to check out the last item in the FAQ post of invite system hack though.

harry1951
12-14-2005, 08:51 PM
Don't need your support anymore as I uninstalled it...

akanevsky
12-14-2005, 08:51 PM
Fine with me, as it's your loss. Keep in mind that none of the other referrer statistics hacks will show new registrants, nor will any other invite hacks mark users as referrers, because of a particular setting on your board (particular = known to me) (and not because this or any other hack is poorly written).

VB-STYLE
12-17-2005, 01:50 PM
*clicks install*
:)

VB-STYLE
12-17-2005, 01:57 PM
It's show me
( There are no referrers on this board. ) but there is some invite accepted.

akanevsky
12-17-2005, 02:06 PM
You must enable "User Referrers" in vBulletin Options. And it will only work for future accepted invites.

VB-STYLE
12-17-2005, 04:11 PM
I can't fined "User Referrers" in vBulletin Options.

akanevsky
12-17-2005, 04:12 PM
It's an option under "User Registration"

VB-STYLE
12-17-2005, 04:20 PM
Thanks,

Smiry Kin's
12-17-2005, 05:45 PM
very nice, :) very usfull!

akanevsky
12-17-2005, 05:51 PM
Smiry,
you seem to forget to click the Install button where you post.

Smiry Kin's
12-17-2005, 09:03 PM
Yep well i just got in! so i will be installing some hacks soon :P
don't worrie i will be clicking install! :)

Smiry Kin's
12-17-2005, 09:28 PM
Would just like to say thank you, installed, worked perfectly.

any chance in future updates, give a kinda badge to the highest 3 refferals e.g 1st,2nd,3rd

just a thought. :)

mikepmm
12-18-2005, 02:04 PM
Very nice - and easy mod :-) - thank you :-)

I would like to see more sort options in the "referrers.php"

For example:
sort by date, posts , user group , my referrers... for referrers competitions

greetings from germany

mikepmm

akanevsky
12-18-2005, 02:23 PM
That might happen but please stop posting URLs in your posts thx.

mikepmm
12-18-2005, 04:01 PM
That might happen but please stop posting URLs in your posts thx.

remove the url and send you 5 US$ thanks :-)

shortbus1662
01-03-2006, 06:22 PM
I'd like to suggest an add on that keeps track of stats by day/week/month/etc.
so that I can use this to have referral contests. For instance, I might give away a prize for the most referrals each week in the month of February and also I might give a prize to the user with the most total referrals for the month.

Great hack, thanks.

Snake
01-04-2006, 06:23 PM
Uh it doesn't work for me. I just get a blank page even the pharses are not functioning properly. O.o

http://www.metalgearforums.com/referrers.php

akanevsky
01-04-2006, 06:44 PM
Maybe there are no referrers? If there are, it may be conflicting with some other hack.

Snake
01-04-2006, 06:55 PM
Oh I got Michelle's version installed already but since I made a fresh install of my forums, I believe it's gone now. So what could cause the problem yet?

msimplay
02-12-2006, 09:37 AM
I have idea for this hack .
On the profile it shows the amount of people the person has referred it would be nice to give this information a link to a popup of who they have referred and then in turn a link in the popup to the full refferer stats and their position on the refferer table.

What do you think ?

kofoid
03-01-2006, 01:29 AM
This is going to be a DUMB question - where do I administer this darn thing?

kofoid
03-01-2006, 12:33 PM
OK let me clarify my last post - I have gone thru the entire admin CP and there is nothing in there to change settings for this hack. Any help would be appreciated

akanevsky
03-01-2006, 05:44 PM
vBulletin Options ->> Referer Statistics

kofoid
03-01-2006, 07:17 PM
it's not there - The invites system is showing up but not the referrer statistics. Anything I can tweak to get it to work? The URL works fine, I just can't configure it

akanevsky
03-01-2006, 07:27 PM
You need to install the product xml as per instructions.

kofoid
03-01-2006, 07:38 PM
I did, man. I did everything you instructed. Are there known hacks that conflict with this one?? want me to PM you info and you can look? any help is appreciated

kofoid
03-01-2006, 07:47 PM
Plus it's not like it's a difficult install! :) Is there some code I can look at - just point me in the right direction

kofoid
03-02-2006, 12:32 PM
so no assistance, eh?

Boofo
05-02-2006, 06:49 PM
Are the referred users listed alphabetically for easy finding of someone's name? And is there an option to lists referrers the name alphabetically, again to make finding someone easer?

akanevsky
05-02-2006, 08:05 PM
I believe they are :) No, there is no option because they are sorted by default.

Boofo
05-02-2006, 08:07 PM
Can it be added, sir?

akanevsky
05-02-2006, 08:28 PM
How could you even think that a complicated feature like that could be added? :) j/k.

If it is already sorted by username by default, then what would be the purpose of the option?

carnid
06-27-2006, 07:41 PM
OK let me clarify my last post - I have gone thru the entire admin CP and there is nothing in there to change settings for this hack. Any help would be appreciated

I have the very same problem - did you manage to fix this?

akanevsky
06-27-2006, 07:54 PM
There is nothing to fix. The settings are in vBulletin options.

ubblite
06-28-2006, 12:43 AM
Just a FYI - this hack is working great for me with vb3.6 beta3. :)

akanevsky
06-28-2006, 12:56 AM
Thanks for the info.

ubblite
06-28-2006, 01:00 AM
There is nothing to fix. The settings are in vBulletin options.
I'm having the same problem as other users; there is no option to configure this hack as you mentioned earlier in this thread:
vBulletin Options ->> Referer Statistics

akanevsky
06-28-2006, 09:48 PM
Perhaps there is nothing to configure then? :)

Titania
07-05-2006, 12:07 PM
Is there a way to only include certain usergroups and exclude others in the statistics? Michelle's mod does this but it doesn't work on my forum. Yours works but I need the above function.

Lee
07-06-2006, 11:24 AM
Will you share the way to show the referred users' post count next to their username on the referrer.php page (as seen here http://www.wiizer.com/forum/referrers.php? Thanks!

Sha Platinum?
07-27-2006, 04:07 AM
Thanks!

nicolerork
07-27-2006, 12:06 PM
I'm confused as to where I'm supposed to upload the "referrers.php" file, can someone help me out?

nicolerork@gmail.com

akanevsky
07-31-2006, 06:31 PM
You upload it to where you have vBulletin installed.

da420
08-05-2006, 04:15 AM
Any word to if this is working with 3.6? If not, heck, I'll give'er a go.

akanevsky
08-05-2006, 12:56 PM
It should work fine.

Coach_Guru
08-29-2006, 06:51 PM
Good work

da420
08-29-2006, 10:17 PM
It should work fine.

Yup, works fine here on 3.6 gold. :)

Thanks Psionic Vision.

mrahul
08-30-2006, 08:34 AM
Is it possible to show the referrals only to the registered users & not to the unlogged in/banned users & is there a way to show the referrals only for the registered usergroup excluding the banned & deleted members group ?

Ohiosweetheart
09-16-2006, 01:21 PM
Is there a way to wipe clean the referral stats as of now, so that one can have a contest?

akanevsky
09-16-2006, 01:37 PM
No, it is not possible without altering the database of users and voiding the referrer information.

Ohiosweetheart
09-16-2006, 01:40 PM
well rats. thanks anyway

rezapci
09-18-2006, 12:13 AM
we need the updated oneeee, the VB version is 3.6.1 mannnn

JenniferK
09-23-2006, 05:28 AM
This is not working for me - I get this error message:

Warning: Invalid argument supplied for foreach() in /referrers.php on line 97

Warning: Invalid argument supplied for foreach() in /referrers.php on line 111

Warning: Invalid argument supplied for foreach() in /referrers.php on line 118

Any idea what I could do to fix it?

triphp
09-25-2006, 05:07 AM
Is there a way to group the referrals by UserGroup and count the total number in each group?

For example, I have three UserGroup in my forum (newbie, junior, senior).

REFERRERS----------------------------REFERRED USERS
User 1--------------------------------Newbie - 3 (auser, buser, cuser )
--------------------------------------Junior - 1 (x_user)
--------------------------------------Senior - 0

User 2--------------------------------Newbie - 0
--------------------------------------Junior - 1 (xxx_user)

etc....

Is this possible?

Can this be also integrated in the User CP? I want that in my User CP, I can see ONLY my referrals :)

VBUsers
09-25-2006, 09:19 PM
if i want to reset everyones referals how do i do that?

gamelandz
09-27-2006, 02:51 PM
I am so confused....

Everything is working well, but i can't adjust it to only show referrers for a specific month?????

StEaLtH666
09-30-2006, 10:21 PM
could you add some kind of mods, so that in userpfofiles it will list who invited them, and who they have invited?

would be handy and apreciated if possible?

akanevsky
10-01-2006, 11:11 AM
if i want to reset everyones referals how do i do that?

You can't without resetting the actual referrer connections in your database.

Everything is working well, but i can't adjust it to only show referrers for a specific month?????

Where in the description of the hack does it say that it can do that?

could you add some kind of mods, so that in userpfofiles it will list who invited them, and who they have invited?

would be handy and apreciated if possible?

Yes, I might. As for "Who the person was referrered by", see my "referrer in memberinfo" hack.

VBUsers
10-02-2006, 01:38 AM
You can't without resetting the actual referrer connections in your database.


thats fine i want to make em all 0 for now. i have a contest going on and i want them all at 0.

akanevsky
10-02-2006, 11:09 AM
Ok... Run this query at your own risk:
UPDATE user SET referrerid = 0

Murdoch
10-05-2006, 12:00 PM
I installed it on v3.6.0 just fine, but when I view the page, people who have no referrer are not shown in one row but in multiple rows for some reason, See for yourself here: http://www.habbohut.com/board/referrers.php?

Is there anyway to fix this? :)

akanevsky
10-05-2006, 08:04 PM
I installed it on v3.6.0 just fine, but when I view the page, people who have no referrer are not shown in one row but in multiple rows for some reason, See for yourself here: http://www.habbohut.com/board/referrers.php?

Is there anyway to fix this? :)

That's not a no referrer, it is a referrer that is a deleted user. That is why they are separate.... And there is no way to fix this.

farooqaaa
10-20-2006, 04:13 AM
Nice, will it work for 3.6.1 vb version?

akanevsky
10-20-2006, 06:17 PM
It should.

da420
10-20-2006, 06:21 PM
It does work on mine. ;)

DaNIEL MeNTED
12-28-2006, 10:13 PM
Oddly I see less "referrers" in the ACP user properties than in the referrer stats. I'm also using the invite system.

akanevsky
12-28-2006, 10:42 PM
Oddly I see less "referrers" in the ACP user properties than in the referrer stats. I'm also using the invite system.

In standard vBulletin package, there is no such thing as "referrers" in the ACP.

DaNIEL MeNTED
12-31-2006, 03:33 AM
In standard vBulletin package, there is no such thing as "referrers" in the ACP.

Sorry... I mean under ACP>USERS>Referrals

Any idea why the numbers don't match?

akanevsky
12-31-2006, 12:16 PM
They match on my installation. This hack covers refferers from the beginning - make sure to set appropriate dates for admincp referrrers.

FireFish
01-30-2007, 02:39 PM
Yet another nice one from Psionic Vision.

If vbulletin.org had a 'Favorite Coder' poll, he'd be my vote.
So far, no bugs or chained issues with his mods (knock on wood).

akanevsky
01-30-2007, 06:22 PM
Yet another nice one from Psionic Vision.

If vbulletin.org had a 'Favorite Coder' poll, he'd be my vote.
So far, no bugs or chained issues with his mods (knock on wood).

Thanks for that. :)

Hornstar
05-31-2007, 06:13 AM
Would be cool, if this could also do a weekly (cron job set) save. basically save the data, so i can bring up a certain period of time, and see how much they have referred from one period of time to another.

i want to hold an event on my site, and this feature would be a killer.

thanks.

Drix
07-24-2007, 01:49 AM
Yes, this works great on my forum. Thanks a lot!

induslady
08-31-2007, 01:16 PM
Hello,

I like this mod showing referrer details.

Want to know if this words on vB version 3.6.3 onwards?
ALso, can any member run to find out their referrer statistics? Will they be able to see the referrals made by other members?

Please let me know.

Hornstar
11-07-2008, 08:37 PM
Would love for this mod to be picked up again and made for when vb 3.8 goes gold, there are quite a few good suggestions already listed above that will make this mod very useful for a forum. I would even pay to have some of those features listed.

Battle_Ring
12-02-2008, 12:13 AM
dont work on 3.7

SVTCobraLTD
06-22-2009, 03:57 PM
Installed on 3.6.11 and working.

akanevsky
06-26-2009, 11:32 AM
This hack has been discontinued due to having been assimilated by psiStats 2009.