vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Refer Friends! (https://vborg.vbsupport.ru/showthread.php?t=40355)

Unknown553 08-04-2002 07:31 PM

Great! Glad you like it. :D

Destee 08-04-2002 11:57 PM

Unknown ... can you tell me how to include a bcc of each referal to myself? I'd like to monitor it since the fields can be edited and used for any purpose.

Thanks,

Destee

Unknown553 08-05-2002 04:33 AM

Edited...Fixed code in my next reply.

Destee 08-05-2002 05:46 AM

Thanks Unknown ... I rec'd the following:

Parse error: parse error in ... /forums/refer_send.php on line 25

Unknown553 08-05-2002 09:05 PM

I'm sorry, scrap that whole idea.

Just change this

PHP Code:

// if error free, then send mail
mail($to,$title,$message,"From: $bbuserinfo[email] ($name)"); 

to this

PHP Code:

// if error free, then send mail
mail($to,$title,$message,"From: $bbuserinfo[email] ($name)\r\n"."Bcc: $webmasteremail"); 


Destee 08-05-2002 09:21 PM

Unknown ... you are Da Man !!! ... if you're male ... hehehe :)

Thank you very much !!! This worked !!!

Simply Loving Your Hack!

Destee

Unknown553 08-06-2002 01:51 AM

Great, glad you like it! :)

And yes, I am a male. ;)

Destee 08-08-2002 09:19 AM

Hi Unknown ... it's me again ... :) ... All of my referals are including my userid (1) and username in the email body ... and not the actual user's id/name ... I tested it with a few other usernames/id's ... can you tell me what code I need to change to correct this (so that it picks up the actual user's id)?

FYI ... this is what I have in refer.php ...

PHP Code:

$bburl/index.php?s=&referrerid=$bbuserinfo[userid]
\
n\nThanks, and I hope to see you soon.
\
n\n-$bbuserinfo[username]"; 

Thanks,

Destee

ps ... I promise, this will probably be the last time I bother you ... for this particular hack ... :)

Unknown553 08-08-2002 10:34 PM

Make sure you have require('./global.php'); at the top of the file. Also maybe try changing $bbuserinfo[userid] to $bbuserinfo['userid'].

Destee 08-08-2002 11:26 PM

Unknown ... thank you for responding. I'm sure folk like me make folk like you think twice about sharing a hack.

The reason I was experiencing the above was because I had hard coded the text in the refer template (including my userid and everything). My Bad.

I promise ... no more questions from me ... and who knows, now that you've spent countless moments with me regarding this hack ... I may be able to help someone else. :)

All is well.

Destee

Unknown553 08-08-2002 11:39 PM

No problem. I am aware that support comes along with releasing hacks. Just glad it finally works 100% for you. :)

snoopy2 10-30-2002 02:12 AM

works great, thx!

esawdust 11-09-2002 04:13 PM

Great Hack!

One Question.. how would I go about adding the # of referals to part of a users stats within their posts?

For instance

adding "Referrals: "

under the registered date, location, and posts?

I think this would make it a bit more "competitive" and enitice people to refer more.

Thanks

Greg

NuclioN 12-02-2002 10:16 AM

huh? Can't open firefly's referrallist page.

Visionray 12-03-2002 03:37 PM

this is a great hack! I hope to get some new members this way by offering a prize to the first person to refer 10 members. Thanks!

Red Blaze 02-07-2003 03:37 PM

Excellent, very nice hack, without flaw. :)

Marulatree 03-26-2003 03:18 PM

Quote:

06-29-02 at 07:35 PM Mr H said this in Post #15
I just installed this. Now where do I find the "refer friends" link on my page? I can't see it anywhere....

I think you have to create your own link in the navbar. e.g. www.yoursite.com/refer.php.

clicks install! nice one M8!

wolfe 03-29-2003 08:36 PM

its not sending emails

The Piper 04-24-2003 05:03 AM

Is there any way to allow non members to also refer friends?

Thanks a lot!

Marulatree 05-27-2003 03:07 PM

All of my members still get the error page when clicking on refer a friend link. Any ideas. I have installed version 2.0

Quote:

08-04-02 at 08:19 PM Unknown553 said this in Post #39
Ok, try installing this new version 2.0. Erwin found out the problem and this should fix it. Upload the two new files (overwrite refer.php if you still have it uploaded) and copy/paste the new "refer" template. The other two templates are unchanged. Hope it works!

Oblivion Knight 05-28-2003 08:42 AM

Thankyou Unknown553,
Installation with the original zip seems to be running perfectly ok, though currently it has only been tested with staff and not members. I'm sure I'll soon get told if it isn't working correctly ;)

