![]() |
Try this file. I have edited it, make sure that you have all your setting correct in it though. And please let me know if it works for you. :) This is set up to not count users in usergroups 1,3, and 4
|
Quote:
I am very intrested in having this only accept people who refer new users and the people they refer also refers a person. (WAHHHT?) I am giving away on my site $100 to each user that refers 5 people. the only catch is the 5 have to be full members and have to refer 5 themselves. (the last 5 dont have to be full members). of course the next set is 90% near their 100$ All they have to do is make sure their 5 also brings 5. It will start a large boost to the site. In other words you have to bring someone that knows 5 people. (You would need to know 5 people in total like this to win the money) I am willing to make a donation if you can do that for me. |
Excellent mod here! I installed it and then setup a contest where the most referrals in a month earns them an award that goes under their avatar that I setup a basic conditional for. So far this has been very productive, thanks!
|
t3media - sorry man, that would require a lot more hacking for this hack... I dont have the time right now since I opened a new business. :(
Sorry, but thanks for installing. :) |
Quote:
That is good enough for me. |
I think I did everything right but heres what i get
Database error in vBulletin 3.0.3: Invalid SQL: SELECT COUNT(*) AS referrals, user.username, user.userid FROM vb_user AS users LEFT JOIN user AS user ON (users.referrerid = user.userid) WHERE vb_user.vb_userid > 0 GROUP BY users.referrerid ORDER BY referrals DESC LIMIT 10 mysql error: Table 'djjeffa_djjeffaVB.user' doesn't exist mysql error number: 1146 Date: Saturday 01st of January 2005 10:29:39 PM Script: http://www.djjeffa.com/vb/referrals.php Referer: http://www.djjeffa.com/vb/home.php any ideals? |
Hi... Great Hack
/me Clicks Install I would suggest something liek this for a referral promo.. Refer 5 friends and those five refer another 2 each and be eligible to win something as a Prize. We could probably have another few levels of referrals. Besides...each referred person again can be eligible for the prizes based on referrals. And similiarly on those lines. Any help on this ... much Appreciated Also, does this work with Erwin's refer a Friend ? or works as a stand alone hack ?? Thanks |
djeffa - it was a problem in the referrals.php file. ITS BEEN FIXED.
|
PurpleCow - Someone else even recommended this addon for my hack, I will start looking into it, but however it may take me a few weaks to release it. Thanks for clicking install :)
|
|
nice mod, but directions need to be improved.
|
Quote:
the only part that i think i could have messed up was this 1) create a new database table CREATE TABLE `referrals` ( `date` TEXT NOT NULL ); cause i had a freind do that cause i didnt really understant it. but i still cant figer it out. |
djjeffa - basically all that says is create a new database table: the
CREATE TABLE `referrals` (`date TEXT NOT NULL ); is the command you would use in phpmyadmin to execute this new table named exactly like it says: referrals. |
Quote:
i get to this : Create new table on database djjeffa_djjeffaVB: Name: Fields: is that where i should be and what do I put for feilds? Name i guss would be referrals ? |
Quote:
This field date needs to have the following settings: TEXT, NOT NULL Thats basically it. You should look into how to run a database query in phpmyadmin somewhere on google. Then all you would have to do is copy and paste the CREATE TABLE script above and click submit. Then it would create the new table and automatically set all the settings up for you. GOOD LUCK :) |
Quote:
Can you reset referrals by user only? |
Quote:
|
There something really unclear about the installation instructions for this MOD. I'm using a table prefix of "vb3_" for my forums. I want to maintain that structure for all forum-related tables, for obvious reasons. The instructions on do not explain how to handle prefixes so I created a "vb3_referrals" table rather than simply a "referrals" table.
Now when I load http://www.bigblueball.com/forums/referrals.php I get the following error: Code:
Invalid SQL: SELECT COUNT(*) AS referrals, user.username, user.userid FROM vb3_user AS users LEFT JOIN user AS user ON (users.referrerid = user.userid) |
gamer - it was a problem in the referrals.php. IT HAS BEEN FIXED
|
Quote:
|
nice utility for users and admins. I have installed it. works p-e-r-f-e-c-t-l-y.
thanks <clicking install> |
hey, i think i spoke too soon hehe...
im getting the following error when i click "referal statistics" link from FORUMSHOME page - Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /hsphere/local/home/vikram/thalforum.com/forums/referrals.php on line 28 and following error when no user is logged in. Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /hsphere/local/home/vikram/thalforum.com/forums/referrals.php on line 28 Unable to add cookies, header already sent. File: N/A Line: 0 =-=-=-=-=-= AND when i click the link from CMPS home I get page cannot be displayed because it is trying to hit the refferal.php in the root directory instead from /forums/refferal.php. any suggestions gspot? others? V |
Quote:
chdir('/hsphere/local/home/vikram/thalforum.com/forums/'); TRY THAT - it should fix your problem. It seems that you didnt have the path setup correctly. Save the file and reupload once you edit it. Then let me know if it works. :) |
thanks gspot.
yeah, i had missed that part. now the URL work perfectly from forumshome and inside the forum. but I stil cud not get it to work from the CMPS footer. has anyone here with CMPS got this working on CMPS main page?? if yes, then please share the info. thanks |
ATTENTION EVERYONE:
The new version of this hack 2.0 will be released by the end of this weekend. It includes the following: 1) Pagination - yes its finally here 2) The ability to delete referrals by a specific member 3) Updated instructions for install - I might even build an installer :) will see... 4) Any wants? Let me know... |
will wait for new version :)
|
Quote:
2. Email addresses to which referrals have been sent (wud be a nice addon) 3. How many refferal sent by individual. :ermm: 4 . :ermm: Refferal this year/month/week howzzat? |
EVERYONE THE NEW RELEASE IS HERE.. :)
LET ME KNOW WHAT YOU THINK :) :):):):):):):):):):) |
Quote:
I will try it. can i run the install on top of my old version of refferal stats or do i have to uninstall first. |
Quote:
|
Got the following error on the auto installation on step 2...
Code:
Database error in vBulletin 3.0.3: Please advise... |
Major - please re-download the package and re-upload all the files again for the upgrade process. I have created an upgrade script in the auto installer. This should take care of your problem. Good Luck. :)
|
Ok, problem. I use table prefixes at my forum. The original version didn't have them, so I added em in manually, but I see this version does. However....there's a problem with one bit of coding in it.
Its this block PHP Code:
Any help? |
Quote:
each user has to refer 5 users. Those five have to refer 5 as well and the orignal user gets paid. can this baby do that yet? its like free ipods for members kinda thing. |
REX - It was an error in the referrals.php page. IT HAS BEEN FIXED.
|
Quote:
|
Quote:
It gives that error because the "LEFT JOIN user AS user ON" part of the code doesn't have a table prefix code on it, or so I've deduced. Here is the error text: PHP Code:
|
Rex - try changing this:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Yes, that fixed it! Thanks a lot!!! :):):)
|
Great hack, but the pagination stuff is not quite working for me:
I have $max_results set to 10 and 1 user with any referrals (new board), however I still get 2 pages? Here is an example: http://www.midwestdive.com/forums/referrals.php James |
All times are GMT. The time now is 02:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|