PDA

View Full Version : e-steki Referrer Statistics


Pages : [1] 2

Lea Verou
11-16-2005, 10:00 PM
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 (http://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
ConqsoftNotice: 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 (https://vborg.vbsupport.ru/attachment.php?attachmentid=39862&d=1135391668).

ConqSoft
11-17-2005, 12:46 PM
Very nice! Installed!

http://www.fireblades.org/forums/referrers.php

Found two problems though:
If you are using the File System for avatars, you get a broken link at the top left. Also, on the right, it looks like their needs to been 1 added to the colspan in the header.

Keep up the good work!

Lea Verou
11-17-2005, 12:52 PM
Very nice! Installed!

http://www.fireblades.org/forums/referrers.php

Found two problems though:
If you are using the File System for avatars, you get a broken link at the top left. Also, on the right, it looks like their needs to been 1 added to the colspan in the header.

Keep up the good work!

Thanks a lot Conqsoft! I had started to get disapointed cause there were no replies and this hack is the one I put most effort in than all my other hacks :o

I see no problem with the colspan. Maybe you are referring to the welcome panel? Cause guests can't see that... Maybe a test login would be useful :)

Also feel free to suggest any ideas that come to mind! :)

ConqSoft
11-17-2005, 12:54 PM
Yes, the Welcome Panel.

It had:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_reflink')"><img id="collapseimg_usercp_reflink" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reflink].gif" alt="" border="0" /></a> <phrase 1=$bbuserinfo[username] 2=$vboptions>{$vbphrase[refstats_welcome]}</phrase></td>
</tr>
</thead>
<tbody id="collapseobj_usercp_reflink" style="$vbcollapse[collapseobj_usercp_reflink]">
<tr>
<td [B]rowspan="2" class="alt2">
<img src="image.php?u=$bbuserinfo[userid]" border="0"></td>
<td class="alt1" align="center" colspan="7">$bbuserinfo[avatar] <b>$vbphrase[refstats_invite]</b> <br />
<a href="register.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]</a></td>
</tr>
</tbody>
</table>


Removing the bold parts seems to have corrected it.

ConqSoft
11-17-2005, 12:56 PM
And the above could have just been caused by the image not being displayed, since I use the file system for avatars. Any ideas on that part?

Lea Verou
11-17-2005, 12:59 PM
Oh, did I forget the rowspan there? :o
I was planning to add another line but I didn't and the rowspan remained there.
I'm going to fix it thanks :)

I'll see what I can do about the avatar. Any help from a coder is really appreciated on that part.

Do you also have usernames that should be formatted but aren't? I was trying to find what causes that the whole night but no luck... :(

ConqSoft
11-17-2005, 01:00 PM
Usernames seem to be formatted correctly from what I can tell.

trancetopia
11-17-2005, 01:27 PM
I've been waiting for this :D Thanks, going to install!!

Lea Verou
11-17-2005, 01:27 PM
Usernames seem to be formatted correctly from what I can tell.

shouldn't yours for example be red?

ConqSoft
11-17-2005, 01:29 PM
shouldn't yours for example be red?
Ah yes, I was only looking in the other column. :D

ConqSoft
11-17-2005, 01:31 PM
Also, I added this above the table:

<if condition="$pagenav">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td align="$stylevar[right]">$pagenav</td>
</tr>
</table>
</if>


And changed this at the bottom:

<br/>
$pagenav


To this:

<if condition="$pagenav">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="bottom">
<td align="$stylevar[right]">$pagenav</td>
</tr>
</table>
</if>


Just to keep it consistent with the rest of vBulletin. ;)

Lea Verou
11-17-2005, 01:33 PM
Ah yes I hadn't thought of adding it above the table as well :)
Thanks a lot.
I think I also found a solution for the avatar problem! :)

ConqSoft
11-17-2005, 01:35 PM
I decided to just pull the avatar out of the display anyway, so I'm all set.

Lea Verou
11-17-2005, 01:55 PM
Product updated:
-Applied Conqsoft's fixes
-Removed the avatar

To update just re-import the product XML

Lea Verou
11-17-2005, 02:06 PM
zip file updated. The problem with the formatted usernames in the referrer column is fixed! Hooray!!! :D
Just overwrite the php file :)

ConqSoft
11-17-2005, 02:08 PM
Yep, that fixed it on mine.

Thanks

ConqSoft
11-17-2005, 07:37 PM
Kinda related to this, has any seen a hack to allow users to edit the referral field via their User CP? A lot of my users were brought over from another system, so they weren't able to give credit to the person that referred them.

Lea Verou
11-17-2005, 07:41 PM
I don't think there exists one cause only those like us who have switched from another forum system need it and I don't think that's the majority :(

Snake
11-17-2005, 08:54 PM
Thank you very much! :D

G-Force 199
11-18-2005, 01:08 PM
Thanks much.
Clicked Install

Lea Verou
11-18-2005, 01:11 PM
Thanks much.
Clicked Install

Thank you! :)

Btw I don't see any bugs reported... Is that because there aren't any ore because you don't post them? Please, all of you, post any bugs here so that it eventually gets out of beta ;)
Thanks a lot :)

Annie^.^
11-18-2005, 02:21 PM
GreaT Job!!!!! Now for addon someone could make a stat for top refferal in a 30 days , 7day, 24 hour and over all that way we could have a contest.

ConqSoft
11-18-2005, 02:23 PM
It has a setting already that may help you with that:


Date cutoff
This is useful for referral contests. Any referrers or referrals that joined before this date will be excluded from the Statistics. The date must be entered in format DD-MM-YYYY. If you set it to 0 it will display all results.

Lea Verou
11-18-2005, 02:53 PM
Exactly what Conqsoft is saying ;)
If you want I could make the setting to accept hour as well and not only date. It's very easy, I just thought it is pointless and this is why I didn't incorporate it. :)

TygerTyger
11-18-2005, 04:28 PM
I gave it a try, works perfectly. Great stuff, thanks, not a man :D

But since I always try to offer a suggestion when using someone's mods, perhaps when you're changing permissions for the mod in the AdminCP, usergroups should be separated with a comma (,) not a space in keeping with how it's done elsewhere in vBulletin.

Snake
11-18-2005, 05:27 PM
Yep it's working all good. Looks like there aren't any bugs to report so far. ;)

nestoras
11-18-2005, 05:38 PM
Nice hack Michelle!thanks!i click install!!

Ελλαδαρα ρε!!!!

Lea Verou
11-18-2005, 05:50 PM
I gave it a try, works perfectly. Great stuff, thanks, not a man :D

But since I always try to offer a suggestion when using someone's mods, perhaps when you're changing permissions for the mod in the AdminCP, usergroups should be separated with a comma (,) not a space in keeping with how it's done elsewhere in vBulletin.

I thought that but it would require much more code for no reason cause you don't know if a user leaves a space or not after the comma. So I'd have to make my code check whether or not there is a space and then put the userids in the array. So much more code for no actual reason as the functionality will be the same :)

nestoras χεχε, φχαριστώ :D Ελλαδάρα, ελλαδάρα αλλά μόνο εγώ κι άλλος ένας έλληνας, φτιάχνουμε hacks εδώ. Οι περισσότεροι έλληνες είναι εγωιστές και τα κρατάνε για τον εαυτό τους :( :mad:

Guys when do you think that I should get it out of beta if no other bugs are found?

TygerTyger
11-18-2005, 05:58 PM
I only mentioned it because it's very easy to do, stripping whitespace is a common form function.

http://uk2.php.net/trim

I just think consistency is helpful *shrug*

Seems a popular mod already by the way :D

nestoras
11-18-2005, 06:01 PM
im getting this:
Warning: Invalid argument supplied for foreach() in /referrers.php on line 93

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

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

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

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

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

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

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 162

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



what i did wrong??????

Snake
11-18-2005, 06:09 PM
Well I suppose you can do it right now as the mod is working just fine. ;)