Great modification, and finally an incentive to get my members referring their friends (I have custom status' turned off which my members HATE, the idea of winning one will cause a frenzy).

[high]* Oblivion Knight clicks install.[/high]

Evil Chris 05-28-2003 01:57 PM

Installed on bornamerican.com

Many thanks. Cool hack.

TMM 06-10-2003 10:11 AM

Looks great, will it work on 2.2.9?

gmarik 06-10-2003 12:09 PM

Seems quite useless to me. Does people use the option?

TMM 06-10-2003 04:52 PM

Seems to work well on my 2.2.9...

BTW - any way of adding a disclaimer on the bottom of the e-mail message; stating that the message is sent by MEMBERNAME and replies should be sent to MEMBEREMAIL, and abuse should be reported to WEBMASTEREMAIL?

I've added this manually, however users will be able to alter or completely remove this... In the similar function "email this page", this additional disclaimer text cannot be altered, and is not shown to the user prior to sending the message.

Regards,

TMM

gspot 06-16-2003 11:05 PM

Ok, I have a problem, when someone refers someone else, where can you tell that each member has sent how many referals? Or is this counted when someone actually signs-up to the board from the link in the referal email? I can't find it anywhere where the referals are actually counted and displayed per user? Does this script actually do this?

dstruct2k 06-16-2003 11:34 PM

It only counts the number of people that sign up and say $username referred me... It could keep track of how many referrals were sent with a bit of editing. It wouldn't be too hard to do, it would just require a query to be run.

EDIT -- I decided to make this. I'll be done right away, just testing.

gspot 06-17-2003 12:56 AM

Man, that would be awesome.. Thanks.

dstruct2k 06-17-2003 11:27 AM

Damnit.... Something's wrong with my code. Anyone willing to take a look at it, here it is.

For some reason when I complete the refer process, the databas has 30 total refers in it, no matter how many have been completed.

Dean C 06-17-2003 11:40 AM

Try this :)

dstruct2k 06-17-2003 09:17 PM

Addon has been completed, tested, and now works! Someone send me e-mails saying that the $bbuserinfo var holds all the information in the User table for the current user.... I tried adding another un-needed query... :p

Anyways, here's the addon, just replace the PHP and the template, and run this SQL query:[sql]ALTER TABLE `user` ADD `referrals_sent` SMALLINT UNSIGNED DEFAULT '0' NOT NULL ;[/sql]


Once this addon is installed, you can show the current number of sent referrals on any vB page with $bbuserinfo[referrals_sent]

Enjoy!

dstruct2k 06-17-2003 09:22 PM

Oh, and Mist, you might wanna get rid of that attachment too.... I think it's kinda screwed on the "Sending Mail" line... :smoke:

Marulatree 07-15-2003 09:21 AM

My members are still having errors - see quote below:

Quote:

05-27-03 at 05:07 PM Marulatree said this in Post #60
All of my members still get the error page when clicking on refer a friend link. Any ideas. I have installed version 2.0

gspot 01-12-2004 10:31 PM

This changed script only counts the number of actual verified/registered referred members for your users. It will also only show registered and verified referred members in the refer page (status page). You can edit it how you like, but I'm new to php coding, so please reply with any comments.

I got tired of it counting referred members that wouldn't actually be registered and verified... This fixed that.

Also thanks to unixman - all the referred members are now clickable to their profile.

Attached are the new revised files.

armani1072 02-03-2004 11:46 AM

thank you works great !!!

glo 03-07-2004 08:49 AM

Looks great!

does this work with 2.3.0?

gspot 03-07-2004 04:01 PM

Yes... It works great for version, 2.3.0. I ran it on mine for over 4 months before stepping up to version 3

Good luck hope it helps you. :)

glo 03-07-2004 07:34 PM

Thanks for the confirmation Gspot!

Since moving to vb3, have you found many of the hacks you had on your vb2 board were automaticallly built into vb3???

Or are you running it with much less hacks?

gspot 03-08-2004 03:43 AM

actually, I'm not installing very many hacks in my vb3 until the gold is released. There are many hacks that are being upgraded to work in vb3, such as the refer friends hack, but everytime you upgrade, you are required to over-right the files you have hacked, so kind of pointless to me at this time until gold is out..

glo 03-08-2004 03:49 AM

do your members miss any of the old hacks???

I personally only started to hack now, over a year after i got vB, so now the hacks are pretty much rock solid.

Thats my reason for not going to vb3 just yet.


All times are GMT. The time now is 06:12 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
  • Page Generation 0.01300 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete