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 |
#12
|
||||
|
||||
Thanks. A JavaScript Popup version coming tomorrow which might be a little "cleaner" for some folks and faster for the folks on a dial up.
|
#13
|
|||
|
|||
great.... after I just installed this one!
|
#14
|
||||
|
||||
nice
on my que for tomorrow |
#15
|
||||
|
||||
Nice hack, thanks.
|
#16
|
||||
|
||||
NEW: Tell A Friend + Automatic Referral Code via JavaScript Pop Up Instructions edited on 1-13-02 for new features.
NOTE: if you previously installed the "redirect" version but wan't to use the JS pop up version, please start over and download the zip in this post Includes welcome and thank you by member name. Requires 4 custom templates. 1. Please download the .zip first which contains all the custom templates. 2. 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_pop,email_referbbtofriend,referbbsentemail_thanks,"; Change this line < eval("dooutput(\"".gettemplate("sendtofriend")."\");"); --- To this line > eval("dooutput(\"".gettemplate("referbbtofriend_pop")."\");"); Change this line < eval("standarderror(\"".gettemplate("error_requiredfields")."\");"); --- To this line > eval("standarderror(\"".gettemplate("error_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("dooutput(\"".gettemplate("referbbsentemail_thanks")."\");"); Code:
$threadid = verifyid("thread",$threadid); $threadinfo=getthreadinfo($threadid); referbbtofriend_pop error_referbbtofriend email_referbbtofriend referbbsentemail_thanks Change my text in these templates to fit your site. 3. Insert the following JavaScript code anywhere on your Board you wish. Try header, footer, top of forums, user cp. Anywhere. Code:
<!------NEW JS POP BELOW----> <!-----begin pop up link----> <script> function openpopup(){ var popurl="referbbtofriend.php?s=$session[sessionhash]" winpops=window.open(popurl,"","width=700,height=525,") } </script> <a href="javascript:openpopup()">Tell a friend about your board</a> <!------end pop up link---><!------END NEW-----> Edited 1-13-02 for new features. Enjoy |
#17
|
||||
|
||||
The screen shot:
|
#18
|
|||
|
|||
Pop-up works great BUT can you make it where JUST the e-mail box shows up and not the vB header/footer. As it is now, you could have achieved the same affect by just using a TARGET="_BLANK" in the <A HREF> tag. It would load even faster without all that unneeded stuff.
|
#19
|
||||
|
||||
Thanks. If you used my template from the last zip I posted today for the form you have NO header or fotter for the form. See the file in the zip named referbbtofriend_pop.txt You need to download the zip I posted for the JS version. About the only thing I couldn't get just the way I want it is the error if fields are left blank. HTH |
#20
|
|||
|
|||
Oh, ok. I didn't see any different instructions for those that already had it installed so I just used the code above. Thanks. I am going to check it out now.
|
#21
|
|||
|
|||
Ok better, but once you submit the e-mail, it takes you back to the thread in that same window and that page will not fit in there...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|