Lea Verou
11-18-2005, 06:39 PM
im getting this:



what i did wrong??????

nestoras: Do you have any referrers to be displayed? Can you give me a link of where you have it?

Tygertyger: Hmmm I could possibly trim the whitespace and use as a separator the commas to store the values in the array! I knew the function trim but I just thought of that! I could also use str_replace for that... Thanks for the idea :D It will be included in the next version.
Popular mod already?? It only has 19 installs :(

Aftermath, then probably the next version will be Gold of no errors are found till then :)

nestoras
11-18-2005, 06:54 PM
ok!i get it!

zappsan
11-19-2005, 12:18 AM
Lovely hack.
Thanks a lot^^

/me clicks install

gspot
11-19-2005, 03:41 AM
This Hack Was Already Created... Michelle Changed Some Of The Layouts And Coding Then Turn Around And Called It Hers... But Cant Give Credit...

Good Job U Sooo Called Coder.... I Hate People Like You.... Stay In Greece....

ConqSoft
11-19-2005, 03:43 AM
This hack looks NOTHING like the one you did.

Lea Verou
11-19-2005, 08:15 AM
gspot, this hack is completely different. If you can't determine if a code is or is not similar to yours then that's not my problem.
I got my idea from ExtProof's thread in Modification Requests some months ago, and when I learned php I made it. Simple as that. Do you really think your idea was soooo unique that it is not possible that someone else made the same thing without being aware of your hack? ;)

Btw how is "Stay In Greece...." an insult? :p

Oh and about the title "Coder" that I have: I never said that I'm a php expert. I have been learning php for only some days (or weeks) and I have to struggle most of the times to make something that an advanced coder would make in minutes. And because of this I am so certain that my code has nothing to do with yours, even before I looked at yours. Cause my code does not "comply to standards" as I don't know how to make it to do so. My code is not super-optimized cause I can't make it super-optimized. In fact my code is quite messy -as I said before- but, it works and that's enough for me to publish it :) . But if the vb.org admins have decided that someone like me should have a Coder title, well, I won't deny it :)

PS: Look at my other hacks. I always give credit when I have to. But I will NEVER give credit when I don't have to. Being a spoiled brat is not a reason to receive credits.

Lea Verou
11-19-2005, 09:18 AM
Hack out of beta.
Added Tygertyger's suggestion and the usergroupids are now separated by commas. :)
To upgrade overwrite the product XML and the php file. :)

RMS-Chef
11-21-2005, 11:12 PM
The date cutoff does not seem to be working right for me.

I am running a contest and you can see the referrer numbers generated from the ACP and the numbers with the same cutoff displaying nothing like it. See attached. I entered the format correctly and stuff. I am running v3.5.1 on a Linux box.

Any ideas?

Lea Verou
11-21-2005, 11:31 PM
That's really strange...
Do you have any other hacks installed? Especially any that have to do with referrals?

PS: Wow, you must have a really active community!! So many referrals in just one week! Wow!!

akanevsky
11-21-2005, 11:50 PM
Nice hack :)
Concerning vbstats, on the second thought, they have it too bloated. This, and the activity / browser stats are probably the only things that I was using on vB2. So for now, this is more than enough. :) Do I get your permission to make add-ons for this hack on separate pages, so that in the end, something like vbstats would be made? Thanks :)

Lea Verou
11-21-2005, 11:53 PM
Nice hack :)
Concerning vbstats, on the second thought, they have it too bloated. This, and the activity / browser stats are probably the only things that I was using on vB2. So for now, this is more than enough. :) Do I get your permission to make add-ons for this hack on separate pages, so that in the end, something like vbstats would be made? Thanks :)

Thank you PV. :)
I am very happy that you have such an opinion :)

PS: I wanted to make smilie usage stats as well but the queries would be very server intensive if I use the LIKE thing in the query which is the only one I know that doesn't alter the db... Any ideas on that? :(

edit: Of course you have my permission! I'm flattered that you want to do that :D

akanevsky
11-22-2005, 12:00 AM
PS: I wanted to make smilie usage stats as well but the queries would be very server intensive if I use the LIKE thing in the query which is the only one I know that doesn't alter the db... Any ideas on that?

Nope, sorry.

Of course you have my permission!

Thanks :)

RMS-Chef
11-22-2005, 12:59 AM
That's really strange...
Do you have any other hacks installed? Especially any that have to do with referrals?

PS: Wow, you must have a really active community!! So many referrals in just one week! Wow!!

I dont think anything to do with referrals. If I leave the date field blank it seems to show all just fine.

All add-ons are plugin/products and other than I think 1 little global.php file edit for vBadvancedCMPS the core files are untouched.

Products:

Your referrer Statistics
Several of Abe1's Forms
Inferno Warning System
Extra ipInfo
Link Anonymizer
Mass PM Members
Post Thank You
Shoutcast Full
Stike Through Closed threads


Plugins without products:

Members Who Have Visited Today
Members in FlashChat
MicroStats
Miserable Users
Little plugin to group some templates


It's a Linux server running FedoraCore 3. I tried reversing the MM-DD and got errors.

PS, 5,000+ registered in less than 3 months ;)

Lea Verou
11-22-2005, 01:04 AM
What if you put other dates? It is problematic there too?

Does anyone else have this problem?

ConqSoft
11-23-2005, 02:55 AM
I have a suggestion:

Sort by number of referrals (as it does now) then sort by username as a secondary sort. Makes it easier to find a name when a lot of people have the same number of referrals.

Lea Verou
11-23-2005, 03:37 AM
I have a suggestion:

Sort by number of referrals (as it does now) then sort by username as a secondary sort. Makes it easier to find a name when a lot of people have the same number of referrals.

Nice idea :)
I'll probably include it when i have some time (I'm very busy these days). :)

lazytown
11-23-2005, 04:50 AM
Would it be possible to have after each username referred, the number of posts they have made (like in parenthesis)? That way we can see at a glance if the referred users are deadbeats or real active users.

-vissa

Lea Verou
11-23-2005, 11:24 AM
Would it be possible to have after each username referred, the number of posts they have made (like in parenthesis)? That way we can see at a glance if the referred users are deadbeats or real active users.

-vissa

Sure, that's not hard. :)
But if I recall correctly it would need an extra query, and that query would be quite intensive as it goes through the whole post table.

dsmoke
11-25-2005, 09:07 PM
what was the answer to solving this?
Warning: Invalid argument supplied for foreach() in /referrers.php on line 94

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

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

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

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

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

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

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 164

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

Lea Verou
11-25-2005, 10:06 PM
Τhe most possible answer is that you don't have any results to be displayed :)

dsmoke
11-25-2005, 11:41 PM
ahh but anyone who would go to get their link we see that right away?

Lea Verou
11-25-2005, 11:43 PM
ahh but anyone who would go to get their link we see that right away?

Well this is mostly for referral statistics. There is no use having it just to display each user his referral link :) You can use vb Referrer for that which is more effective :)
(you can find it in template modifications)

dsmoke
11-26-2005, 12:37 AM
well basically i'm looking to run a refferal contest users get their referral link, and can then see who gets the most people to sign up at the forum.. would even like it to require one post to help weed out spamming accounts...

is this the right mod for me?

want to run contests basically

Lea Verou
11-26-2005, 12:41 AM
well basically i'm looking to run a refferal contest users get their referral link, and can then see who gets the most people to sign up at the forum.. would even like it to require one post to help weed out spamming accounts...

is this the right mod for me?

want to run contests basically

This is the right mod about displaying the contest results. :)
About the first post limit it will not help :) You can however put users with less than 1 post in a specific usergroup (by using another mod that is availiable here) and then limit this usergroup from the statistics ;)
But it should have to display at least one result otherwise you'll get the warnings you posted above... I should fix that in the next version but I don't have much time for coding these days... :(

dsmoke
11-26-2005, 12:49 AM
i hear ya... ok thanks! i'll just try and fudge it and grab my referer link and sign one up or somehting

Lea Verou
11-26-2005, 12:53 AM
i hear ya... ok thanks! i'll just try and fudge it and grab my referer link and sign one up or somehting

You can also tell him/her to add you in the referrer editbox during registration. That's what I usually do, I've never used my referral link (could that be why I have only 9 referrals out of 683 members? :p :p)

lazytown
11-26-2005, 09:52 AM
Would it really be that bad? I mean when you look at the member list it shows you how many posts each user has. Isn't the number of posts each user has already stored in the database? I don't see the need to go throught the whole post table.

-vissa

Sure, that's not hard. :)
But if I recall correctly it would need an extra query, and that query would be quite intensive as it goes through the whole post table.

Lea Verou
11-26-2005, 03:02 PM
Would it really be that bad? I mean when you look at the member list it shows you how many posts each user has. Isn't the number of posts each user has already stored in the database? I don't see the need to go throught the whole post table.

-vissa

I don't think so. AFAIK the post count is calculated at that time with a count query from the post table. I am not very sure however what is supposed to be an intensive query and what not. Maybe I should open a thread about that :p

lazytown
11-27-2005, 09:58 AM
But if it was really counting them, then why can you change a user's post count in the admin panel? Even if they really only have 1 post, you can set them to 15,000 posts.. then in the member list it shows 15,000. That indicates to me it's simply a stored value and not calculated on the fly.

-vissa

I don't think so. AFAIK the post count is calculated at that time with a count query from the post table. I am not very sure however what is supposed to be an intensive query and what not. Maybe I should open a thread about that :p

Lea Verou
11-27-2005, 12:49 PM
But if it was really counting them, then why can you change a user's post count in the admin panel? Even if they really only have 1 post, you can set them to 15,000 posts.. then in the member list it shows 15,000. That indicates to me it's simply a stored value and not calculated on the fly.

-vissa

Hmmm you are correct! :) I haven't thought of that! :)
So, the feature will be put in it if that's the case, I promise :).
Note however that as I'm quite busy these days, I can't give a timeframe :o

Boofo
11-27-2005, 08:07 PM
Is there a way to list the names alphabetically instead of by userid?

Lea Verou
11-27-2005, 10:01 PM
Is there a way to list the names alphabetically instead of by userid?

They aren't listed by userid but by the number of referrals. ;)

Boofo
11-27-2005, 11:40 PM
They aren't listed by userid but by the number of referrals. ;)

I meant the referral names. ;)

akanevsky
11-28-2005, 01:17 AM
heheheh... That was featured in my version of the script, but for some reason that wasn't accepted :) I'm sure that's possible in this version too though.

croportal
11-28-2005, 06:39 PM
<a href="http://www.croportal.net/forum/online.php?&order=desc&sort=username&pp=50&page=1" target="_blank">http://www.croportal.net/forum/onlin...e&pp=50&page=1</a>

i dont see refererrs link

lazytown
11-28-2005, 08:04 PM
I'm looking forward to it. Thanks!

-vissa

Hmmm you are correct! :) I haven't thought of that! :)
So, the feature will be put in it if that's the case, I promise :).
Note however that as I'm quite busy these days, I can't give a timeframe :o

croportal
11-28-2005, 08:06 PM
http://www.croportal.net/forum/online.php?&order=desc&sort=username&pp=50&page=1

i dont see refererrs link


can anony help me

link forum/referrs.php work but work only there nothin else

Lea Verou
11-28-2005, 09:30 PM
can anony help me

link forum/referrs.php work but work only there nothin else

Ermmm I didn't understand your question...
What does my hack have to do with Who's online? :confused:

croportal
11-28-2005, 09:35 PM
where can i find this https://vborg.vbsupport.ru/attachment.php?attachmentid=37769

for referrs link only i know and my users doesnt know.

Lea Verou
11-28-2005, 10:05 PM
where can i find this https://vborg.vbsupport.ru/attachment.php?attachmentid=37769

for referrs link only i know and my users doesnt know.

You can find the phrase and change it to something more... misleading ;)

croportal
11-28-2005, 10:07 PM
but where can i see that screenshot on my site, where can i see

Boofo
11-28-2005, 10:31 PM
I meant the referral names. ;)

Michelle, any word on this yet? ;)

Lea Verou
11-28-2005, 10:37 PM
Michelle, any word on this yet? ;)

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 :o
It will be included in the next version. :)

Lea Verou
11-28-2005, 10:39 PM
but where can i see that screenshot on my site, where can i see

You don't need to see it to change it, but if you want so badly to see it you can load the statistics page and then load the who is online and see what it says for your username :)

Boofo
11-28-2005, 10:42 PM
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 :o
It will be included in the next version. :)

Any idea when the next version might be? ;)

Lea Verou
11-28-2005, 10:48 PM
Hack updated :)

The next version? No idea :o It could be in 2 days, it could be in 2 weeks... It depends on when I have time && feel like coding :o

Boofo
11-29-2005, 02:08 AM
Hack updated :)

The next version? No idea :o It could be in 2 days, it could be in 2 weeks... It depends on when I have time && feel like coding :o

No problem. I'll just get my old referrers hack out and dust that one off for now. ;)

Lea Verou
11-29-2005, 02:10 AM
No problem. I'll just get my old referrers hack out and dust that one off for now. ;)

:( :( :(
That was mean! :( :(

:p

Boofo
11-29-2005, 04:36 AM
:( :( :(
That was mean! :( :(

:p

Wasn't meant to be. :(

Snake
11-29-2005, 12:08 PM
Nice little update there! ;)

akanevsky
11-30-2005, 11:42 AM
https://vborg.vbsupport.ru/showpost.php?p=836629&postcount=124 ;)
If you wanna make a backwards connection, PM me and I'll tell you how to detect whether my hack is installed, and then if it is installed, have you link change to refer to that hack :)

Lea Verou
11-30-2005, 11:48 AM
Can you explain a bit more what you mean? My english is preventing me from understanding your post :o

akanevsky
11-30-2005, 12:00 PM
No problem. I'll just get my old referrers hack out and dust that one off for now.

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 :)

:( :( :(
That was mean! :( :(

:p

Hey, "2 weeks or maybe 2 months or maybe 2 years" ain't cool, you know it. :) Once you made a hack gotta keep it up to date until it's at least bug free. :sleep:

Can you explain a bit more what you mean? My english is preventing me from understanding your post

I said that in my post, I referred to your hack because it is on the same topic as mine. My hack - Invite Hack - is for issuing new referrals (invitations) on a higher level, yours is for listing the referrer stats. So you maybe could have your hack detect mine and change the link that says "Click here to blah blah blah" if it is detected.

Lea Verou
11-30-2005, 12:02 PM
It is bug free by now I think. Boofo was referring to a new feature not a bugfix :)

akanevsky
11-30-2005, 12:05 PM
What he is referring to can be considered a bug. :sleep:

Lea Verou
11-30-2005, 12:07 PM
What he is referring to can be considered a bug. :sleep:

Oh you think so? I hadn't thought of it this way... But I've seen many hacks that don't offer alternative ways of sorting so wouldn't it be a feature? Dunno :confused:

akanevsky
11-30-2005, 12:13 PM
Oh you think so?

Of course. Like, if you make a book, and have some pages mixed up either by accident or on purpose, then it can be considered a bug in that book. IMHO :D

Lea Verou
11-30-2005, 12:16 PM
Then I sloud probably rush a bit more with it I guess :)
Btw you didn't explain what you meant before!

Lea Verou
11-30-2005, 12:19 PM
I said that in my post, I referred to your hack because it is on the same topic as mine. My hack - Invite Hack - is for issuing new referrals (invitations) on a higher level, yours is for listing the referrer stats. So you maybe could have your hack detect mine and change the link that says "Click here to blah blah blah" if it is detected.

Oh, I just saw that! It sounds nice! :)

Boofo
11-30-2005, 12:25 PM
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.

akanevsky
11-30-2005, 12:53 PM
Then I sloud probably rush a bit more with it I guess
Yes, you should :)

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:

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:


<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.

Boofo
11-30-2005, 01:35 PM
If she adds that, are we going to have to have both hacks installed then?

akanevsky
11-30-2005, 01:36 PM
Nope. It simply detects whether my hack is installed and adjusts the template link+text accordingly. Both hacks remain independent from each other.:)

lazytown
11-30-2005, 09:50 PM
Thank you!! Awesome mod!

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



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 :o
It will be included in the next version. :)

Lea Verou
11-30-2005, 09:55 PM
Thank you!! Awesome mod!

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 :)

akanevsky
11-30-2005, 10:03 PM
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? :)

I will release the modification separately.

Lea Verou
11-30-2005, 10:10 PM
It's not the only reason, I just feel that way is the most suitable one :)

Moya
11-30-2005, 11:14 PM
Thanks man

akanevsky
12-01-2005, 12:39 AM
It's not the only reason, I just feel that way is the most suitable one :)

kk..

Annie^.^
12-01-2005, 03:10 PM
It has a setting already that may help you with that:


Thank you for your reply to my post and sorry for the long reply back to yours....

I didn't noticed that it was there. Ok today I tried it and I set it to 01-12-2005 and if there is no refferal then I get this error on the top of the page.

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

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 162

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


I will try to update it to the latest version and see if it fix the problem.

Lea Verou
12-01-2005, 03:15 PM
Annie (hopefully) that bug is fixed in the last version :)

Annie^.^
12-01-2005, 03:18 PM
Annie (hopefully) that bug is fixed in the last version :)


I just installed the newer version and the error doesn't show up anymore. Thank you so much for this hack!!! You have been wonderfull support and a great coder.

Lea Verou
12-01-2005, 03:19 PM
I just installed the newer version and the error doesn't show up anymore. Thank you so much for this hack!!! You have been wonderfull support and a great coder.

Thank you so much Annie!!! :D

Annie^.^
12-02-2005, 07:39 PM
Hi Me again. I know is not your responsibility but you might could help. I thought I give it a try.
I installed an invitation addon to your addon.
https://vborg.vbsupport.ru/showthread.php?t=101801
I get this error if noone has been reffered.

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

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 173

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


This is my site http://www.bikerstalkonline.com/forum/referrers.php

Lea Verou
12-02-2005, 07:48 PM
I merely had noticed the addon listed here, lol.

Psionic Vision will help you better with that since I have never looked at his code. :nervous:

Perhaps adding a @ before each function will supress error messages, although I've never tried this myself, I have only read it in a book :)

akanevsky
12-02-2005, 07:51 PM
Uh.. Michelle, I believe that it a problem with your hack.
You need to check whether your referrer array is empty before you do a foreach(). Otherwise PHP will complain that you are working on a non-array.

I installed an invitation addon to your addon.
It is not an "addon for addon". It's a separate hack. It's not listed anymore, I removed it.

Lea Verou
12-02-2005, 07:55 PM
Psionic Vision that bug with my hack was fixed at the new version, as Annie admitted above. :)

I have no clue of that addon system and I don't understand a thing you ever told me about it to be honest :nervous: :p

akanevsky
12-02-2005, 08:04 PM
As you can see, referrer.php still gives out errors. So there is a problem with your hack. I could just assure you that my hack doesn't affect yours in any way.

I have no clue of that addon system
When you edit your hack, there is field which says "addon for thread", where you can specify the ID of the original thread. Then your hack will be listed in that thread. It's kind of stupid, because sometimes two hacks are linked by theme, but they are not add-ons, and them being listed as "addons" is a misconception... I am going to post about it in site feedback, too.

Perhaps adding a @ before each function will supress error messages

Yes, althought it will, it is recommended that a software would have some kind of error prevention. :)

Lea Verou
12-02-2005, 08:10 PM
Yes but Annie said that after installing your hack the problem occured :)

Thanks about the addon thing and I agree with you for the "addon" misconception. :)

Dead End Society
12-02-2005, 08:14 PM
Installed...great hack!

BUT....

My referrers are not coming out the same, and the date is set to 0.....any ideas?

Annie^.^
12-02-2005, 09:22 PM
Yes, this error was fixed when I updated Michelle's hack but after I added the addon hack for the referral I got this error. So I'm not sure. I have a newly reffered person and it's not showing up unless I go back 30 days in the time setting.

akanevsky
12-02-2005, 10:31 PM
Ok I'll install this hack on my board and see whether there is a problem.

Annie^.^
12-02-2005, 11:19 PM
Thanks

Lea Verou
12-02-2005, 11:34 PM
Did the newly referred person show up before you installed Psionic Vision's hack?

Annie^.^
12-03-2005, 03:00 PM
I already had the addon installed by then....

Lea Verou
12-03-2005, 03:19 PM
Can you try to temporarily disable Psionic Vision's hack and see if it will show up?

akanevsky
12-03-2005, 03:19 PM
Nope, this hack works fine on my board together with the invites hack.

Lea Verou
12-03-2005, 03:19 PM
Darn :( :p

Annie^.^
12-03-2005, 09:59 PM
I will do that and see if it works or not

Annie^.^
12-03-2005, 10:03 PM
turned off and the error is still there

akanevsky
12-03-2005, 10:10 PM
Michelle,
do you mind if I release my version of the hack? (based on the code of mine that you rejected). There is nothing wrong with this hack though, I just don't like the fact that there are extra queries :P

Snake
12-04-2005, 11:48 AM
Michelle,
do you mind if I release my version of the hack? (based on the code of mine that you rejected). There is nothing wrong with this hack though, I just don't like the fact that there are extra queries :P

Hey that would be great. I'll be waiting for it. :D

Annie^.^
12-04-2005, 12:35 PM
Hi Michelle

Uninstalled the the addon I had by Psionic Vision.

I found the problem. It didn't appear after I updated your script because I had no new refferal. The problem is with the Dates;

When the date set to DD-MM-YYYY all refferal shows up, but as soon as I change it to 01-12-2005 all I get is error and the new refferals are not displayed.

Any idea?

Lea Verou
12-04-2005, 01:44 PM
Darn it seems that many have a problem with the dates. I'll try to find the problem later. :)

Psionic Vision my hack adds only 2 queries. Not much would be accomplished by making it one but do as you wish :)

Annie^.^
12-04-2005, 04:57 PM
Yes, that is what seems to be the problem

Annie^.^
12-05-2005, 10:24 PM
any luck michelle?

Lea Verou
12-06-2005, 09:39 AM
Nope, I can't find what's wrong :(

Snake
12-06-2005, 12:05 PM
Just keep on trying. ;)

Lea Verou
12-06-2005, 12:31 PM
Can you please tell me if it works at anyone?
Do you all have this problem?

evenmonkeys
12-06-2005, 05:33 PM
I have the same problem.

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

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 173

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

Lea Verou
12-07-2005, 03:15 AM
I have the same problem.

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

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 173

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

aYarub do you have the latest version?
If so, then it's because of the time limit combined with no results that you probably have...
I'll try to fix it but exuse me I have a trip today... :o

Dead End Society
12-07-2005, 11:43 PM
I uninstalled it because the referras were not the same, I'll be keeping an eye out on this thread though, this hack would be great.

RMS-Chef
12-08-2005, 04:53 AM
Can you please tell me if it works at anyone?
Do you all have this problem?

I still have the issue as stated in Post #39 of this thread.
I still keep this installed to show overall referrer stats but can't use it for my contests.
Would be nice if I could get the date range to work since the contests are going pretty darn well. The capture is from November 14th till today. And I prune unactivated accounts that are not confirmed via email after 7 days.

nexus851
12-08-2005, 06:10 AM
Yes, you should :)


Ok, here's what you gotta do.

Somewhere in your file after inclusion of global.php put this:

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:


<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.


Very curious,... what does this mod do with the referral hack????????


Another thing, for the next edition... i think modify it alittle to look like "myspace.com" instead of links of people you brought under you, can you have an option to display pics or avatars of them in your profile MEMBERINFO template. What do u guys think?

trancetopia
12-13-2005, 09:49 AM
Urgent - possible security hole?

Something about this extension is really concerning me. For the past couple of weeks, I have had a load of guests primarily from Japan and Russia constantly hitting referrers.php. Sometimes up to 10 sessions from the same location are persistantly viewing this page.

Can anyone explain what is going on? This is scaring me somewhat!!

Lea Verou
12-13-2005, 09:52 AM
I have no idea but I'm now going to view where my guests are from...
You scared me too...
Can anyone determine if there is a security hole or not cause I'm not experienced enough to do so? :o

Lea Verou
12-13-2005, 10:05 AM
I just saw that the percentages are very small (I had written them but the message timed out :()
Can you see where they come from? Perhaps somebody linked your site in a japanese/russian one? I think that's the most possible answer :confused:

trancetopia
12-13-2005, 10:22 AM
I'm in work at the moment and due to firewall restrictions I can't access my cpanel as i've blocked a few ip's from there. When I get home, i'll get the ip's and post them.

I know the Jap one was from a Jap ISP and one of the russian ip's is from a virtual host that had a site layout from template monster with leads me to being a little concerned.

Lea Verou
12-13-2005, 10:25 AM
You should definately check your referring pages to see who has linked you.
I don't have cPanel at my host so I don't know how it works or where you should look, but I hope you do and I'll wait till you have a look :)

trancetopia
12-13-2005, 10:46 AM
I'll have a good dig around the log files tonight as well to see what I can find. I've just had another one on:

WOL Info: irrv1195.uplogon.com

Lea Verou
12-13-2005, 10:51 AM
Argh :(
I had another idea, maybe they are some kind of bots and go there cause the link is on the first page? (quite lame theory, I know).

I guess I'll have to wait for the log files and the other statistics...

trancetopia
12-13-2005, 02:08 PM
I've not finished work yet but the following has been hammering referrals.php all day:

mail.couchwhite.com

What is even more surprising is if you go to www.couchwhite.com it is a firm of solicitors/lawyers????

Now I'm getting more confused by what is going on.

Lea Verou
12-13-2005, 06:13 PM
Then I don't think it will be something harmful... :)
Unless it's faking another IP address... Could that happen?
Urgh, I just wish I knew more about security issues :(

trancetopia
12-13-2005, 07:18 PM
I'll have a dig at the logs when I get chance. There's never enough time to do anything :)

I've blocked the two new offenders ip's from accessing the server and no probs at the moment.

I'm still curious to why people would be so interested in access this extension continuously!! There isn't anything they can get from it that they can't from the normal members list.

Not to worry, the ip blocking is working a treat and I don't want to remove this extension as I think it's great and my members like it.

When I get chance to view the logs i'll post the findings and maybe something show us what is going on :)

Thanks for the help Michelle.

Lea Verou
12-13-2005, 07:34 PM
Well there is something that they can't see on the memberlist (unless you hacked it): Who referred whom. Perhaps they are interested in that for some reason? :ermm:
However I think that the probable cause is a link to it in a site.
Btw how many of them did you have?

Thanks for the help Michelle.
I wish I had offered any help but I don't think I did :(:disappointed:

trancetopia
12-13-2005, 09:13 PM
I have 4 ips in total but what raised the alarm bells for me was a hosting site in Russia had about 10+ guest sessions all accessing the referrers.php page at the same time for hours.

The other was the Jap ISP, same thing there as if it was some sort of attack.

mikepmm
12-14-2005, 07:25 PM
Warnung: Invalid argument supplied for foreach() in /referrers.php (Zeile 163)

Warnung: arsort() expects parameter 1 to be array, null given in /referrers.php (Zeile 173)

Warnung: Invalid argument supplied for foreach() in /referrers.php (Zeile 174)

The last days the hack works fine but now i visit the referrers.php and see the
errors above

Please help !

greeting's from Germany

mikepmm

mikepmm
12-18-2005, 12:43 PM
no support ?
is there an other hack for 3.5x that do the same ?

mikepmm

mikepmm
12-18-2005, 12:54 PM
ok I found it :-)

https://vborg.vbsupport.ru/showthread.php?t=102452

vbulletin and photopost - http://www.aminotsweet.de

wolfyman
12-20-2005, 09:30 PM
Worked like a charm, thanks!

tommyxv
12-21-2005, 01:04 AM
I want to rename the referrers.php, is it that simple or do i have to change it else where too?

Lea Verou
12-21-2005, 10:23 AM
I want to rename the referrers.php, is it that simple or do i have to change it else where too?

Just rename it :)

GuaRRand
12-23-2005, 05:35 AM
Works great....
thnx

wolfyman
12-24-2005, 12:07 AM
Warning: Invalid argument supplied for foreach() in /referrers.php on line 159

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 169

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

It worked fine untill I tried to add a cutoff date of 22-12-2005. Any ideas?

Lea Verou
12-24-2005, 12:09 AM
Warning: Invalid argument supplied for foreach() in /referrers.php on line 159

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 169

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

It worked fine untill I tried to add a cutoff date of 22-12-2005. Any ideas?

Damn, I thought I had fixed that :(
It happens because there are no referrers/referrals to display :(

wolfyman
12-24-2005, 12:27 AM
Damn, I thought I had fixed that :(
It happens because there are no referrers/referrals to display :(


Ah, not so. I know for a fact there have been at least 8 referals that signed up via the correct link since yesterday, because they all show up on the referral list when I set the cutoff back to 0. I tried setting it back to the 21st in case the exact sign up date was affecting it, but that didn't work either.

It just wacks out when I add a date.

Lea Verou
12-24-2005, 12:29 AM
Ah, not so. I know for a fact there have been at least 8 referals that signed up via the correct link since yesterday, because they all show up on the referral list when I set the cutoff back to 0. I tried setting it back to the 21st in case the exact sign up date was affecting it, but that didn't work either.

It just wacks out when I add a date.

Damn, I'll have to fix that, I think others have it too...
And damn^2: I see that Psionic Vision is looking at the thread :( :p :p

Lea Verou
12-24-2005, 12:34 AM
Can you try this please and tell me if it works?

akanevsky
12-24-2005, 01:33 PM
And damn^2: I see that Psionic Vision is looking at the thread
Why would that be a "damn"? :p

wolfyman
12-24-2005, 04:59 PM
that worked, thanks!

Lea Verou
12-24-2005, 09:04 PM
LOL Psionic Vision, it'a a damn cause I thought you were going to yell at me :p
wolfyman, the bug wasn't actually a bug but a silly feature. The datecuttoff only displayed referrals AND REFERRERS that koined after that date. So the referrers needed to be new members too. How silly of mine now that I think of it, lol :o

yayvb
12-26-2005, 12:31 AM
This hack is great, but one thing that I didn't like was how my users were being sent to register.php before they had a chance to see the site. I know if I click on a link somewhere and end up on a registration page, I'm probably going to not register.

So what I did was in the product .xml file I found this code:
<a href="register.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]</a>

and I replaced it with this code:
<a href="index.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]</a>

then saved it, reimported the product (overwrite enabled).
Hope this helps, Merry Christmas.

akanevsky
12-26-2005, 01:09 AM
I know if I click on a link somewhere and end up on a registration page, I'm probably going to not register.

Not if "somewhere" is your friend's e-mail.

yayvb
12-26-2005, 04:11 AM
Not if "somewhere" is your friend's e-mail.
Yes if "somewhere" is my friend's email. I would first want to take a look at what the site was for before taking the time to "register" on another site.

Lea Verou
12-26-2005, 12:09 PM
This hack is great, but one thing that I didn't like was how my users were being sent to register.php before they had a chance to see the site. I know if I click on a link somewhere and end up on a registration page, I'm probably going to not register.

So what I did was in the product .xml file I found this code:
<a href="register.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/register.php?referrerid=$bbuserinfo[userid]</a>

and I replaced it with this code:
<a href="index.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]</a>

then saved it, reimported the product (overwrite enabled).
Hope this helps, Merry Christmas.

Does it work? I thought it wasn't going to work this way :o

wolfyman
12-26-2005, 12:44 PM
With the hack the way it is - if someone goes to the registration page, decides to look around, and THEN registers - does the referrer get credit?

yayvb
12-26-2005, 03:25 PM
Does it work? I thought it wasn't going to work this way :o

Yeah I tested it out already. You can browse the site and when you go to register the persons referral id is there.

yayvb
12-26-2005, 03:45 PM
With the hack the way it is - if someone goes to the registration page, decides to look around, and THEN registers - does the referrer get credit?

Yes either way it should work once the variable has been sent, or what I mean is once someone follows the link with the referral id you should be all set. I'm not a coder though so I'm not claiming to be right, lol, I believe I am though since I tested it out already.

tommyxv
01-04-2006, 07:12 PM
Can you try this please and tell me if it works?

Thanks, it's working great.

Question! Right now I only have one person with a referral from when i started the contest.

How does it choose the other member names with no referrals to be displayed on that page?

It also shows 23 members total, (1 with the 1 referral and 22 with 0 referrals) why 23? and can I change that?

Thanks,

Lea Verou
01-04-2006, 09:09 PM
Thanks, it's working great.

Question! Right now I only have one person with a referral from when i started the contest.

How does it choose the other member names with no referrals to be displayed on that page?

It also shows 23 members total, (1 with the 1 referral and 22 with 0 referrals) why 23? and can I change that?

Thanks,

Ahhh I should add a check... :(

Big_Ad
01-05-2006, 11:40 AM
Installed easy, works great, thanks!

I have a few questions:

Is there a way I can place up the welcome message a the top of every logged in members page so they can refer members etc like in the screenshot? (Or something similar)

Is there a way I can totally reset refereals so everybody has 0? For if I started a competition and I wanted everybody to start off fairly.

And lastly...

Is there a way I could add a link in the members control panel, where they go to enter their profile, before edit signature there could be (in bold) - Referrer Statistics linking to the referrer page?

Thanks!

Adam :)

Lea Verou
01-05-2006, 05:15 PM
Installed easy, works great, thanks!

I have a few questions:

Is there a way I can place up the welcome message a the top of every logged in members page so they can refer members etc like in the screenshot? (Or something similar)


Add it in the navbar template and it will show in every page with a navbar. You will need some basic HTML skills to do that but it shouldn't be very difficult. However if I was a member I would be quite annoyed by this, even if I kept it collapsed...


Is there a way I can totally reset refereals so everybody has 0? For if I started a competition and I wanted everybody to start off fairly.


Set a cut off date in the hack's settings. By default it will display only members (including the referrerrs!) who have registered after that date. If you want the cutoff to only affect only referrals then replace your referrers.php with the one posted in this thread by me. However there is a known bug with that which currently I don't have time to fix but I will try to fix it shortly: If a member has referrals but none of them after that date he will show with 0 referrals.


And lastly...

Is there a way I could add a link in the members control panel, where they go to enter their profile, before edit signature there could be (in bold) - Referrer Statistics linking to the referrer page?

Thanks!

Adam :)

Sure, just find the template USERCP_SHELL and add the appropriate line in the navigation :)

vip600
01-10-2006, 02:24 AM
Thanks for the great hack, BUT when I exclude any usergroup from (Excluded Usergroups Option) it also exclude it from referral count :(

I do not want to exclude any usergroup from referral count, But I need to exclude some banned users and some other groups from referrers list.

I also noticed that the referrers page take 5 to 10 second to (load) open !! it's because I have more than 200,000 registered members in my forum ? If yes, is there any way to make it open faster like if we say show only top 100 members with referrers? Or show members who have 5 referrers and more?

Last note, I have seen some users with zero referrals result !!! I think all users with zero referrals result should not be shown.

Thanks again :)

GetGamer.com
01-15-2006, 04:40 AM
Has anyone tested this mod with vBulletin 3.5.3? I've just installed it, and it appears to work properly, except that when I view referrers.php, I cannot move beyond page one!

Check it out: http://www.bigblueball.com/forums/referrers.php?page=3 (actually takes you to page one, and nothing you do will take you to another page. Any suggestions?

Antivirus
01-19-2006, 06:54 PM
Michelle, great hack!!! Works wonderfully on 3.5.3 and i have no problem viewing any of the multiple pages.

Lea Verou
01-19-2006, 06:56 PM
Michelle, great hack!!! Works wonderfully on 3.5.3 and i have no problem viewing any of the multiple pages.

Comments like this always make my day. :)

tony76
01-22-2006, 11:41 PM
GreaT Job!!!!! Now for addon someone could make a stat for top refferal in a 30 days , 7day, 24 hour and over all that way we could have a contest.

Installed as per instructed but 'Page cannot be found'.

PennylessZ28
01-23-2006, 03:08 AM
Good work, I like this, its very useful.

bada_bing
01-24-2006, 03:50 AM
Can someone post where they placed there link to the referral page and the code they used?

Thanks

CodeRed
01-29-2006, 03:02 PM
i love it!! works great for me!!!

bada_bing
02-14-2006, 02:32 PM
I have installed this hack as it sounds great but there is an issue that I found with the counts. If I set my date cutoff to 23-1-2006 it says I have 2 refferers but if I go to VB and do a search for Referrals from start date of 1-23-2006 to current I get like 12 referrers? Why are the counts off?

bada_bing
02-14-2006, 02:40 PM
I think this hack is grabbing the date correctly. I have tested both systems this hack versus the VB counts and they are off big time

vbuser99
02-14-2006, 03:43 PM
Installed, thanks

Lea Verou
02-14-2006, 04:06 PM
The count issue is because it was designed to cut the referrers too (which means it only shows referrers that registered AFTER the cut-off date). Search the thread, I have posted a fix to this issue for those that want it to work differently (differently=like the vb admincp ;))
Also, you have to enter the date in the european format, which is DAY-MONTH-YEAR

bada_bing
02-16-2006, 02:01 PM
The count issue is because it was designed to cut the referrers too (which means it only shows referrers that registered AFTER the cut-off date). Search the thread, I have posted a fix to this issue for those that want it to work differently (differently=like the vb admincp ;))
Also, you have to enter the date in the european format, which is DAY-MONTH-YEAR


I have searched this thread a couple time but cant find your fix. Basically I want the counts to look like the ADMINCP counts.

Currently your hack says
Date cutoff
This is useful for referral contests. Any referrers or referrals that joined before this date will be excluded from the Statistics. The date must be entered in format DD-MM-YYYY. If you set it to 0 it will display all results.

So if I enter 23-01-2006 for the cutoff date and I want it to show all referrers and refferals from 23-01-2006 to Current?

Annie^.^
02-16-2006, 02:39 PM
On mine that option doesn't work at all, it's a bug in the script ... haven't been fixed :(

Lea Verou
02-16-2006, 04:36 PM
<a href="https://vborg.vbsupport.ru/showthread.php?p=855855#post855855" target="_blank">https://vborg.vbsupport.ru/showt...855#post855855</a>

designBox
02-18-2006, 08:44 AM
Thanks for the great product.
Working like a charm.

INSTALL clicked.

kofoid
03-02-2006, 12:44 PM
Great Hack - Thanks so much!

Megareus Rex
03-05-2006, 09:31 PM
Is there a way to set the Referred Usernames column so it has the "smallfont" class? A few members have 20+ referrals, so displaying them with the smallfont class would be a lot easier to display.

akanevsky
03-05-2006, 09:38 PM
Is there a way to set the Referred Usernames column so it has the "smallfont" class? A few members have 20+ referrals, so displaying them with the smallfont class would be a lot easier to display.

There is no such feature in this hack but I believe you can set the column to smallfont by modifying the appropriate template.

Lea Verou
03-06-2006, 05:49 AM
You can change the refbit template to do that :)

Gastongr
03-14-2006, 01:15 AM
Looks like a great hack!.
Does it work for vB 3.0.1 ? :)
Thanks

Lea Verou
03-14-2006, 08:58 AM
Looks like a great hack!.
Does it work for vB 3.0.1 ? :)
Thanks
Of course not :confused:

almukmin
03-21-2006, 09:55 PM
Can you fix the error it shows when there's no referral referred?

Lea Verou
03-21-2006, 09:57 PM
Why would you want a referral statistics hack when there are no referrals to be displayed? :confused:

GetGamer.com
03-26-2006, 10:23 PM
Has anyone tested this mod with vBulletin 3.5.3? I've just installed it, and it appears to work properly, except that when I view referrers.php, I cannot move beyond page one!

Check it out: http://www.bigblueball.com/forums/referrers.php?page=3 (actually takes you to page one, and nothing you do will take you to another page. Any suggestions?Any ideas why pagination isn't working for me?

Lea Verou
03-26-2006, 10:25 PM
Hmm, have you made any changes to the file or to the template?
How many pages should actually be there? Is eleven correct?

GetGamer.com
03-26-2006, 11:54 PM
Hmm, have you made any changes to the file or to the template?
How many pages should actually be there? Is eleven correct?There should be multiple pages, and I would expect 11 sounds reasonable. I haven't made an file or template changes, but just to be safe, I'm going to go back and reinstall.

EDIT: Just did a fresh reinstall, but have the same problem.

vol_freak
03-27-2006, 05:35 AM
Is there a way to have the referral link show up in the users control panel? I was visiting another board and they had a message and the users referral link in a box above the subscribed threads in the control panel? Am I missing this or is that a different mod?

Thanks, everything else seems to be working great.

jedimaster69
03-27-2006, 11:21 AM
Does anyone know if this works in 3.5.4?

almukmin
04-05-2006, 10:22 AM
Yes it works, if anyone want a fixed version that counts referrers from before the cut-off date, doesn't show an error if there isn't anyone referred and doesn't count referrals with 0 post..

I HAVE IT! It's the same hack, but with some customizations and yes jedimaster69, it works for 3.5.4.

Thank you.

Lea Verou
04-05-2006, 10:30 AM
Thanks almukmin for the contribution :)

wolfyman
04-05-2006, 10:54 AM
Yes it works, if anyone want a fixed version that counts referrers from before the cut-off date, doesn't show an error if there isn't anyone referred and doesn't count referrals with 0 post..

I HAVE IT! It's the same hack, but with some customizations and yes jedimaster69, it works for 3.5.4.

Thank you.

I'm interested, where is it? :)

kylek
04-06-2006, 08:02 AM
I just installed this to start a competition and it seems to be fine, however tonight a new person registered and obviously didn't use the link. In checking her user profile the box is empty for refferer. Figuring I could credit the member who reffered her, I put the user id of the person in the referrer box and clicked saved.
Now when I go to referrals page I see this on top;

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

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 173

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

It goes away when I clear out the referral box. Anyone know if or how you can manually add a person to the referral section?

Lea Verou
04-06-2006, 10:52 AM
I'm interested, where is it? :)
He had posted a link, but now it's gone :confused:
I take back my "thanks".

Lea Verou
04-06-2006, 10:56 AM
I just installed this to start a competition and it seems to be fine, however tonight a new person registered and obviously didn't use the link. In checking her user profile the box is empty for refferer. Figuring I could credit the member who reffered her, I put the user id of the person in the referrer box and clicked saved.
Now when I go to referrals page I see this on top;

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

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 173

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

It goes away when I clear out the referral box. Anyone know if or how you can manually add a person to the referral section?
You have to add the username, not the userid, if I understood you well (just woke up). I'm surprised that you didn't get an error, so probably I didn't understood well.
Btw when you get these errors, are any results displayed?

Hornstar
04-06-2006, 11:07 AM
If anyone downloaded the one he posted up above can you ask him to repost it or see if you can post it up. Or is this working fine for 3.5.4?

kylek
04-06-2006, 06:01 PM
You have to add the username, not the userid, if I understood you well (just woke up). I'm surprised that you didn't get an error, so probably I didn't understood well.
Btw when you get these errors, are any results displayed?

Hi Michelle,

I tried both ways and no results were shown.

However just grabbed a coffee and read through all the posts and found the other referrers.php, uploaded it and everything shows and runs good. I can even go into and add the referrer to the members info and it shows properly now.

GetGamer.com
04-07-2006, 11:19 PM
I've grabbed the updated referrers.php, but I still have a paging problem. I've configured it to show only referrals since April 1st, and it shows 12 pages of results. Yet clicking on any of the page links shows exactly the same list.

You can check it out here (http://www.bigblueball.com/forums/referrers.php).

xspazx
04-12-2006, 02:52 PM
Same here, get gamer. I've spent an hour trying to get it to show only referrals for this month and it either shows all or none for me. I even tried messing with my date settings on my board. :(

This really sucks that it's the only plugin that has these features.

Lea Verou
04-12-2006, 05:05 PM
xspazx try to download the referrers.php that was posted earlier in this thread.
Most likely it will solve your problem.

Oddjob
04-12-2006, 09:40 PM
Yes it works, if anyone want a fixed version that counts referrers from before the cut-off date, doesn't show an error if there isn't anyone referred and doesn't count referrals with 0 post..

I HAVE IT! It's the same hack, but with some customizations and yes jedimaster69, it works for 3.5.4.

Thank you.

Can i have that?

GetGamer.com
04-13-2006, 05:26 PM
I've grabbed the updated referrers.php, but I still have a paging problem. I've configured it to show only referrals since April 1st, and it shows 12 pages of results. Yet clicking on any of the page links shows exactly the same list.

You can check it out here (http://www.bigblueball.com/forums/referrers.php).I'm still looking for any ideas on why this isn't working.

Ohiosweetheart
04-14-2006, 02:43 AM
is there no template change instructions? I'm no coder and telling us:

The link for the page would be like www.yoursite.com/forum/referrers.php. Place it wherever you feel it fits
doesn't do me a bit of good.

please?

Lea Verou
04-14-2006, 09:45 AM
Peggy someone who wants to administer a forum should know at least the basics of html. I can't help much as I don't have it in my forums (I have it on one, but not as a link anywhere).
Just place <a href="referrers.php">View referrer statistics</a> somewhere in the template navbar, that's where most people add it. You may need to add an extra column. It would help if you told me where you want the link to be in your forums.

Ohiosweetheart
04-14-2006, 11:04 AM
lol... I DO know basic html, thank you. But anytime I install a hack that has template changes checked, there's always instructions as to which template to edit and where the code goes. Not everyone is an advanced coder ;)

I simply want this to show in the usercp, where they usually do

GetGamer.com
04-16-2006, 06:03 PM
I'm still having the same paging problem -- I've installed the updated referrers.php but it didn't solve the problem. Would someone be willing to help me sort out the problem?

Ohiosweetheart
04-28-2006, 09:31 AM
I really do just want to know which template to place the code in, so that the referral link shows in the members profile, above their subscribed threads.

Lea Verou
04-29-2006, 03:44 AM
If you just want the referral link to show in the member's profile, and you don't care about the referral list then this hack suits your needs better: https://vborg.vbsupport.ru/showthread.php?t=95950&highlight=referrer ;) :)

Ohiosweetheart
05-02-2006, 01:30 AM
Thank you Michelle.

But if I do want the stats list...lol...

I saw one site where the referral link was in the userCP and the stats list was at the bottom of the ForumHome page.

Snake
05-02-2006, 08:03 AM
I have re-installed this hack once again. :)

http://www.bonethugsforums.com/referrals.html

* Snake clicks on Install

Svenna
05-21-2006, 09:11 PM
hello,

i have the following error message!

Warnung: Invalid argument supplied for foreach() in /referrers.php (Zeile 96)

Warnung: Invalid argument supplied for foreach() in /referrers.php (Zeile 103)

Warnung: Invalid argument supplied for foreach() in /referrers.php (Zeile 117)

Warnung: Invalid argument supplied for foreach() in /referrers.php (Zeile 124)

version from vbulletin: 3.5.4 with vbseo 2.4.5


help pls:)

Lea Verou
05-21-2006, 10:50 PM
Do you have any results to display? Have you set a cut off date?
Btw I have given somebody here a fixed referrers.php that does not show these problems even without any referrers IIRC. I don't know where I have put it but perhaps he can attach it?

Svenna
05-21-2006, 10:56 PM
hello Michelle,

I cannot tell you whether I one show have because I am just newly based.
were terrific if you would find your changed file.

Lea Verou
05-24-2006, 04:38 AM
Yep, you have no referrers. Wait till you have some. With zero referrers there is no use in this hack anyway ;)

Stifler
05-27-2006, 09:39 PM
Why would you want a referral statistics hack when there are no referrals to be displayed? :confused:
The same reason someone would include a feature if it doesnt work ;)
Has anyone got this working with cutoff dates?

Lea Verou
05-27-2006, 10:02 PM
The feature does work but in a different way. I have included a referrers.php somewhere in this thread to make it work as most people seem to want.
The only time it doesn't work is if there are no referrers and it would be useless anyway in that situation.
Btw you really need to learn some good manners :tired:

jplg
05-28-2006, 01:36 AM
does it work for 3.5.4 please?

can I remove the welcome link?

Lea Verou
05-28-2006, 02:09 AM
does it work for 3.5.4 please?

can I remove the welcome link?

Yes it should work for 3.5.4 and there is a setting for that panel, if you look at the screenshot from the ACP.

jplg
05-28-2006, 02:13 AM
thanks and why don't you sleep now? its morning in Greece :)

Lea Verou
05-28-2006, 02:17 AM
thanks and why don't you sleep now? its morning in Greece :)

I can't sleep :( I wish I could, I hate to wake up at 5pm :(

Stifler
05-28-2006, 05:39 AM
Can you try this please and tell me if it works?
https://vborg.vbsupport.ru/attachment.php?attachmentid=39862&d=1135391668
worked. could you please link to it from the main post :bunny: it took me 11pages of scanning to find it.

thanks Michelle. sorry for being rude.

Lea Verou
05-28-2006, 06:04 AM
Done. Thanks. :)

Nathan2006
05-29-2006, 08:27 PM
Thank you Michelle

I went on a search and found this :D

Just what I was looking for but 100 times better :cool:

Working fully 3.54

Install

jplg
05-30-2006, 02:24 AM
for me it doesnt work well :(

lets say I introduce the date before 01-04-2006
I get 100 refs for member 1 and less for several others

I take a close date 15-04-2006
I get same refs for member 1 and almost all the others

I take 01-05-2006 and no results whats impossible, member 1 has almost all his refs after this date.

and refs appear on his column all the time the same, not less not more.


where would be the mistake please?

agiacosa
05-30-2006, 05:15 PM
Michelle,

Using the new referrers.php, it seems to pull everyone that has zero referrals and gives then a ranking. Is there anyway to show only the ones with referrals?

See: http://www.aquaticplantcentral.com/forumapc/referrers.php

Thanks,

Lea Verou
05-30-2006, 07:21 PM
for me it doesnt work well :(

lets say I introduce the date before 01-04-2006
I get 100 refs for member 1 and less for several others

I take a close date 15-04-2006
I get same refs for member 1 and almost all the others

I take 01-05-2006 and no results whats impossible, member 1 has almost all his refs after this date.

and refs appear on his column all the time the same, not less not more.


where would be the mistake please?

Try the alternative referrers.php (look at the first post)

Lea Verou
05-30-2006, 07:25 PM
Michelle,

Using the new referrers.php, it seems to pull everyone that has zero referrals and gives then a ranking. Is there anyway to show only the ones with referrals?

See: http://www.aquaticplantcentral.com/forumapc/referrers.php

Thanks,

Do the other members it show have any referrers at all?

agiacosa
05-30-2006, 07:57 PM
No, it doesn't show referrals for the other members.

Lea Verou
05-30-2006, 08:05 PM
No, it doesn't show referrals for the other members.

Ι meant if the other users it displays normally have referrers but they are not displayed due to a cut-off date setting.

jplg
05-30-2006, 09:35 PM
I pasted the other php file, it works now, first members appear with the referral number just for a certain period. this is what I wanted :)

I don't understand why they appear others with 0 referrals? no one invited them on the page :)

Lea Verou
05-30-2006, 09:52 PM
Since it works fine you could click install :)

agiacosa
05-31-2006, 01:24 AM
Ι meant if the other users it displays normally have referrers but they are not displayed due to a cut-off date setting.

I'm not sure what you mean. If you look at my referers page you can see what I mean. The cut-off setting was set for May 23. I want the system to simply show the users who have referred someone since that date.

Lea Verou
05-31-2006, 01:26 AM
I'm not sure what you mean. If you look at my referers page you can see what I mean. The cut-off setting was set for May 23. I want the system to simply show the users who have referred someone since that date.

Ok, let's make it clearer:
I'm asking a question that will help me determine what your problem is.
The question is "if you go to one of those members' profile, will the referral count be zero? Or they do have referrers but these referrers have registered before May 23rd?".
Undestood now? (say yes, say yes!)

agiacosa
05-31-2006, 01:42 AM
The referral count shows correct in the user profile. These referrals happened before May 23.

The problem is in the display for referrers.php. It shows the people who have referred after May 23 correctly. BUT then it puts a bunch of members who have not referred anybody after May 23. It gives all of them the same ranking and shows 0 referrals. It's about 12 pages of members.

Lea Verou
05-31-2006, 01:48 AM
Wait, I'll try to fix it. I think I know what causes this...

Lea Verou
05-31-2006, 01:52 AM
Tell me if this one works, I haven't tried it. Also I'm not sure I edited the correct one referrers.php. No time to check. The only difference is in line 183.

agiacosa
05-31-2006, 02:09 AM
Nope. Now I only show 1 referrer who registered after May 23 and who referred 1 person. The existing users who registered before May 23 and referred after May 23 are not showing.