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 |
#42
|
|||
|
|||
From what I've read you have to manually place the links to the JS script around the board.. Isn't there a simple way to make a template that will replace them all? Like a way to make all the old refer a friend links link to the JS popup? Maybe using a new template or replacing the old with this new code..? Clarification would be great.
|
#43
|
|||
|
|||
Steve,
This is a really nice hack. Thanks. I saw you mention in this thread that you weren't able to get the error code just the way you wanted it. What is happening for me is that if the fields are not filled out properly, the system uses the header and footer file, but within the javascript window. I believe I followed your directions completely. This only happens on the error page. Is this supposed to be this way? Can it be fixed so the error message goes into the javascript window like the referbbsentemail_thanks template does? |
#44
|
|||
|
|||
Works in 2.2.2
Thank you kindly! |
#45
|
|||
|
|||
Thanks for this great code, but
I wonder if I can use the next URL http://www.your-domain.com/register....&action=signup will that account a point for the one whois # is (2)? Or they will be able to register but will not account as a point? What I mean, visitors will go directly to the sign up page instead of the mean page of the forum. What do you think about that |
#46
|
||||
|
||||
How can i change the configuration that if someone is not logged it that he first has to log in before he can see the pop up! Because i don't like it that the user is called "unregistered"??
Thanks! btw really nice hack! |
#47
|
||||
|
||||
Just wanted to thank you for your work on this! I love it!
|
#48
|
||||
|
||||
cool hack dude, nice work!!
|
#49
|
|||
|
|||
Just installed the javascript one and it works great.
Thanks Phil |
#50
|
||||
|
||||
Can something like this :
http://www.joeygowdy.com/forum/previ...te-friend.html be done for vb2.2.6 ?? If its already made - then where is it at |
#51
|
|||
|
|||
Dear sir,
I have 2.0.2 and when I click on the link, I got blank page says Fatal error: Call to undefined function: updateuserforum() in /home/alameer/public_html/amt/referbbtofriend.php on line 22 please help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|