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 |
#22
|
||||
|
||||
Nope. You need to start over and properly set up ALL the templates and properly edit referbbtofriend.php file.
NOTE: if you previously installed the "redirect" version but wan't to use the JS pop up version, please start over and download the last zip in this thread At the conclusion of a submit you see the template named: referbbsentemail_thanks. Check the screen capture I posted today. It works perfectly. |
#23
|
|||
|
|||
I feel stupid... I guess I jumped the gun again.
Thanks! |
#24
|
|||
|
|||
Great idea!
Loving this one. Thanks. |
#25
|
||||
|
||||
Hope this isn't a stupid question but is there a way to place this link on the login page, without a user being in a thread? We're going to run a contest but, as a new board, it would be nice to be able to place a referral link there when a user logs in. Thanks
|
#26
|
|||
|
|||
I like that idea.
|
#27
|
||||
|
||||
I like the idea but the .php file would need additional hacking so it does not require "&threadid=$threadid" With additional hacking you could place it anywhere as you suggest.
Anyone? |
#28
|
||||
|
||||
That was the problem I ran into. The only way I could think to do it was to make a separate hack, otherwise, modifying the php file would then disable the original hack. Maybe this would be a good suggestion for the next version of VB. Certainly seems like a feature a lot of folks could use.
|
#29
|
||||
|
||||
BTW, thank you for this excellent hack. It really is useful.
|
#30
|
||||
|
||||
You welcome. Your idea is implemented
Issue resolved and tested with the JS version. Permits you to place the JS link anywhere you wan't 1. Remove the next 2 lines from referbbtofriend.php Code:
$threadid = verifyid("thread",$threadid); $threadinfo=getthreadinfo($threadid); Code:
var popurl="referbbtofriend.php?s=$session[sessionhash]" |
#31
|
||||
|
||||
Great! Thank you once again!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|