PDA

View Full Version : Referral Statistics


Pages : 1 [2]

paulz
01-28-2005, 09:46 PM
paulz - can you please post a picture of the problem your facing in the admincp. I might be able to help you.. I'm going to change the installation instructions to make them a little more clearer for people. Sorry. :(

it has to do with phrases, but i honestly don't have time to manually find/fix them all in the php file. thanks for the help!

oh, and i think screen 1 is just a bulleting issue (being outside the table)

paulz
01-28-2005, 09:52 PM
Yeah, it least I believe I have it right. (hard to tell cause of the stupid blank config referral statistics page even with the newest 2.1 RS hack and the fixit.php file) I'll have to check again to make sure. Talk to you later on AIM about this, thanks
blank page almost always means a blank/broken template. make sure the style you are using has the right remplates for the hack.

moethelawn
01-28-2005, 09:55 PM
blank page almost always means a blank/broken template. make sure the style you are using has the right remplates for the hack.
Actually, I meant I see exactly the pics that you just posted not too long ago. It's not exactly blank, just no phrases (sorry, I didn't make that clear)

But I still get that Internal Server Error when I go to referrals.php... (chmod 777)

paulz
01-28-2005, 10:07 PM
Actually, I meant I see exactly the pics that you just posted not too long ago. It's not exactly blank, just no phrases (sorry, I didn't make that clear)

But I still get that Internal Server Error when I go to referrals.php... (chmod 777)
the insternal server error is definitely that you don't have the directory set in your admincp>referralstats setup. if your hosted on a linus server, it's prolly gonna be something like

/home/username/public_html/forumroot/

when i did this, it gave me a chdir error cuz i had forgotten the preceding "/" in front of home. putting this is made the referral stats work fine.

to enter in the directory in your admin, go to that page, and the first box is where you put the path, save, and you should be all set on the user end.

gspot
01-28-2005, 10:40 PM
paulz - thanks for the help.

I have updated the zip file again to reflect changes in the install of this hack. I have also updated the installation instructions.

I have updated by board to version 3.0.6 and I uninstalled this hack completely, then I ran the installation through the auto installer and smack dab, everything is working correctly. Try following the new instructions...

T3MEDIA
01-28-2005, 11:48 PM
paulz - thanks for the help.

I have updated the zip file again to reflect changes in the install of this hack. I have also updated the installation instructions.

I have updated by board to version 3.0.6 and I uninstalled this hack completely, then I ran the installation through the auto installer and smack dab, everything is working correctly. Try following the new instructions...
ummm ok should I dl this or stick with 2.0?
IS IT OK NOW????

PAWS
01-29-2005, 01:20 AM
Hi Gspot.
i finally did the upgrade to the new version.

Im having 2 small issues...

1. Can't see "referaal Statistics' option in admin panel. Its there... but hidden. See attached pic.

2. I do not get the full text on the configuration settings.!! what cud be missing? the phrases? how can I ad those?


3. what does RESET REFFERAL do now in the new version??? the option in admin panel under USERS. it open a BLANK page when i click on it. does it needs to be removed?


overall, :up:

Same problem here

gspot
01-29-2005, 09:07 PM
paws - make sure you followed the instructions from start to finish. Make sure that when you set-up the referral statistics in the admincp that you entered in the full path to your vbulletin forum example: /home/www/mywebsite/vbulletin/forums/ including the last backslash.

t3media - You should be fine upgrading, just download the latest zip file and follow the instructions start to finish. :)

THAT IS THE BIGGEST PROBLEM HERE, PEOPLE NOT FOLLOWING THE INSTRUCTIONS - maybe I should require the vbulletin path again to be edited by hand in the actual files, let me know what you think T3MEDIA. :)

CSS59
01-30-2005, 12:25 AM
all done and it works well. I clicked install

One more Q... I dont have a date. I just have this Total referrals since
(No Reset Record Found!)

- 23 -

T3MEDIA
01-30-2005, 02:18 AM
gspot I see you have this check by post... why not have it check by referals?
like i originally said? its like freeipod but for vb!

I must sign up 5 users and each user must sign up x users for me to get 1 point.

BELIVE me you set it up like that peoples sites will blow up! I would pay each user if they did that to be honest with you.

moethelawn
01-30-2005, 05:11 AM
THAT IS THE BIGGEST PROBLEM HERE, PEOPLE NOT FOLLOWING THE INSTRUCTIONS
We do :P

I had Rex check it out... he doesn't know why it doesn't work either. The Internal Server Error did disappear (before Rex looked around), but I get this error: Warning: chdir(): No such file or directory (errno 2) in /referrals.php on line 18

And the phrases still doesn't show up... this goes for the old and just updated 2.1 version...

gspot
01-30-2005, 08:44 AM
mowthelawn - the problem that you are having is that you dont have the right path set for you vbulletin full path, make sure you have the trailing backslash on your forum path. That is for sure that problem that you are having....

gspot
01-30-2005, 08:45 AM
t3media - I'm looking into what you are asking. I will add this very soon, right now I have added database modifications that will allow for this eventually. Please stick with me on this. It will be available soon.

gspot
01-30-2005, 09:41 PM
css59 - you will only get that and no date unless you do a full reset on referrals. This will reset all members referrals to zero and start a new competition. Only perform a reset once you upgraded to the latest version. This way it will still keep track of who was referred by whom even when you perform a reset. :)

Or you can enter a date in manually using phpmyadmin and just enter a date in the referrals table with the field date. :)

moethelawn
01-31-2005, 04:49 AM
mowthelawn - the problem that you are having is that you dont have the right path set for you vbulletin full path, make sure you have the trailing backslash on your forum path. That is for sure that problem that you are having....

heh, alright...

The first two pics show the path that i have with another window showing the error at the top in the referrals.php page

The thrid pic is what the php info via vB admincp says is the path of the forums...

... so what now?

T3MEDIA
01-31-2005, 11:59 AM
there is a new update again?

gspot
01-31-2005, 01:46 PM
t3media - no i fixed an error on the installer. it doesnt affect anyone.

gspot
01-31-2005, 01:50 PM
moethelawn - can you confirm that your path that is shown in the pictures above is actually listed in the referrals database table under "vbpath"? Also, let me know what is all in the referrals database table. What fields? :)

T3MEDIA
01-31-2005, 06:25 PM
t3media - no i fixed an error on the installer. it doesnt affect anyone.
thanks for da info!

iSpanish
01-31-2005, 07:14 PM
coooooooooooooool


thanks

*Marboosh Clicks Install*

i am trying to translate it to Arabic Language

T3MEDIA
01-31-2005, 09:18 PM
mowthelawn - the problem that you are having is that you dont have the right path set for you vbulletin full path, make sure you have the trailing backslash on your forum path. That is for sure that problem that you are having....
Hey G. same thing just happened for me for a friends page. The option to put the full path doesnt arrise before the "hidden" phrases start. I think this is due to upgrade. Upgrade from what verison? I think users that have your older version will be missing phrases.

gspot
01-31-2005, 10:03 PM
Did you check this manually in the phrases section in the admincp? Where non of the phrases added? I made the installer add all phrases no matter if they had the old version or the new. Please check this and let me know. You will be looking for phrases that start with referral

gspot
02-01-2005, 02:06 AM
I would like to know if anyone has installed this hack without having any troubles with the new verion 2.1? I'm leading to believe that I have something simple wrong here with the auto installer. Can anyone tell me who is having problems, if they can see manually in their admincp in the phrases that there are phrases with referral beginning with them? They should be listed under the global phrase section. This will help fix the problems that you are having, the more information you can give me the better, any pictures, ect.. MUCH APPRECIATED!

T3MEDIA
02-01-2005, 04:47 AM
Did you check this manually in the phrases section in the admincp? Where non of the phrases added? I made the installer add all phrases no matter if they had the old version or the new. Please check this and let me know. You will be looking for phrases that start with referral
the screen goes blank. the tag under username is hidden its like a mariobrothers game. its inbetween the two codes. almost like your var have nothing in them.

and the template has lost all sense of pagnation. It doesnt bother me much wasnt my system but to be honest these peeps you said cant follow instructions are right.

Actually your installer is straight forward. So I cant see how they would mess up phrases. I also get a database error. I am sure it is due to prefix. I dont want to mess with it... wait till you get a update.

gspot
02-01-2005, 05:00 AM
Ok, finally I dont know why now, but finally I'm getting the same error here. I have been asking questions to other hackers and were all trying to figure this out. It's really weird. Sorry all, please do not install this until I release a fixed version in 2.2

I'm trying my best to fix this promptly. :( VERY SORRY TO ALL

Viks
02-01-2005, 10:13 PM
Ok, finally I dont know why now, but finally I'm getting the same error here. I have been asking questions to other hackers and were all trying to figure this out. It's really weird. Sorry all, please do not install this until I release a fixed version in 2.2

I'm trying my best to fix this promptly. :( VERY SORRY TO ALL

I installed the 2.1 v when u fixed the phrase's issue. Apparently, the problem did not fix itself. But when i logged out of admin panel and logged back in the second time... everything worked flawlessly. I have read lots of messages of ppl having issues with the path to refferal.php and i do not think it is an issue with the mod but ppl not understanding the instructions.

Also, as a suggestion, if u can include a mannual install instruction, that will help ppl like us - who are not too techie but still techie enough to modify vB with some instructions. Overall, the hack installed OK for me.

gspot
02-01-2005, 10:18 PM
Thanks viks - will add a manual installer. :) thanks for the heads up and your $.02 :)

T3MEDIA
02-01-2005, 11:26 PM
Thanks viks - will add a manual installer. :) thanks for the heads up and your $.02 :)
table prefix!!!!

gspot
02-02-2005, 06:28 AM
Please download this fix if and only if you are having issues with the phrases in version 2.1 - The main zip has been updated as well for new installations and upgraders who have not yet upgraded to version 2.1. ONLY USE THIS IF YOU ARE AN EXISTING 2.1 USER. This will automatically upgrade you to version 2.2 :)

IT IS FIXED. FOLLOW THE INSTRUCTIONS.

T3MEDIA
02-02-2005, 03:27 PM
Please download this fix if and only if you are having issues with the phrases in version 2.1 - The main zip has been updated as well for new installations and upgraders who have not yet upgraded to version 2.1. ONLY USE THIS IF YOU ARE AN EXISTING 2.1 USER. This will automatically upgrade you to version 2.2 :)

IT IS FIXED. FOLLOW THE INSTRUCTIONS.
Thank you!. Like a charm. Question (since they never stop) why did you set it up to be one or the other? Why couldnt groups (not in) say 1,3,4 have posts more than 10 lets say...
(throwing in) and at least 1 referal themselves.

I had to pick one out of the list but hey it works... and you took time to make it... AND fix it with an installer.

Props to you man.

Spyke
02-02-2005, 05:02 PM
hi, i used the upgrade script to upgrade from v2.0 and i can't get to the referral settings in the admincp and the templates havent changed and i'm getting this error viewing the referral page now.

Warning: chdir(): No such file or directory (errno 2) in /referrals.php on line 18

Any ideas? Maybe if i unistalled it and reinstalled?

rrr
02-02-2005, 09:07 PM
Does this script track how many posts the referrals have made?

I'd like to only give "credit" for a referral if they are active and have made at least X number of posts.

Is this possible?

gspot
02-02-2005, 10:04 PM
hi, i used the upgrade script to upgrade from v2.0 and i can't get to the referral settings in the admincp and the templates havent changed and i'm getting this error viewing the referral page now.

Warning: chdir(): No such file or directory (errno 2) in /referrals.php on line 18

Any ideas? Maybe if i unistalled it and reinstalled?


actually some of the templates have changed. You can try uninstalling it, then doing a re-install, but you need to edit your /admincp/index.php file to reflect the changes that were made to it in order to view the "referral statistics" under the admincp. Try it let me know..

gspot
02-02-2005, 10:05 PM
Does this script track how many posts the referrals have made?

I'd like to only give "credit" for a referral if they are active and have made at least X number of posts.

Is this possible?

Yes, this is an option in this new version. Check out the screen shots. :)

gspot
02-02-2005, 10:05 PM
Please Click Install If You Install My Hack Please.. :)

rrr
02-02-2005, 10:19 PM
Check out the screen shots.

I looked at the screenshots, but I didn't see any images that had number of posts information. I may have missed it though.

If it does have this, it is exactly what I've been looking for.

Spyke
02-03-2005, 01:42 AM
actually some of the templates have changed. You can try uninstalling it, then doing a re-install, but you need to edit your /admincp/index.php file to reflect the changes that were made to it in order to view the "referral statistics" under the admincp. Try it let me know..

Ok, i uninstalled it and reinstalled it and everythings working fine now. Thanks. Great mod :)

moethelawn
02-04-2005, 11:30 PM
After upgrading the hack, all of a sudden it works like a dream...

Thanks for the upgrade, gspot

mindbuster
02-06-2005, 02:08 AM
Umm, before i install, does this work with the uCASH/uSHOP store hack ?

In the store hack members get points from referrals, anyone know if it would work with that ?

gspot
02-06-2005, 02:58 AM
Umm, before i install, does this work with the uCASH/uSHOP store hack ?

In the store hack members get points from referrals, anyone know if it would work with that ?
This has nothing to do with any other hack. This will just show you referral statistics. I would assume that it works with ucash/ushop without any problems, because it doesnt even have anything to do with it. If some one referrers somebody else, then they get points for that referral towards the shop, this just keeps track of who has referred who, ect.. Just a good hack if your looking for referral statistics. :) SO CLICK INSTALL AND INSTALL IT...

mindbuster
02-06-2005, 09:51 AM
SO CLICK INSTALL AND INSTALL IT...

No.....

Ill install it THEN click install :cool:

mindbuster
02-06-2005, 09:59 AM
Umm, wait a minute....

rrr asked this...

Does this script track how many posts the referrals have made?

I'd like to only give "credit" for a referral if they are active and have made at least X number of posts.

Is this possible?

You replied....

Yes, this is an option in this new version. Check out the screen shots.

Umm, how would this work with the store hack ?

The store hack gives credits (points) as soon as someone refers someone, this hack makes it possible to wait with referral count until a set number of posts have been made by the referred.

Is that set number of posts only for the statistics ? wouldnt the store hack just give the referrer his reward instantly ? Or would the referrer get his points when the referred had made a certain amount of posts ?

gspot
02-06-2005, 03:39 PM
It would work as normal. However the other hack works now. It makes no change to that hack or how it works. So all this does is show statistics on who has referred whom and YES you can limit the results shown to how many posts they have made or what usergroups they are in... :) Your other hack will run like it does now...

stumparoooo
02-06-2005, 11:26 PM
nvm..figured it out..

*clicks install*

'Love the hack..Thanks!

KanyeWest
02-07-2005, 09:37 PM
its installed but when iclick it ... it goes to my homepage www.idenonfire.com how do icahnge that so i goes to refferal :ermm:

gspot
02-07-2005, 10:58 PM
its installed but when iclick it ... it goes to my homepage www.idenonfire.com how do icahnge that so i goes to refferal :ermm:
Ok edit this in your footer template. This is your problem see this?
http://www.idenonfire.com/"referrals.php/"

- That is the link that its trying to call... You need to edit this to be:
http://www.idenonfire.com/referrals.php

That will fix it :)

KanyeWest
02-07-2005, 11:11 PM
idn it wont work for me can u sign up at my site and make u admin and u can fix it it wont work for me :ermm:

gspot
02-08-2005, 05:27 AM
idn it wont work for me can u sign up at my site and make u admin and u can fix it it wont work for me :ermm:
Actually sorry - Change the footer template from above to this:
http://www.idenonfire.com/forums/referrals.php

- I didn't see that your forum was in the /forums/ directory. Do this and your fixed. :)

If you follow the link that I posted above you will see an error at the top of the page. This is because you need to set the path to your forums directory in the "referral statistics settings" under the admincp if you dont know how to find this, please check the installation instructions. You must follow all the steps of the installation instructions in order to install this hack correctly. There is no need to have me as an admin at your site and just for a heads up, dont offer that to anyone!! :( Someone could really screw-up your site on purpose or not. :(

But let me know how this works for you. It should take care of all your problems. :) :)

Battle_Ring
02-12-2005, 02:12 AM
Help

i just did this and on the referral page my skin images are liek this

http://battle-ring.com/forums/referrals.php/fusion/misc/fusion_header_ls_blank.gif

Battle_Ring
02-12-2005, 03:04 AM
111
1
1Never Mind I Got It i had to take the / off from referral.php i nthe footer

ombossman
02-13-2005, 01:15 PM
chdir(): No such file or directory (errno 2) in /referrals.php on line 18


how to solve this problem :rolleyes:

gspot
02-13-2005, 04:46 PM
chdir(): No such file or directory (errno 2) in /referrals.php on line 18


how to solve this problem :rolleyes:
By reading the instructions...... :( !!!!!!

You have to set the full vbulletin path in your admincp under referral statistics and then configure referral statistics. That will fix your problem which has already been addressed i dont know how many times before your post. Take the time and read the instructions and other peoples posts, because many issues will have already been addressed. :)

gspot
02-13-2005, 04:47 PM
By the way - CLICK INSTALL IF YOU INSTALL MY HACK :)

hitmanuk2k
02-16-2005, 05:22 PM
I don't know why, but installing this seems to have killed my scheduled tasks... Any ideas?

lifesourcerec
02-16-2005, 05:45 PM
says it saves the absolute path, but it doesn't.

So, I still get this:


Warning: chdir(): No such file or directory (errno 2) on line 18

Warning: Division by zero on line 45


And yes, I put in absolute path, number of pages and click save. But still get that error.. After hitting save, it still says: "ERROR: You must set your vbulletin path!"

Won't save it. Is there a way to manually add it to the database?

gspot
02-16-2005, 09:12 PM
I don't know why, but installing this seems to have killed my scheduled tasks... Any ideas?
This shouldnt affect the scheduled tasks, it has nothing what so ever to do with it. You might want to try to run a database repair and optimization in the admincp panel.

gspot
02-16-2005, 09:14 PM
says it saves the absolute path, but it doesn't.

So, I still get this:



And yes, I put in absolute path, number of pages and click save. But still get that error.. After hitting save, it still says: "ERROR: You must set your vbulletin path!"

Won't save it. Is there a way to manually add it to the database?
Can you please post some images of the following pages: Your admincp referral configurations page & the referral statistics page in general in the admincp where you are seeing this error?

It successfully added the path, since you aren't seeing an error on the referral.php page. So I need to see what you are working with as far as your settings in general. If you would like, email me the screen shots so you dont have to show your full vbulletin path to the public.

lifesourcerec
02-17-2005, 01:07 AM
Can you please post some images of the following pages: Your admincp referral configurations page & the referral statistics page in general in the admincp where you are seeing this error?

It successfully added the path, since you aren't seeing an error on the referral.php page. So I need to see what you are working with as far as your settings in general. If you would like, email me the screen shots so you dont have to show your full vbulletin path to the public.

I found the problem. I did it as an upgrade, but I was using an old version of referral statistics. Had to re-install as new and add the code in the function)online file.

VAN
02-17-2005, 03:05 AM
Nice. No problems for me on 3.0.6. :)

Thanks!

Suggestions for next version...

-Sorting options (by username, referral count, etc)
-Adjust the design to look more like the default vB design. (table widths, pagenav, headings, etc.
-ability to toggle on/off show only those referred members who have been active within the past x days.

minerva1
02-22-2005, 05:06 AM
What I would love to see in this hack:

-When a user is logged in, the url of any page they view is appended with "&ref=USERNAME" tag following the rest of the URL. This allows a person to paste that link on any other site or send it to a friend to refer them easily.

-Payment integration and tracking: Any referrals give the referrer a monetary reward of like $0.10-$1.00 per user if the referred user makes more than 5 posts or something. The admin can pay any user once their balance reaches a certain amount via paypal (this last part doesnt need to be integrated, just tracked)

With those two hacks, this would be the bestest hack ever cause everyone knows that if u motivate people through money, you'll get a lot more users much faster... :)

I'm willing to pay for these additions too gspot, if you're listening :D

deb0
02-22-2005, 10:28 AM
I get a blank page in 306, can't figure out why. Installed from scratch several times.

Frustrated.

gspot
02-22-2005, 01:33 PM
what is 306?

SaN-DeeP
02-26-2005, 01:54 PM
Upgraded forums to 3.0.7
Opening Referral Statistics in Admincp, gives a blank window on right pane ?

Any Idea ? (I am in a big hurry taking forums online, cant look much internally now..)

Regards,

Battle_Ring
02-26-2005, 05:47 PM
how can i change how many it shows on the referral stats page??

gspot
02-27-2005, 12:17 AM
Upgraded forums to 3.0.7
Opening Referral Statistics in Admincp, gives a blank window on right pane ?

Any Idea ? (I am in a big hurry taking forums online, cant look much internally now..)

Regards,
sandeep - verify that referralstats.php is in the /admincp directory and also make sure that you have edited the index.php file in the /admincp as well to reflect this hacks installation instructions. Let me know. :)

gspot
02-27-2005, 12:18 AM
how can i change how many it shows on the referral stats page??
If you read the instructions it will tell u, however you need to edit the referral statistics configuration in the admincp and you will see where it specifically says how many results per page. This is where you would edit this. :)

SaN-DeeP
02-27-2005, 10:31 AM
sandeep - verify that referralstats.php is in the /admincp directory and also make sure that you have edited the index.php file in the /admincp as well to reflect this hacks installation instructions. Let me know. :)
Hi gspot,
Glad to see your quick reply.

I have not touched referralstats.php, it lies in my admincp dir
index.php and other file edits have been done appropriately.

Although, I noticed a small bug in install/upgrade files, I have modified the admincp dirs, somewhere while using the newinstallation or upgradation, I noticed the links were redirecting to /admincp and not the /modifiedadmincp dir.

Regards,

deb0
02-28-2005, 04:09 PM
I am getting a blank page with clicking the link. For version 3.06, Has this been fixed yet?

Omega Prime
03-02-2005, 06:08 PM
I also get the issue with the blank page, and I've used the installer and done the file edits =/

T3MEDIA
03-06-2005, 10:57 AM
Hey Gee just got this when I tried to remove a user by name...

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM user WHERE username = 'Tina'
mysql error: Table 'mysite_-_s0c.user' doesn't exist

mysql error number: 1146

Date: Sunday 06th of March 2005 07:33:54 AM
Script: forums/admincp/referralstats.php
Referer:forums/admincp/referralstats.php
Username: T3MEDIA
IP Address: 64.31.112.17

gspot
03-06-2005, 06:16 PM
T3MEDIA - OPEN UP REFERRALSTATS.PHP

FIND:
$info=$DB_site->query("SELECT * FROM user WHERE username = '".$_POST['member']."'");

REPLACE WITH:
$info=$DB_site->query("SELECT * FROM " . TABLE_PREFIX . "user WHERE username = '".$_POST['member']."'");

Sorry - I forgot to add the table_prefix to the script on this option. This will be fixed in the next release. :)

Wifey
03-06-2005, 07:16 PM
http://www.wizarding-wireless.net/referrals.php

I'm helping a friend with her board.

Anyhow, I'm getting that line 18 error thingy and I've installed it correctly. I have the path set as www.wizarding-wireless.net/ and everything looks fine but that one thing.

I'm not sure what the deal is? She has a table prefix of vb3_ does that need to go somewhere in the referrals.php file?

This one is fantastic however. I have the older version on my board and I totally need to upgrade, LOL.

gspot
03-06-2005, 10:20 PM
http://www.wizarding-wireless.net/referrals.php

I'm helping a friend with her board.

Anyhow, I'm getting that line 18 error thingy and I've installed it correctly. I have the path set as www.wizarding-wireless.net/ and everything looks fine but that one thing.

I'm not sure what the deal is? She has a table prefix of vb3_ does that need to go somewhere in the referrals.php file?

This one is fantastic however. I have the older version on my board and I totally need to upgrade, LOL.
The path is the absolute path for example: /home/wizarding-wireless/public_html/forums/

If you dont know the absolute path, contact the hosting company to find out. :)

babolo
03-07-2005, 12:50 AM
Okay, yes I am using different usergroups. I had admin, moderator, supermoderator, registered students and then 4 others. I'm not sure how I change that in the php file. I would love it if you could help me out with that when you get a chance, but I know you're busy so take your time!

edit: I need it to work for all of my usergroups - how can Ido that? Also, I tried switching it to my usergroup and when I opened that page all there was was a 1 in the middle column - nothing else.

I had the same problem but instead of posting the full directory i just put a / where Im suppose to put the full directory and that worked.

Wifey
03-07-2005, 02:50 AM
Ah - I'll try both and see which one works - thank you to you both :0)

edit: the / worked :) Thank you Babolo :)

gspot
03-07-2005, 03:45 AM
babolo - please click install if you have installed my hack. And I had no idea that would work. :)

T3MEDIA
03-07-2005, 12:11 PM
T3MEDIA - OPEN UP REFERRALSTATS.PHP

FIND:
$info=$DB_site->query("SELECT * FROM user WHERE username = '".$_POST['member']."'");

REPLACE WITH:
$info=$DB_site->query("SELECT * FROM " . TABLE_PREFIX . "user WHERE username = '".$_POST['member']."'");

Sorry - I forgot to add the table_prefix to the script on this option. This will be fixed in the next release. :)
Hey man... that is why we are wokin' together... catch all the bugs!

It would be nice to remove referrals from this list while not touching the over all vbulletin list. in other words jen got 10 new members. peter got 5. that is 15 in all. reset... now jen has 0 new members but has 10 from the past. peter has 1 (joinned last night) now he has 6 1 now and 5 from the past...

then the global erase will remove everything.

babolo
03-07-2005, 10:36 PM
Ah - I'll try both and see which one works - thank you to you both :0)

edit: the / worked :) Thank you Babolo :)

No problem

babolo - please click install if you have installed my hack. And I had no idea that would work. :)
lol sorry... sometimes I forget.

lefthome
03-08-2005, 09:55 PM
I have downloaded this hack and as soon as I upgrade from 3.06 to 3.07 I plan on installing, but I have a minor question; I see all the screen shots but does this referral stats allow a member to actually send a referral to someone or is that another hack I need?

babolo
03-08-2005, 09:59 PM
I have downloaded this hack and as soon as I upgrade from 3.06 to 3.07 I plan on installing, but I have a minor question; I see all the screen shots but does this referral stats allow a member to actually send a referral to someone or is that another hack I need?
ITs another hack you need. It can be found at https://vborg.vbsupport.ru/showthread.php?t=59708

jzewatsky
03-09-2005, 09:51 PM
I would like to thank you GSpot for all your effort in regard to this hack. What an amazing job you have done working out the kinks and providing everyone with such great support and such a wonderful hack!!

Since you seem to be the expert on this board when it comes to "Referal" type hacks, I was just wondering if there is any way that this hack could be adapted to meet this request from this (https://vborg.vbsupport.ru/showthread.php?t=77756) thread?

Is there or can someone create a way for the following to happen?

A user(u1) refers two new users (u2)&(u3) to the site.
For every post that (u2) or (u3) makes, a tally(refered posts?) is given to (u1).

User (u2) refers user (u4).
For every post that user (u4) makes a tally is given to (u2) and (u1).

I would like this to be seperate from the users own post count.

The idea stems from a way to not only encourage users to refer new users, but refer quality users and continue to encourage them to be active members of the board. I see it like a pyramid scheme. User (u1) gets "points" for every post someone he refers makes. The tree continues down the line of referals. Damn, I wish I could explain it more clearly.

If possible, integration with a points system (uCash/uShop) would be great.

I think that it would be extremely useable and help a lot of forums out with gaining and retaining memberships and forum content.

If anyone has any ideas, I'd love to hear them. Please bear in mind I am not a programer or coder, just a guy with an idea. Feel free to tell me it's impossible.

Thanks in advance!!

P.S. When this wins hack of the month, please mention me in your acceptance speech. J/K

Koby
03-10-2005, 03:43 AM
Installed, only problem I had was with a typo in the copy/paste peice during the editing of the footer link.

Otherwise, flawless.

gspot
03-10-2005, 06:17 AM
Installed, only problem I had was with a typo in the copy/paste peice during the editing of the footer link.

Otherwise, flawless.
Where is the typo? I can't find it.. :)

gspot
03-10-2005, 06:23 AM
Also, I have edited this hack and a new release will be coming soon... I have added some great features into this hack including:
1) admin ability to add a 2nd navigation to the bottom of the results (on/off)
2) admin ability to show total number of referrals for each member since joined (on/off)
3) No more inserting your forums path manually. (auto fix)
4) Less queries
5) Bug fixed in reset referrals by member (thx T3MEDIA :) )
6) admin ability to show last reset date (on/off)

** I know you all still want the limit results by referrers referrals, but trust me I'm working on it and its a pain in the a$$... Can't seem to get it to work without way to many queries.. Huge server load...

Let me know what u think guys :)

gregwatson
03-12-2005, 10:20 AM
Also, I have edited this hack and a new release will be coming soon... I have added some great features into this hack including:

Is there any way to get it to track referrals that become a part of a usergroup (i.e. follow through on a subscription)?

Greg

T3MEDIA
03-12-2005, 11:10 AM
Is there any way to get it to track referrals that become a part of a usergroup (i.e. follow through on a subscription)?

GregOhhh GOOD one. Affiliates... Nice idea.

deb0
03-14-2005, 09:32 AM
Any updates on the blank page when clicking referral statistics

gspot
03-16-2005, 04:05 AM
debo - Im looking into it.

gspot
03-16-2005, 04:07 AM
Is there any way to get it to track referrals that become a part of a usergroup (i.e. follow through on a subscription)?

Greg


Actually this is already implemented guys :) all you need to do is insert in that usergroupid number that you want it to only track and boom there it is... :) ENJOY

gregwatson
03-16-2005, 10:32 PM
Actually this is already implemented guys :) all you need to do is insert in that usergroupid number that you want it to only track and boom there it is... :) ENJOY

Thanks ... I will work on that tonight ...

Thanks,
Greg

gregwatson
03-17-2005, 12:42 AM
Fixed - See Edit at bottom of message
-------------------------------------------
Stats works wonderfully as long as I don't select any of the Limit By options.

When I select either the limit by posts or usergroup id's, I get the following database error (any recommendations on what to look for?):

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT COUNT(referrerid) as getusers FROM user WHERE referrerid > 0 AND posts 9
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '9' at line 1

mysql error number: 1064

Date: Wednesday 16th of March 2005 08:38:36 PM
Script: http://www.barrreport.com/forums/admincp/referralstats.php?do=referralstatistics
Referer: http://www.barrreport.com/forums/admincp/
Username: Admin
IP Address: 63.162.87.195

***********EDIT**************************
This error is created if you do not set a "conditional" in the field:

That is / are:

Set the conditional to Equals and all works well ...

Greg

SVTBlackLight01
03-17-2005, 02:06 AM
Same problem here.

gspot
03-17-2005, 04:16 AM
Same problem here.

You need to define your problem, if it is the same as gregs, read his whole post you need to have all the conditions setup if not tell me the error.. :)

gregwatson
03-17-2005, 04:56 AM
You need to define your problem, if it is the same as gregs, read his whole post you need to have all the conditions setup if not tell me the error.. :)

He may not know how to edit his database to "fix" the problem ...

Once this error message is created, there is no way to fix it from the admincp without manually going into the database and editing limit1, limit2, and limit3 as necessary ...

There really *does* need to be an error trap coded to catch this "problem" ...

Greg

gspot
03-17-2005, 08:09 PM
greg - I will have this fixed in the next release. Also please click install if you have installed my hack :) until then I will make a rollback file later tonight that you will need to run if you have this same problem.

gspot
03-18-2005, 01:39 AM
FOR ALL OF YOU GETTING A BLANK SCREEN IN THE ADMINCP:

open referralstats.php and find:

// ########################## REQUIRE BACK-END ############################
require_once('./global.php');


After it add:

require_once('./includes/adminfunctions_template.php');
require_once('./includes/functions_misc.php');

Let me know if this resolves your issue. It should. :)

gregwatson
03-18-2005, 02:01 AM
greg - I will have this fixed in the next release. Also please click install if you have installed my hack :) until then I will make a rollback file later tonight that you will need to run if you have this same problem.

Once I figured out what the problem was (looking at the error message kind of made it obvious <grin> ... it was missing the conditional) ... then it was simply a matter of pouring through to code only to figure out that it was in the database ... fixing problems in the database is easy <grin> ... fixing code without breaking something else is a different story <grin> ...

I clicked install earlier ...

One sad thing about the Installl button ... it only lets you do it once ... I have 8 vBulletin licenses ... and your hack will be on at least three of them by the end of this weekend ...

Greg

Lexina
03-18-2005, 02:50 AM
Warning: chdir(): No such file or directory (errno 2) in /home/lexina/public_html/forum/referrals.php on line 18

Thats my error when I open up Referral Statistics... anyone else getting it or did I do something wrong?

Nevermind, I read a previous post that explained it, thanks.

gspot
03-18-2005, 03:25 AM
Download this fix and upload it to your admincp directory. Open the file in your browser and once completed, delete this file from your admincp directory. This error will be fixed on the next release. :)

This will not fix the blank page error!!

subnet_rx
03-24-2005, 10:11 PM
so, if installing this hack, do we still need to use the above fix?

gspot
03-24-2005, 10:37 PM
so, if installing this hack, do we still need to use the above fix?

Only if you dont follow the instructions when limiting the referral results by either usergroupid or number of posts. Most people never got that error, but if you add a limit to the results, and forget to setup all limits, then yes youll need to run it once. But you should be fine. :)

rrr
03-24-2005, 10:58 PM
How far away is the new version you talked about? Maybe a month, a couple of days.

I'm getting ready to install this hack and was wondering if I should wait.

gspot
03-25-2005, 12:45 AM
NEW VERSION: to be released in the next couple of months :)

rrr
03-25-2005, 01:07 AM
NEW VERSION: to be released in the next couple of months :)


Thanks for that. Now I feel better about doing the install tonight :)

coloradok5
03-26-2005, 12:52 AM
Will it keep track of total refferals "and" last time since reset per user?

Example:
Joe_user (26) 12

Where (26) would be joe's all time refferal count and 12 would be the number since last reset.

venomx
03-26-2005, 01:06 AM
Not sure if you can view it but heres mine
http://www.discussionjunction.com/forums/referrals.php
It shows current and since joining.

oztrack
03-26-2005, 05:22 AM
Tried the usual fixes

Its the common one!

chdir(): No such file or directory (errno 2) in /referrals.php on line 18

I have set my path inside the control panel to what i see in ftp programs
/public_html/forum but it is still giving this error - even though the page actually works.

I also have trouble getting the vbadv page and the Vb forums pages to have working URLs.

Please help

Steve

Scerina
03-27-2005, 01:08 AM
I have followed the instructions to install this hack and now I got this mySQL error message on referrals.php:

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT COUNT(referrerid) as getusers FROM vb3user WHERE referrerid > 0 AND posts =< 25
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '=< 25' at line 1

mysql error number: 1064

Date: Saturday 26th of March 2005 10:06:22 PM

Can someone please help me out?

Scerina
03-27-2005, 01:16 AM
Please disregard my last post but a lil issue still remains...

chdir(): No such file or directory (errno 2) in /referrals.php on line 18
on the referrals.php page

How can I fix this???

gspot
03-27-2005, 08:12 PM
Tried the usual fixes

Its the common one!

chdir(): No such file or directory (errno 2) in /referrals.php on line 18

I have set my path inside the control panel to what i see in ftp programs
/public_html/forum but it is still giving this error - even though the page actually works.

I also have trouble getting the vbadv page and the Vb forums pages to have working URLs.

Please help

Steve
Whats your web address? I will try to help u get the full path.

gspot
03-27-2005, 08:13 PM
Please disregard my last post but a lil issue still remains...

chdir(): No such file or directory (errno 2) in /referrals.php on line 18
on the referrals.php page

How can I fix this???
same for u, give me your webaddress and I will try to help.

oztrack
03-27-2005, 08:49 PM
Its www.futuresprinting.com

gspot
03-27-2005, 09:20 PM
oztrack - You need to type in the full path to your forums root directory in your admincp area under the referral statistics configuration. The full path is like example:
/home/www.gspotracing.com/public_html/fourms/ including the backslash at the end. If you dont know what your full path is, try using just a backslash and seeing if the error goes away. This will be fixed in the next release. Many people do not know their full path and we are faced with this issue. Let me know, others say that the backslash alone fixes that error.

oztrack
03-28-2005, 12:05 AM
"try using just a backslash"

This worked!!

Thanks

Brandon Sheley
04-07-2005, 05:34 AM
very nice hack, i had an error but found an answer in this thread with cancling the char with the // anyways looking foward to any updates :)

brianstevz
04-08-2005, 01:08 PM
I'm not sure what I'm doing wrong. I went back and read every post attached here and the instructions mutiple times but my site doesn't show "Total referalls since" or "Total refered since joined." Any suggestions.

http://www.pro-american.com/forums/referals.php

gspot
04-09-2005, 04:30 AM
I'm not sure what I'm doing wrong. I went back and read every post attached here and the instructions mutiple times but my site doesn't show "Total referalls since" or "Total refered since joined." Any suggestions.

http://www.pro-american.com/forums/referals.php

For one please click install... Then did u run the upgrade or the new install? I will try to help u get this fixed.. :)

brianstevz
04-09-2005, 12:11 PM
For one please click install... Then did u run the upgrade or the new install? I will try to help u get this fixed.. :)

Opps...I always forget to hit install. Sorry just did.

I started with a fresh install.

gspot
04-10-2005, 04:27 AM
Opps...I always forget to hit install. Sorry just did.

I started with a fresh install.

If you will wait for me one week, I will release the new version and that should fix your issue... It seems to me that the database fields never got updated in your sql. :( I havent had anyone with this issue besides u. Please wait.. :)

gspot
04-17-2005, 07:31 PM
OK everyone - the new release is ready for download version 2.3 just released today. Please download and let me know what you think. All errors should be fixed now, but if anyone finds any errors, please post them a.s.a.p and I will do my best to resolve them. Please enjoy, and post any comments or suggestions that you all may have.
:)

gspot
04-17-2005, 09:51 PM
If you had any issues doing the upgrade...

I have fixed the installer as of 3:51 PST on April 17, 2005.

venomx
04-17-2005, 10:07 PM
I dont think I had any problems.. What was wrong?

gspot
04-17-2005, 10:30 PM
on the referrals.php page did it change the version from 2.2 to version 2.3 all over the page where needed to? I didnt see it updating it correctly, did it work on yours? It also didnt seem to be over-writting the old templates being used with the new templates.

Try to re-install, if it asks you to un-install do it, then run the full install... That will fix everything. Let me know, nothing will get lost or removed....

venomx
04-17-2005, 10:49 PM
Now I got a new error.
http://www.discussionjunction.com/forums/referrals.php
Only me and another admin have refered people and we are both on different pages.

venomx
04-17-2005, 10:50 PM
NM fixed by changing that in the admin :)

gspot
04-17-2005, 10:57 PM
venomx - what do u think about this new release?

venomx
04-17-2005, 11:15 PM
Looks good :)

T3MEDIA
04-17-2005, 11:22 PM
venomx - what do u think about this new release?What is new about it g?

gspot
04-17-2005, 11:32 PM
There are many code fixes in it as well as many options for the admins to control what they want their members to see and not see. Such as:

1) Another pagination menu at the bottom of the results
2) total number of referrals since joined
3) And a few more options.

I highly suggest upgrading to this new version, it will enhance your referral statistics to their optimal performance. Its a release that has been needed for sometime now. If you guys have any other suggestions or options that should be added, please suggest them now for the next release in the future.. :)

007
04-18-2005, 12:55 AM
Hey does this reset the user's actual referral count shown in their profile if you start a new promotion? Or is there a seperate field?

Also, how hard would it be to add conditionals to the referral number? I want it to only show referrals if they have X posts.

Thanks!

~007

venomx
04-18-2005, 01:00 AM
Hey does this reset the user's actual referral count shown in their profile if you start a new promotion? Or is there a seperate field?

Also, how hard would it be to add conditionals to the referral number? I want it to only show referrals if they have X posts.

Thanks!

~007

Not sure about the first part but the second one is in there. you can set it to only show the refs when the refs hit X posts.

007
04-18-2005, 01:04 AM
Cool. I'm just confused when he says

"Admin ability to reset all referrals to zero (for referral competitions, etc..)"

That's good, but I want to know if the real number is still displayed in profiles and such. I am working on a mod for uShop that pays you $ when your referrals post, and I would hate for people to lose their referrals. :)

Otherwise I will install this ASAP. Will be very nice to have!

gspot
04-18-2005, 03:46 AM
Cool. I'm just confused when he says

"Admin ability to reset all referrals to zero (for referral competitions, etc..)"

That's good, but I want to know if the real number is still displayed in profiles and such. I am working on a mod for uShop that pays you $ when your referrals post, and I would hate for people to lose their referrals. :)

Otherwise I will install this ASAP. Will be very nice to have!

It will reset users referral total forum-wide. So no it wouldnt be available once you reset the referrals, but if you don't need to reset them, then don't. :)

venomx
04-18-2005, 04:21 AM
I thought it kept Total since joining and total since rest?

gspot
04-18-2005, 04:50 AM
I thought it kept Total since joining and total since rest?


Whats the problem that you are having? It should..

venomx
04-18-2005, 04:57 AM
No I have no problems.. :P
You told him it lost the ref when reset...

If it keeps the count then I am guessing it loses the names of the people you refered?
Is that VB wide or just this hack?

gspot
04-18-2005, 05:00 AM
No I have no problems.. :P
You told him it lost the ref when reset...

If it keeps the count then I am guessing it loses the names of the people you refered?
Is that VB wide or just this hack?
I believe vb wide

007
04-18-2005, 05:33 AM
But you wrote it lol! Hmm, I can't use it if it resets vb wide :( :( :(

Jason McConnell
04-19-2005, 09:06 AM
Good idea for a hack, and the install instructions seem simple enough, but I get this error:


Database error in vBulletin 3.0.7:

Invalid SQL: SELECT * FROM referrals
mysql error: Table 'xxxxxxxxx.referrals' doesn't exist

mysql error number: 1146

Date: Tuesday 19th of April 2005 06:03:43 AM
Script: http://www.thefraglimit.com/forum/admincp/referralstats.php?do=referralstatistics
Referer: http://www.thefraglimit.com/forum/admincp/index.php?do=nav
Username: ICeMaN
IP Address:


Did I miss a database query or something?

gspot
04-19-2005, 01:38 PM
Good idea for a hack, and the install instructions seem simple enough, but I get this error:



Did I miss a database query or something?
Make sure you started with a new installation and not an upgrade. Run the install again even if it asks you to perform an uninstall. Then let me know what you get.

Jason McConnell
04-20-2005, 08:56 AM
Make sure you started with a new installation and not an upgrade. Run the install again even if it asks you to perform an uninstall. Then let me know what you get.
OK I went back thru, uninstalled and reinstalled, and now it works fine... just as long as I'm using my site's default style. Any other style loaded and I get a blank referrals.php page.

BradM
04-20-2005, 04:35 PM
I am getting a DB crash on my forum. http://www.tgpelite.com/board/referrals.php
It worked fine, then randomly it crashed?

BradM
04-20-2005, 04:40 PM
I get this error:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT COUNT(distinct referrerid) AS ttl FROM user
WHERE referrerid > 0 AND usergroupid NOT IN id:6
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'id:6' at line 2

mysql error number: 1064

I apologise if I am an idiot. LOL

gspot
04-21-2005, 04:16 AM
I get this error:



Database error in vBulletin 3.0.3:

Invalid SQL: SELECT COUNT(distinct referrerid) AS ttl FROM user
WHERE referrerid > 0 AND usergroupid NOT IN id:6
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'id:6' at line 2

mysql error number: 1064



I apologise if I am an idiot. LOL
on the referral statistics configuration in the admincp you dont type in (id:6) it would be just the (6) that will fix your problem. :)

brianstevz
04-24-2005, 12:08 AM
If you will wait for me one week, I will release the new version and that should fix your issue... It seems to me that the database fields never got updated in your sql. :( I havent had anyone with this issue besides u. Please wait.. :)

Mine still doesn't work. Any ideas?

gspot
04-24-2005, 11:49 PM
Mine still doesn't work. Any ideas?
I can try to help you - can you post an image of whay your mysql table for referrals looks like? If not, then I need to gain access somehow or someway in order to see this structure.

artonex
04-28-2005, 02:10 PM
just installed this over at my forums :)

womensden
04-28-2005, 03:51 PM
I'm having a problem.

My referral page isn't showing most of my images. My background is missing, as well as other things. It seems anything that was in there without the entire link isn't showing properly. Even the links aren't going to the correct places.

http://www.womensden.com/forums/referrals.php/

gspot
04-28-2005, 07:21 PM
I'm having a problem.

My referral page isn't showing most of my images. My background is missing, as well as other things. It seems anything that was in there without the entire link isn't showing properly. Even the links aren't going to the correct places.

http://www.womensden.com/forums/referrals.php/
You are having this problem do to adding your own personal images not correctly in the navigation bar. Have you installed any other hacks? Also when you add your own images into the navbar make sure you type in their absolute paths example: http://www.test.com/header.gif

No one else has ever had this issue so I believe this is the reason and the problem that you are having. :)

womensden
04-28-2005, 08:06 PM
so where can I edit those image paths?

Also, the links are screwed up. What would that have to do with the way my images are ?

gspot
04-28-2005, 11:18 PM
so where can I edit those image paths?

Also, the links are screwed up. What would that have to do with the way my images are ?
you need to edit your navbit template in the admincp and point your images to their absolute paths like i explained above. The links need to be updated in the footer template.

Also make sure that the referrals.php is grabing your global.php file correctly. To do this check the path in the referrals.php coding if you have moved the global.php file to a different location.

gspot
04-29-2005, 12:46 AM
I know the number is changed yet to 2.4, but here is a preview of the next version to be released soon. :) If anyone has any other addons they would like included in this hack please let me know. WAITING TO HEAR FROM ALL OF YOU :)

womensden
04-29-2005, 06:48 PM
ok, so I took out the "/" at the end of the link that I added to the bottom of my site and it worked. WTF? The first page was the only page that was screwed up.

I copied and pasted what was in the directions.

gspot
04-30-2005, 12:08 AM
ok, so I took out the "/" at the end of the link that I added to the bottom of my site and it worked. WTF? The first page was the only page that was screwed up.

I copied and pasted what was in the directions.
looking at your coding it seems that the header image for your website is trying to grab :

http://www.womensden.com/forums/referrals.php/images/custom/portal2.jpg

In which it should be getting:

http://www.womensden.com/forums/images/custom/portal2.jpg

This is why im lead to believe its not getting your global.php file or their is an error in your header & navbit templates.

Sen
05-11-2005, 12:22 AM
Hmm, this is weird.

I've installed the hack following the instructions carefully. At first I got a blank page, so I skimmed through the thread and figured it was another problem. I switched to the default skin and lo and behold, the referrals page works. However, trying to view the page with any of the other skins installed, the page is blank.

I'm not sure what the problem is really =/ I always change the templates for all the skins at the same time when installing a hack.

http://www.darkfortears.com/ggf

gspot
05-11-2005, 02:10 AM
Hmm, this is weird.

I've installed the hack following the instructions carefully. At first I got a blank page, so I skimmed through the thread and figured it was another problem. I switched to the default skin and lo and behold, the referrals page works. However, trying to view the page with any of the other skins installed, the page is blank.

I'm not sure what the problem is really =/ I always change the templates for all the skins at the same time when installing a hack.

http://www.darkfortears.com/ggf
I have researched this issue and the answer to your question is that 99% of hacks wont work under different skins unless they are setup as a child forum under the default. This is just the way vbulletin works :)

DJDarknez
05-11-2005, 02:29 AM
installed and works good!

/me clickeys install

CrimsonGT
05-11-2005, 06:24 AM
Would it be possible to set it up so I can tell how many referrals someone has have actually paid for the subscription? I have registered members and platinum members. It would be nice if I could tell how many referrals of theres are platinum (so I could offer like a 10% profit for each member they get to purchase an account)

Sen
05-11-2005, 10:43 AM
I have researched this issue and the answer to your question is that 99% of hacks wont work under different skins unless they are setup as a child forum under the default. This is just the way vbulletin works :)

Ah, I see.
Thanks for the help.

:)

gspot
05-11-2005, 12:29 PM
Would it be possible to set it up so I can tell how many referrals someone has have actually paid for the subscription? I have registered members and platinum members. It would be nice if I could tell how many referrals of theres are platinum (so I could offer like a 10% profit for each member they get to purchase an account)

Yes, this is already integrated. You need to find out what usergroupid the paid subscription is and set this up in the referral statistics configuration area, located in the admincp.

mcyates
06-02-2005, 08:36 AM
I get this error when clicking on "save settings" in the Configure Referral Statistics on the Admincp


Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE referrals SET resultnumber='10', limit1='', limit2='', limit3='', limit4='1', limit5='1', limit6='1'
mysql error: Unknown column 'resultnumber' in 'field list'

mysql error number: 1054

Date: Thursday 02nd of June 2005 09:33:28 AM
Script: http://www.myfootballforum.com/admincp/referralstats.php
Referer: http://www.myfootballforum.com/admincp/referralstats.php
Username: boro_boy
IP Address: 62.254.64.19

Marco van Herwaarden
06-02-2005, 12:46 PM
Did you run the installer?

mcyates
06-02-2005, 01:57 PM
Yes, it obviously didn't add a table or something.

artonex
06-05-2005, 08:33 AM
im gettin this error, how can i fix ?

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT COUNT(referrerid) as getusers FROM user WHERE referrerid > 0 AND usergroupid NOT IN 2
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '2' at line 1

mysql error number: 1064

Date: Sunday 05th of June 2005 05:33:06 AM
Script: http://talkweed.com/forums/admincp/referralstats.php?do=referralstatistics
Referer: http://talkweed.com/forums/admincp/index.php?do=nav
Username: dexstar
IP Address: xx.xx.xx.xx

artonex
06-06-2005, 08:02 PM
anyone???

bobang
06-10-2005, 12:17 AM
Everything's working well, but is there any way to replace the list of referrals with Homepage URL? I tried $userinfo[homepage] but it's not working.

Can anyone help me out here? Thanks.

MorrisMcD
06-10-2005, 12:59 AM
Works great for me.. Thx

MrTchMan
06-14-2005, 05:57 AM
When I am looking at the Referral statistics page and try to go to my AdminCP from the footer It goes to this
http://www.justsprint.com/forum/referrals.php/admincp/index.php?

It puts the referrals.php in there

Any ideas

Sorry I am new to this

gspot
06-15-2005, 02:31 AM
yes, you edited your footer incorrectly, check the instructions again and follow them step by step for editing your footer template.

MrTchMan
06-15-2005, 05:54 AM
yes, you edited your footer incorrectly, check the instructions again and follow them step by step for editing your footer template.


For some reason it works now...Who knows

Chris Etc
06-25-2005, 08:21 AM
I've installed, uninstalled, and back all over again but I still have a blank page when I click on referral statistics in the admincp. I never saw any configuration option either though the referrals are showing up on my forums. Any idea why inside the admnincp I keep getting a blank page when clicking referral statistics?

MajorFm.com
06-27-2005, 07:57 PM
one of my fav hacks...

...I would like to set this so that after a certain number of referral's, the users usergroup automatically changes to a chosen one by the admin... possible?

MustangLisa
07-08-2005, 05:58 PM
Works perfectly, thanks! This is just what I was looking for!!

Chris Etc
07-10-2005, 04:21 PM
Bueller!?! I'm still having the blank page issue. Can anyone help? Or at the least help me with the pagination of the referrals so I can put more than one username per page!?

Thug
07-10-2005, 07:10 PM
installed easy thanx

1problem is i have over 350 referals and its showing all the usernames i referd how do i stop that

akanevsky
07-10-2005, 07:17 PM
Hey ho matey, excellent hack!
I have been waiting for this since 2.3.3 times... Didn't have time to write it myself tho. I think it would be cool if you make those stats public as well :)

* akanevsky click install

Caveman2k2
07-12-2005, 03:52 PM
/me clicks Install

Very nice hack. Thanks for the great work and support!

bigdog829
07-14-2005, 07:29 PM
<font color="green">*bigdog829 clicks install</font>

Very nice thanks !

vakvak
07-17-2005, 05:57 PM
thanks....

csidlernet
07-18-2005, 01:39 AM
totally sweet just what i been looking for

vakvak
07-19-2005, 01:05 AM
hi
where to fall into error?
http://www.teknikzone.com/"referrals.php/"

gspot
07-19-2005, 01:25 AM
hi
where to fall into error?


so whats the problem??

disquiet
07-19-2005, 04:53 AM
gspot...great hack... I already clicked install...

But I have a question... I use the vBadvanced CMPS, and the footer link from there gives me a page not found error when I click the Referals Stats link...

What can I do to fix this?

*EDIT*
Never mind...I figured it out...
I had to hardcode the full url to the referals.php in the footer template.
Thanks anyway...still a great hack...:D
*/EDIT*

gspot
07-19-2005, 06:14 AM
Please click install to all of u that install my hack please. I'm currently working on the latest soon to be released referral statistics version 2.4... This will really have some great information and many useful features throughout any referral competition, and plain old stats. :)

vakvak
07-19-2005, 09:08 AM
so whats the problem??

http://www.teknikzone.com/"referrals.php/"
my forum www.teknikzone.com

Referral Statistics (http://www.teknikzone.com/"referrals.php/")

page error

http://www.teknikzone.com/referrals.php

page not

help me

vakvak
07-19-2005, 09:58 AM
<a href=\"referrals.php\">Referral Statistics</a> -

edit
<a href="referrals.php">Referral Statistics</a> -

bu where to fall into error. page not find

vakvak
07-19-2005, 11:18 AM
Parse error: parse error, unexpected T_VARIABLE in /home2/teknikzo/public_html/includes/functions_online.php on line

1307
case 'referrals.php'
$userinfo['activity'] = 'referrals';
break;

help me

Marco van Herwaarden
07-19-2005, 11:40 AM
case 'referrals.php'
$userinfo['activity'] = 'referrals';
break;
You are missing a semi-colon at the end of the first line:
case 'referrals.php':
$userinfo['activity'] = 'referrals';
break;

vakvak
07-19-2005, 11:53 AM
MarcoH64 very thank you . but http://www.teknikzone.com/referrals.php page not ?

gspot
07-19-2005, 01:36 PM
check the link you added in the footer template. Something was not done properly there. :( Sorry..

vakvak
07-19-2005, 01:57 PM
<a href="https://vborg.vbsupport.ru/attachment.php?attachmentid=25786" target="_blank">https://vborg.vbsupport.ru/attac...chmentid=25786</a> setting to save but not page

vakvak
07-20-2005, 07:50 PM
Database error in vBulletin 3.0.7:

Invalid SQL: SELECT * FROM referrals
mysql error: Table 'teknikzo_teknikzone.referrals' doesn't exist

mysql error number: 1146

Database error help me

vakvak
07-22-2005, 12:47 AM
the problem i find auto setup problem refer and referbit not setup. manual templati setup.

no problem

Gutspiller
08-04-2005, 02:38 PM
You need to use the admincp var for those that use different admin and modcp directories. The hack says to upload them, but that's because it's looking in the wrong directory. FYI

ALso your link code to insert in the footer is incorrect.

It would also be nice if somebody could tell me how to get the referal pages to use the full screen and not some rinky dinky small middle column of the page.

Cash4Cookies
08-05-2005, 12:11 AM
Is there a way to make to so refferals only count if the member reffered has 3 posts? Thanks.

Chris@TSE
08-05-2005, 01:34 AM
I installed this mod and now get a blank admincp screen. the options are on the left, but nothing in the body. blank.

Chris@TSE
08-05-2005, 01:38 AM
I uninstalled it now and STILL have a blank admincp screen. this is not good.... anyone have the same issue or care to tell me how I go about fixing it?

Chris@TSE
08-05-2005, 02:42 AM
okay, every portion of the hack has been removed. now when i try to load acp nothing is in the body, the links load to the side. if i right click and open them in another window they will open but if i try to use it as normal, click and option, and have it load in the acp body like it is supposed too IE reports the following error:

Line: 32
Char: 3
Error: 'parent.frames.main' is null or not an object
Code: 0
URL: http://forumdirectory/admincpdirectory/index.php?do=nav

when i load the admincp thru firefox i get no errors, but when you click on the links from the left it pops up new windows.... instead of loading it in the main page.

i have not installed any other hacks today. this is the only hack that could have caused this, it was working fine before.

in fact i still have a admincp window open from BEFORE the hack that is working correctly that I am afraid to close! LOL

PLEASE help me fix this, it is quite disturbing.

MajorFm.com
08-17-2005, 12:22 PM
I would like to set this so when a user reaches a certain amount of referral's, it changes their usergroup as a reward, can this be done?

bobang
08-17-2005, 10:12 PM
Hello Again,
I asked this a while ago, but no one was able to help me out. I'm posting this question again to see if the creator can help me out on this.

My referral stats is located at http://www.freeadvertisingboard.com/referrals.php
It's working fine, but I want to make it show the user's "Homepage URL" instead of the list of people they've referred. I tried couple of codes, but they don't work.

Can anyone help me on this?

MajorFm.com
08-28-2005, 12:02 PM
I would like to set this so when a user reaches a certain amount of referral's, it changes their usergroup as a reward, can this be done?anyone?

forsakenseye
08-29-2005, 07:30 AM
Very nice...works great for me...Thanks

Jafo232
09-09-2005, 02:02 AM
Any way to incorporate the referrals into the postbit template?

IceBurn3000
09-12-2005, 05:23 AM
I know this is a vBulletin v3.0 hack, but any chance of it being ported to vBulletin 3.5?

Brinnie
09-13-2005, 07:57 AM
I know this is a vBulletin v3.0 hack, but any chance of it being ported to vBulletin 3.5?

Seconded.

Please convert it.
I'll even give you access to a test board.

MillerLight
09-15-2005, 01:50 AM
Where would you change the value(s) within the auto-installer for an admincp directory that was altered during initial installation of VB?

Rather than using the default AdminCP it was changed to AdminCP****

Does the Autoinstaller actually modify all variables needed? Been reading the section and appears some have had issues with Table Pre-fixes, etc etc.

Thanks

sptsi
09-16-2005, 01:20 AM
Is there a way for the user to pull their own individual stats in their usercp?

CSS59
10-01-2005, 05:00 AM
Thank you! Any way to put the referral link in the referrals.php file? I am not sure where to add it w/o messing up the code

EDIT: n/m i did it :)

cheech4487
10-02-2005, 05:27 PM
Okay I have gone over this several hundred times, and I am getting a "blank" screen. Any suggestions what to look for?

cheech4487
10-02-2005, 07:14 PM
Okay I found it. The link in the footer was coded incorrectly. Nice addition!

a123
10-04-2005, 10:31 PM
how to put a link (in profile within each post) to show how many referrals each user referred and who they are? Thanks. :)

wolfyman
10-08-2005, 03:11 PM
is this the one to use for 3.5 or is there another one?

Snake
10-17-2005, 12:11 PM
Could you please update this hack for 3.5.0 Gold? :)

wolfyman
10-17-2005, 12:23 PM
Could you please update this hack for 3.5.0 Gold? :)

yes yes yes please!

Leah
10-21-2005, 05:41 PM
Could you please update this hack for 3.5.0 Gold? :)

Please? http://www.frustrertefruer.net/forum/images/smilies/prettyplease.gif

Snake
10-22-2005, 11:58 AM
Double please? :rolleyes:

Lea Verou
11-16-2005, 03:36 PM
I am currently developing a Referral Statistics Hack for 3.5 but it is quite different from this one (better in some things but lacks some features of this that I didn't consider very useful).
Stay tuned ;)

Snake
11-16-2005, 06:27 PM
That's good news. I can't wait for it. :)

Lea Verou
11-17-2005, 12:05 PM
<a href="https://vborg.vbsupport.ru/showthread.php?p=823589" target="_blank">https://vborg.vbsupport.ru/showthread.php?p=823589</a>

gspot
11-17-2005, 04:05 PM
MICHELLE -- If you didnt know... U need to ask the original maker of this hack in order to re-make it... Also you have not given any credit to me as well... I DO NOT APPRECIATE YOU PERFORMING THESE ACTIONS WITHOUT ASKING..... :(

Lea Verou
11-17-2005, 06:20 PM
I did not remake your hack. It's totally different, see by yourself. The only similarity is the topic of it.
In fact I had STARTED making my hack when I found out that yours existed.
So please be certain about your accusations before you accuse somebody.

Snake
11-17-2005, 09:12 PM
*giggles*

Lea Verou
11-17-2005, 09:22 PM
*giggles*

May I ask why?

Snake
11-17-2005, 10:48 PM
Sorry but I find it pretty funny. :D

Lea Verou
11-17-2005, 10:49 PM
Sorry but I find it pretty funny. :D

This is obvious, I was just asking what in particular you thought was funny ;) :)

gspot
11-18-2005, 03:11 AM
My accusations are correct... Sorry if you think you are not coping someone elses idea.. But, YOU ARE... So i suggest that you figure out how if there is anyway to give credit when credit is due, or else your hack will be removed... And I will contact the right people to make sure of it!!!!

THANKS FOR YOUR UNDERSTANDING..>>...


LISTED IN WWW.VBULLETIN.ORG SITE RULES:
* Before releasing a modification, search the forum to make sure the same idea was not released already. If you are releasing a hack that is a variation of an existing hack, don't forget to give credit where credit is due.

Boofo
11-18-2005, 04:34 AM
Sorry, but copying an idea is totally different than copying actual code. Have you look at her code to see if she is using any of your code from your hack? If she is not, then she is not in viloation, per say.

Michelle, a simple credit for the idea would solve everything, don't you think? ;)

Lea Verou
11-18-2005, 10:07 AM
Sorry, but copying an idea is totally different than copying actual code. Have you look at her code to see if she is using any of your code from your hack? If she is not, then she is not in viloation, per say.

Michelle, a simple credit for the idea would solve everything, don't you think? ;)

Boofo, credit where it's due. I swear I had started making my hack when I saw his, and I saw his cause a friend of mine told me when I told him what I am making! Given these circumstances I don't want to give him a credit he does not deserve. I give credit to people that even helped with the templates a bit, like Conqsoft, but he hasn't helped in anything nor given me the idea so there is no reason to give him credit.

About the code, see for yourselves, I paid a look to his and it's totally different, in fact I don't understand his code much. Mine is so messy that it is vry unlikely to be similar with anything :p

Lea Verou
11-18-2005, 10:13 AM
My accusations are correct... Sorry if you think you are not coping someone elses idea.. But, YOU ARE... So i suggest that you figure out how if there is anyway to give credit when credit is due, or else your hack will be removed... And I will contact the right people to make sure of it!!!!

THANKS FOR YOUR UNDERSTANDING..>>...


LISTED IN WWW.VBULLETIN.ORG (http://WWW.VBULLETIN.ORG) SITE RULES:
* Before releasing a modification, search the forum to make sure the same idea was not released already. If you are releasing a hack that is a variation of an existing hack, don't forget to give credit where credit is due.

I did not know of your hack when I had the idea so I don't want to give credit where it's NOT due. You are just jealous of my hack and want to find ways to get it out of here, but if you complain, you know they will actually look at the two hacks and they will see if had stealed anything from yours.
I have no fear cause I know I did nothing wrong. Justice will come eventually, it always does. ;)

Snake
11-18-2005, 12:59 PM
Yeah guys, Michelle is totally right. She has a point here.

Lea Verou
11-18-2005, 01:02 PM
Yeah guys, Michelle is totally right. She has a point here.

Thanks Aftermath :)

In fact I initially got my idea from a post in modifcation requests by ExtProof top x referrers or sth like that. If you see my posts there I really needed it, so when I started learning php I made it, simple as that. ;)

gspot
11-19-2005, 03:39 AM
MICHELLE

Its people like you that make me not want to do free stuff like this on any software.. You dont even see that credit is due, because you simply run with the idea that was already created and you find it as being your own.. STFU.. I'm done with vbulletin... I think CREDIT IS DUE.... SO go steal some other hacks and call them yours too... I GUESS THIS IS THE ONLY WAY PEOPLE WILL CALL YOU A CODER!!!!!

gregwatson
11-19-2005, 03:48 AM
I thought of a great idea ... I thought it would be really neat to breath ... then someone told me that someone else already thought of it and had written instructions about how they thought the best way to breath was ... they thought you should breath in deeply in a systematic regular pattern...

Of course ... I'm not quite that anal retentive ... so when I thought about breathing, I was only concerned about the fact that is is a lot more pleasureable to breath everyonce in awhile rather than turn purple trying to hold my breath ... and I like to breath small breaths and then just every once in awhile take a deep breath, hold it, then exhale slowly ...

But ... then I was told that I should not be allowed to take a breath, because someone else had already thought of it ...

Somehow ... I just don't think I'm going to hold my breath ...

Boofo
11-19-2005, 03:56 AM
MICHELLE

Its people like you that make me not want to do free stuff like this on any software.. You dont even see that credit is due, because you simply run with the idea that was already created and you find it as being your own.. STFU.. I'm done with vbulletin... I think CREDIT IS DUE.... SO go steal some other hacks and call them yours too... I GUESS THIS IS THE ONLY WAY PEOPLE WILL CALL YOU A CODER!!!!!

Whyn don't you do your referral hack for 3.5 and release it then? ;)

Lea Verou
11-19-2005, 08:22 AM
Oh well. I rest my case. :rolleyes:
Whoever is in doubt, compare the 2 hacks. ;)
gregwatson: LOL!

b00k
12-20-2005, 01:11 PM
great hack. disaster to install.

wolfyman
12-20-2005, 01:20 PM
Anything like this for 3.5? I miss it. :D

Lea Verou
12-20-2005, 01:27 PM
Anything like this for 3.5? I miss it. :D

There are two! One is mine and the other is Psionic Vision's ;)

CSS59
02-26-2006, 07:49 AM
There are two! One is mine and the other is Psionic Vision's ;)


Who?s will upgrade this one? I used this on my 3.0 VB and now I have to upgrade it for my 3.5 installation?

Lea Verou
02-26-2006, 04:04 PM
None, they are different hacks.

Gastongr
03-14-2006, 03:06 PM
Does vB 3.0.1 support this hack?

Lea Verou
03-14-2006, 03:13 PM
Instead of asking this in every hack why don't you upgrade your board? What are you wating for? A hacking attempt?

Gastongr
03-15-2006, 12:33 AM
Instead of asking this in every hack why don't you upgrade your board? What are you wating for? A hacking attempt?
It's the second time i ask :surprised:
My membership has expired, i can't download updates. And 30 dollars is a lot of money for me, i'm not in the best position.
I guess i'll have to try installing this.

MorrisMcD
03-16-2006, 12:34 AM
It's the second time i ask :surprised:
My membership has expired, i can't download updates. And 30 dollars is a lot of money for me, i'm not in the best position.
I guess i'll have to try installing this.

I wouldnt suggest trying to install anything designed for 3.5 on your board... And ignore rude people.. This is a forum and its for asking questions.. Yer in the right to ask

adonfun
10-06-2006, 07:34 PM
Great hack.. but not sure if it works with 3.6.2. Doe you or anyone else know that?

Any chance to get it 3.6.2 compatible one day?

dominick32
10-16-2006, 02:44 PM
This hack is excellent. Although I cant seem to get it configured, and I cant get the actual referrals.php page to show up. This is the error I get in the AdminCP Statistics configuration:

Database error in vBulletin 3.0.3:

Invalid SQL: UPDATE referrals SET resultnumber='20', limit1='', limit2='', limit3='', limit4='1', limit5='0', limit6='1'
mysql error: Unknown column 'resultnumber' in 'field list'

mysql error number: 1054

Date: Monday 16th of October 2006 08:42:24 AM
Script: http://www.svtsnake.com/forum/admincp/referralstats.php
Referer: http://www.svtsnake.com/forum/admincp/referralstats.php

And I get this error in the referral.php:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT COUNT(*) AS referrals, user.username, user.userid, user.totalreferrals FROM user AS users INNER JOIN user AS user ON (users.referrerid = user.userid)
WHERE users.referrerid > 0

GROUP BY users.referrerid
ORDER BY referrals DESC
LIMIT 0,
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6

mysql error number: 1064

Date: Monday 16th of October 2006 08:43:55 AM
Script: http://www.svtsnake.com/forum/referrals.php


Any help would be greatly appreciated as I really want this to get added to my forum. My website is www.svtsnake.com/forum/

Thanks in advance.