The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Tell A Friend + Automatic Referral Code
Edited 1-13-01. JavaScript pop version available at: https://vborg.vbsupport.ru/showthrea...838#post212838 The JS version permits you to place the link anywhere you want on your board. This version in this post returns your members to the thread they were reading using the same browser window. Purpose: Permit members to promote your Board via email using their unique Referral code which is automatically inserted. Reward them for x number of referrals Does not require any modifications to source code but does require hacking. Requires 3 custom templates and a renamed and hacked version of sendtofriend.php which I have called referbbtofriend.php 1. Create 3 custom templates which are really a save of your current templates with a new name: sendtofriend saved as referbbtofriend email_sendtofriend saved as email_referbbtofriend redirect_sentemail saved as redirect_referbbsentemail 2. Edit your custom templates. See zip for mine 3. Grab your copy of sendtofriend.php and save it as referbbtofriend.php Edit referbbtofriend.php as follows and place in your forum root: Code:
Change this line < $templatesused = "sendtofriend,email_sendtofriend,redirect_sentemail"; --- To this line > $templatesused = "referbbtofriend,email_referbbtofriend,redirect_referbbsentemail"; Change this line < eval("dooutput(\"".gettemplate("sendtofriend")."\");"); --- To This line > eval("dooutput(\"".gettemplate("referbbtofriend")."\");"); Change this line < eval("\$message = \"".gettemplate("email_sendtofriend",1,0)."\";"); --- To This line > eval("\$message = \"".gettemplate("email_referbbtofriend",1,0)."\";"); Change this line < eval("standardredirect(\"".gettemplate("redirect_sentemail")."\",\"showthread.php?s=$session[sessionhash]&threadid=".intval($threadid)."\");"); --- To This line > eval("standardredirect(\"".gettemplate("redirect_referbbsentemail")."\",\"showthread.php?s=$session[sessionhash]&threadid=".intval($threadid)."\");"); Code:
<a href="referbbtofriend.php?s=$session[sessionhash]&threadid=$threadid">Tell a friend about your Board</a> Thoughts and comments welcome. Show Your Support
|
Comments |
#32
|
||||
|
||||
This hack is really meant for members who must be loged in. I think this is your issue. Log in and test. Set forum permissions appropriately for Guests so they can't use this form.
HTH |
#33
|
||||
|
||||
your missing two semicolins in that script code
|
#34
|
|||
|
|||
Quote:
|
#35
|
||||
|
||||
Ok thanks I got it working! (THX for clarification)
|
#36
|
||||
|
||||
You need to look closely at the instructions again. Those are TEMPLATES, not files and referbbtofriend.php is originally sendtofriend.php which you edit and rename and which comes with vB. It gets confusing sometimes, especially when you run into templates named similarly to files. Once I went through carefully and followed the instructions exactly it works great! HTH
|
#37
|
||||
|
||||
How do you retrieve the information on the referrals? Does it use the same table as the original referrals under Users in Admin CP?
Thanks to nafae for reminding me to ask an obvious question |
#38
|
||||
|
||||
When I tried to refer someone, they registered, then when i check that referal thing in the admin cp it hasnt changed.. "no referrals for that time period"
|
#39
|
||||
|
||||
I just installed this hack on my boards.... verrrrry nice... Now I don't have to keep answering the same question over and over ('how do I get credit for referring somebody... how can I make a direct link to get referral credit..) lol...
Great job - js version is very nice. Thank you for this. Chris |
#40
|
||||
|
||||
The compliment to my "hacklette" is written by a real coder.
His royal hackness FiireFly. See: https://vborg.vbsupport.ru/showthrea...threadid=25173 Iv'e not installed his hack but it looks like it lets' you put all the referral data on your board which will continue to encourage folks. The referral code in my hack works perfectly. Log in and try it. Depending on your Forum Permissions for guests. See member hondastyle Board and thats the way it;s supposed to work. Note: You can also put the referral link in your email templates and user cp if you wan't to remind your members. |
#41
|
||||
|
||||
I noticed when I tested this that when the person receiving the email it says something like "blahforum mailer" Is there a way to replace this with the variable that was placed in the "Send To:
(Person's Name)" field? This way they don't think it's a forum mailer and delete it? If this is possible it would be really cool. Thanks. BTW if anybody wants to see a demo they can check out my tweaked version of it here: http://www.theforumz.com/forumz/index.php You can see it a little lower than the top right. It doesn't work perfectly if you aren't registered, but you still get the idea. Mine is modified a good deal as well. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|