View Full Version : Refer A Friend.
Base400
06-22-2005, 04:27 AM
If I wanted to put a link somewhere on the site that said "Refer A Friend" and have them go to a page where they can input. Friend's , Name , Email, and text about the site. inside the text box is a referral link.. I havent seen this around the boards for the 3.5 Beta.
thanks
yellowchaser
08-03-2005, 04:18 PM
Yes I would love to see this myself.
safiel
08-08-2005, 02:07 AM
This was coded by Erwin for 3.07
https://vborg.vbsupport.ru/showthread.php?t=59708
All the steps will work fine for 3.5rc2 with the exception of step 1a, because the code has changed. Instead, find:
if ($_REQUEST['do'] == 'sendtofriend' OR $_POST['do'] == 'dosendtofriend')
{
$forumperms = fetch_permissions($threadinfo['forumid']);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canemail']) OR (($threadinfo['postuserid'] != $vbulletin->userinfo['userid']) AND !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers'])))
{
print_no_permission();
}
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
}
and replace with:
if (!$_REQUEST['refer'])
{
if ($_REQUEST['do'] == 'sendtofriend' OR $_POST['do'] == 'dosendtofriend')
{
$forumperms = fetch_permissions($threadinfo['forumid']);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canemail']) OR (($threadinfo['postuserid'] != $vbulletin->userinfo['userid']) AND !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers'])))
{
print_no_permission();
}
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
}
}
Note, I don't want credit for this hack not working or working. I didn't write it - but I did verify it works :)
ryuuchida
08-20-2005, 08:12 AM
Coolness! Thanks Safiel!
johnbruce71
08-24-2005, 10:54 PM
Cheers for the update (well kinda lol) works a treat
Mr Chad
08-25-2005, 08:52 PM
What about in the user CP, it shows a Referal link you can give to your friends and when they click it your account name is prefilled in the referal box?
or is this aready around.
like sumthin like
register.php?do=referrerid=1
Rukas
09-30-2005, 05:17 AM
^^ That would be cool, and also some way to reward users.
Say if they refer 20 people WHO SIGN UP AND POST AT LEAST X AMOUNT OF TIMES they are automatically moved to a VIP user group.
john_robot
09-30-2005, 05:25 AM
good one
Doc Great
10-02-2005, 09:00 PM
Thans, but maybe you (everyone who takes over this hack) should edit the sendmessage.php so that the new template gets cached ;)
// pre-cache templates used by all actions
$globaltemplates = array(
'mailform',
'sendtofriend',
'contactus',
'contactus_option',
'refertofriend',
'newpost_errormessage',
);
Mr Chad
10-02-2005, 09:03 PM
^^ That would be cool, and also some way to reward users.
Say if they refer 20 people WHO SIGN UP AND POST AT LEAST X AMOUNT OF TIMES they are automatically moved to a VIP user group.
This is a very good idea!
I would love to have something like this.
berberber
10-07-2005, 07:11 AM
No way to do that as a plugin ?
would be nice
A plugin for that would be really cool!!
LauraFL
10-26-2005, 02:50 PM
What about in the user CP, it shows a Referal link you can give to your friends and when they click it your account name is prefilled in the referal box?
or is this aready around.
like sumthin like
register.php?do=referrerid=1
I'm looking for something like that also.
I'm looking for something like that also.
I am using this and agree that this should be plugin.
(anyway this should be default feature in vbulletin...)
funinthesun
11-10-2005, 01:30 AM
Me too! :)
Me too! :)
Plugin would rock .-)
cbr929rrerion
11-22-2005, 03:17 AM
works for me on 3.5 gold with the change to part 1A
ndahiya
11-27-2005, 01:40 AM
wonder if someone is planning to make it a plugin ??? TIA!!!!
ndahiya
01-22-2006, 12:03 PM
wonder if someone is planning to make it a plugin ??? TIA!!!!
bump
EricaJoy
01-22-2006, 12:25 PM
would the invites system from psionic vision work for this? https://vborg.vbsupport.ru/showthread.php?t=101801
It accomplishes pretty much the same thing.
friscogal
09-02-2006, 10:23 PM
does this work for 3.6...i installed, have the link up but when i click link go to a blank page...any words of advice?
does this work for 3.6...i installed, have the link up but when i click link go to a blank page...any words of advice?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.