PDA

View Full Version : Refer Friend


Erwin
05 Jan 2004, 05:30
Refer Friend

For some reason, there is no "Refer a Friend" form standard in vB3.

This is a simple "Refer a Friend" form based on sendmessage.php.

All you need is to edit 1 PHP file - sendmessage.php, and add 1 template.

Instructions are in the HTML zipped below.

Below is a screenshot, as requested. ;)

deathemperor
05 Jan 2004, 05:43
cool ! Gotta install this hack right after I'm out for 1h :p

Koutaru
05 Jan 2004, 08:36
You're on a roll :) I'll be using this definately.. but what would be better is a screenshot ;)

sabret00the
05 Jan 2004, 09:01
greatness :D i'll have to install this one :)

Erwin
05 Jan 2004, 09:49
Screenshot added to first post as requested.

Koutaru
05 Jan 2004, 09:55
Thanks Erwin :p you could basically tell what it should look like from the html but an image takes about a second to understand ;)

SnowBot
05 Jan 2004, 10:23
will that change the contact us link in your instructions to

Refer a friend?

If so how would one add it as a new link instead? :)

macshrine
05 Jan 2004, 11:19
Parse error: parse error in /home/macshrin/public_html/forums/sendmessage.php on line 245

i get that error message, what do i do?

Erwin
05 Jan 2004, 11:22
will that change the contact us link in your instructions to

Refer a friend?

If so how would one add it as a new link instead? :)
Look at my instructions carefully. :) It adds the link, not replace it.

Erwin
05 Jan 2004, 11:22
Parse error: parse error in /home/macshrin/public_html/forums/sendmessage.php on line 245

i get that error message, what do i do?
Chances are you installed in wrongly. There should be no parse errors if you follow my instructions exactly. Make sure you are closing all your open { with }.

Koutaru
05 Jan 2004, 11:25
will that change the contact us link in your instructions to

Refer a friend?

If so how would one add it as a new link instead? :)

No it won't.

You could also add a phrase for Refer a friend and other text as they are hardcoded as of now.

MrNase
05 Jan 2004, 12:21
Erwin, nice and i'll use that but vB3 has a 'select your language' feature... Would be nice if you could update this hack to use the phrasing system.

Erwin
05 Jan 2004, 21:25
Erwin, nice and i'll use that but vB3 has a 'select your language' feature... Would be nice if you could update this hack to use the phrasing system.
That's true. :) But that would take an extra 10 steps, to enter in each phrase. Feel free to do it for your own site. Feel free to customize any hacks I have released for your own site.

FleaBag
05 Jan 2004, 21:53
Excellent, thanks for another great hack that's pulling me towards vB3!

paratek
05 Jan 2004, 23:29
Thanks Erwin...another Install!

tomshawk
06 Jan 2004, 04:12
Perfect, Installed flawlessly

Clicks install

carloshax
07 Jan 2004, 22:21
Great addition, had no probs at all.

Thx
Carl

Mike Gaidin
11 Jan 2004, 02:19
Another great feature Erwin. :)

Spencer F.
11 Jan 2004, 06:44
Great hack. Very easy install.

Mr. HillBilly
14 Jan 2004, 00:11
Hey erwin, I was just viewing the Refer page and noticed this:

Page generated in 0.08029 seconds with 7 queries (2 queries for uncached templates)

2 Uncached templates... How would I make them cached?

MindTrix
16 Jan 2004, 19:32
Erwin, is it just me, or would everytime someone use this, it gives referer points to the Admin because you got

sendtofriend&refer=1

or am i mistaken?

Erwin
16 Jan 2004, 20:38
Erwin, is it just me, or would everytime someone use this, it gives referer points to the Admin because you got

sendtofriend&refer=1

or am i mistaken?
You are mistaken.

The referrerid is the userid of the person using the form. :)

Mr. HillBilly
20 Jan 2004, 22:57
Hey erwin, I was just viewing the Refer page and noticed this:

Page generated in 0.08029 seconds with 7 queries (2 queries for uncached templates)

2 Uncached templates... How would I make them cached?

Erwin?

Oblivion Knight
23 Jan 2004, 14:59
Erwin?
Since you have 2 uncached templates, I'm guessing the code has changed slightly between the version of vB3 you are using and RC3. In RC3 I had 1 uncached template and I did this:

In sendmessage.php
Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Add below:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Awesome mod Erwin, thanks for sharing.!

Osterling
06 Feb 2004, 10:43
when i install this when click the link i just got an emtpy page.. :confused:

Big Kahuna
29 Feb 2004, 21:01
This is what I'm getting when I click it on my test forum




vBulletin MessageBK, you do not have permission to access this page. This could be due to one of several reasons:


Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Log Out (http://www.moparstyle.net/testforums/login.php?do=logout) Home (http://www.moparstyle.net/testforums/index.php?)





Any idea what I did wrong?

Big Kahuna
29 Feb 2004, 21:11
Never mind -- I retraced my steps for the third time and it worked. However I screwed up -- I managed to do it twice.

Great Hack

Installed

Thanx

coldpride
01 Mar 2004, 03:59
Nice hack and good instructions.. Very usful for some upcoming contests

Evil Chris
04 Mar 2004, 19:02
Thank you Erwin. Installed. :)

hXc Radio
07 Mar 2004, 00:05
I redid the hack three times but still get Parse error: parse error in /home/******/www/forum/sendmessage.php on line 248

I have



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




OTHERS)))
line 248 ---->>> {
print_n

hXc Radio
10 Mar 2004, 09:10
/me bumps hoping to get help

MindTrix
10 Mar 2004, 17:19
Zip that php file up and upload it on ur server, then send me a PM linking to that zip file and i will take a look for you

Wifey
15 Mar 2004, 22:56
Erwin, I LOVE your hacks! They're so great and really user-friendly to install!

*clicks install*

StarBuG
28 Mar 2004, 00:30
I get a no permission error message when I try to use refer.

I am the admin what is wrong?

Please help

StarBuG

ChrisBaktis
29 Mar 2004, 02:24
This hack was working for just great but for some reason now every that goes to the page gets an error saying they cannot access the page. I have checked and I canot see anything that might have changed - any idea where I should start to look?

chris
www.rustysoaptraders.com

jarekn
30 Mar 2004, 16:57
Are there any changes required to install this under Gold version of vBulletin?

sabret00the
03 Apr 2004, 15:24
works perfectly, installed without a hitch :D

StarBuG
03 Apr 2004, 18:53
Can anyone help me with my problem?

Why do i get a permission denied as administrator?

StarBuG

Oblivion Knight
03 Apr 2004, 20:25
StarBug: If you've recently upgraded you will need to do the file edit again.
If not, make sure you have uploaded the modified file and added the template..

MikeXP
03 Apr 2004, 23:12
Wicked hack! Just installed it at http://globalboards.com :) Thanks!

StarBuG
05 Apr 2004, 00:31
Wicked hack! Just installed it at http://globalboards.com :) Thanks!
thats so very strange.

I am sure i did everything but no permission.
then i removed it now i tried it again and it worked.

Maybe i realy missed something.

Thx for this nice hack

StarBuG

Loyalty4Life
06 Apr 2004, 05:28
Erwin - Simply incredible. Well done! Thanks. :)

/me clicks install and applauses.

zetetic
15 Apr 2004, 01:18
Great hack and easy to install, but...

I'm brand new with vB, using 3.0 Gold, and should unregistered users be able to send a referral? I'd rather limit it to people who are logged in if possible.

Thanks!

poliveira
15 Apr 2004, 19:08
Sweeeeeeeeeeeeeeet!!!

Very nice, simple and hopefully effective.

Thanks,

jarekn
16 Apr 2004, 13:51
This is a great mod!

Any way of allowing CC, or BCC? What if you want to invite 20 people at one time?

I think this would a great addition to this mod.

THANX

poliveira
16 Apr 2004, 16:34
This is a great mod!

Any way of allowing CC, or BCC? What if you want to invite 20 people at one time?

I think this would a great addition to this mod.

THANX

I second the motion. adding multiple recipients would be a great enhancement.

MaxScript
20 Apr 2004, 07:02
is there a way where you can add more then one email address ?

something like friendster.com

MaxScript
20 Apr 2004, 07:03
also would this work on 3.0.1

poliveira
20 Apr 2004, 14:31
also would this work on 3.0.1

I am using it on 3.01 and it has been working fine.

rave42
20 Apr 2004, 15:59
With this would it be possible to list my top 10 refers?

Oblivion Knight
20 Apr 2004, 17:14
With this would it be possible to list my top 10 refers?No, that's a totally different hack.

MaxScript
21 Apr 2004, 03:15
No, that's a totally different hack.

can you point me that way please ?

Oblivion Knight
21 Apr 2004, 13:54
can you point me that way please ?Try this:
http://www.everythingvb.com/products/litestats/

ashley53680
21 Apr 2004, 17:11
Thanks for the nice hack... however I can't get it to work yet! :lol:

I installed everything, put the link in the footer.... although when I click on "refer friends" it just gives me a blank page. What did I do wrong?? lol

Thanks, Ash

ashley53680
21 Apr 2004, 17:47
n/m gspot helped me!!

(clicks install)

JaNa
22 Apr 2004, 02:57
Ah, this is somethin' I need.

You're awesome Erwin, you've made everything I need :D

cooltechie
27 Apr 2004, 22:35
wow, i was shocked to not see a built-in refer a friend. will have to install this one. thanks!

gspot
28 Apr 2004, 04:17
rave42 & maxscript - I have just released the hack you are looking for to list your top number of referrers.. It will show any number that you specify.. It's called: referral statistics

JagFan
06 May 2004, 20:26
Great hack!! Installed and working perfectly :)

Oblivion Knight
07 May 2004, 09:53
I updated the refertofriend template somewhat so that it's more vB3ish and based on the "Contact Us" page (see screenshot).

To install simply replace the entire contents of your refertofriend template with the contents of the file in the zip (zipped so that nothing get's parsed).

Lee Wilde
08 May 2004, 09:44
I have installed this hack without any problems. Thank you very much.

icest0rm
14 May 2004, 05:06
Great hack! I've added the referral link to my header, footer, and quick links menu. Referrals to my forum almost doubled. I'm surprised such a feature is not standard in Vbulletin. I give this hack a thumbs up. :up:

jcr
14 May 2004, 15:19
I have also installed it, and it worked beautifully! no hassle at all! :) And really easy to understand and customize to own needs!

MaxScript
22 May 2004, 17:52
http://www.vbulletin.org/forum/showthread.php?p=515018#post515018

vprp
01 Jun 2004, 04:59
i also get that error on line 248. try go to my forum at www.golfrewind.com and in the footer, i have a refer friends link.

vprp
01 Jun 2004, 05:01
here is the exact error message i receive...

Parse error: parse error, unexpected T_STRING in /hsphere/local/home/vrhee/golfrewind.com/sendmessage.php on line 248

Cold Steel
25 Jun 2004, 05:17
/me installs.

Thanks!

Megareus Rex
11 Jul 2004, 10:30
I tried installing this hack, and everything SEEMED to go well, but the link never appeared. I used the footer coding he had too...

Marulatree
11 Jul 2004, 15:58
I keep getting a permission problem as Admin? Please help...

TTG
11 Jul 2004, 23:38
Tried this on my test forum and always get

vBulletin Message
BK, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Ok .. solved the problem .. I always take a backup before I edit a php file.

Edited the sendmessage.php .. made a coffee and uploaded the backup ... duh :nervous:

gwhooooey
21 Jul 2004, 20:36
So... how can we make it so you can send to more than one person at the same time?... I think this would be very handy

NietzscheKid
21 Jul 2004, 22:08
Thank you for this hack!

I've installed it and it works like a charme. :D

ashley53680
21 Jul 2004, 22:44
So... how can we make it so you can send to more than one person at the same time?... I think this would be very handy
I agree, I'd love that!

DB8 MissingLink
22 Jul 2004, 16:00
Which setting do I need to change so prevent this message from propagating when I click "Send":[Username] you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. I uploaded the new version of sendmessage.php to the root forum directory just fine - and have verified the changes. Can't figure out what's wrong.

I'm using version 3.0.3

soccerclue
05 Aug 2004, 12:29
Hi, I have installed the hack. It's a great hack and it's displayed fine. But, when I tried to send the referral email to my own email address. The email is sent back to my domain email address saying that the email cannot be sent. Can someone help me why did that happen? I thought there might be an error with my domain email address, but I tried to send email with my email address using webmail and it works. Can someone help me? is it because the form is using vb mail and it does not work with my domain email?

Rambo
05 Aug 2004, 16:05
*clicks install*

Seems to be working fine ^_^

soccerclue
06 Aug 2004, 19:44
Can someone help me please? The problem is in my previous post.

Keyser Söze
09 Aug 2004, 19:09
wondering if it would be possible to in the profile part could add "who did u refer", like, in ur profile it says Referals: 3

well the 3 be a link to a list of members you referred, would be neat

Jag
13 Aug 2004, 00:33
Installed with out a problem :)

*Clicks install

sully02
13 Aug 2004, 16:11
Installed with out a problem :)

*Clicks install
Brilliant!

/me installs happily

y2krazy
30 Aug 2004, 05:10
/me clicks install!

JamesFrost
01 Sep 2004, 23:06
Erwin,

I've tried modifying the template to add some extra text. All looks OK when the refererrer page comes up, but when I receive the e-mail, lot's of spaces go missing like this :

I thought you might be interested in joining me at Easy-Tek.
Easy-Tek is a new website, designed for beginner and intermediate computer users. Ifyouwouldliketolearnmoreaboutcomputingandtechnologyandgetmoreoutofyourequipment thencomeandjointhecommunity,andseeifyoulikeithere.


I've tried various combinations - It always seems to happen after the third punctuation mark!

gspot
06 Sep 2004, 17:12
EVERYONE - might be interested in using this hack with this one.

Referral Statistics Hack vb3.0.3 (http://www.vbulletin.org/forum/showthread.php?t=64469&page=1&pp=15)

- flawless integration in under 3 minutes.
- great referral statistics results
- and more...

CHECK IT OUT..

etaslim
06 Sep 2004, 17:30
Installed smoothly! Thanks for this awesome hack! Those of you who enjoy this hack should also check out the Referral Statistics hack (http://www.vbulletin.org/forum/showthread.php?t=64469&page=1&pp=15) from gspot (http://www.vbulletin.org/forum/member.php?u=30832). Both hacks compliment each other very well & perfect for running a referrals contest.

AnhTuanCool
06 Sep 2004, 20:40
Great Erwin ;)

/me clicks install right away

goingnova
13 Sep 2004, 06:09
Ummm, NM.

lanoix
05 Oct 2004, 16:35
Installed, works perfectly... Thanks!

Mokster
08 Oct 2004, 18:46
hi, i get a blank page when i click on refer a friend...? where am i suppose to upload the refertofriend.php page?

scriptjunkie
11 Oct 2004, 14:35
Thanks....It is what I was looking for....clicking!!

Erwin
11 Oct 2004, 22:39
hi, i get a blank page when i click on refer a friend...? where am i suppose to upload the refertofriend.php page?
There is no refertofriend.php page. This hack uses the existing sendmessage.php.

ashley53680
11 Oct 2004, 23:31
refertofriend is a template...

frankenberrie
23 Oct 2004, 16:15
This mod is excellent---- Perfect for every site out there.

I do have a problem - when users are unregistered, they have the ability to type in a name other that (unregistered)

Even if a name is typed in, in the email I still get this

This is a message from Unregistered ( mailto: )

&

From,
Unregistered

any thoughts?

Erwin
24 Oct 2004, 03:55
This mod is excellent---- Perfect for every site out there.

I do have a problem - when users are unregistered, they have the ability to type in a name other that (unregistered)

Even if a name is typed in, in the email I still get this

This is a message from Unregistered ( mailto: )

&

From,
Unregistered

any thoughts?
I wouldn't recommend this form be open to unregistered users. Not sure why that's case, I thought I made it so taht the name is customized.

Lord Brar
27 Oct 2004, 16:41
*Installed.

Thanks :)

94DROPTOPZ
31 Oct 2004, 05:15
I can't seem to figure out what the problem is? I got everything installed and it seems to work perfect but then I never get the e-mail??
I'm not sure what could be wrong?

VERY nice hack BTW very easy instructions

pagekeeper
03 Nov 2004, 02:27
i tested the script its cool and everything its really appriciated, how do you edit the footer of the email, "forum takes no responsibility for messages sent through its system."

it would be cool to add mulitple refeers on the same page ? would it work if i duplicate the top two columns ? it would be good to limit the amount of characters a user would send, i think 500would be enough plus a count down box its just an idea though i think it could work well, and a log file to keep track of who's using it. I dont really want to get into detail but yeh ... you can easily get people spamming it. i've put it in an if tag so only the members can access it, since it has requirements such as user ID etc.

bendigo-tech
03 Nov 2004, 04:04
nice mod... thanks alot! :)

*Installed!

Caiman
08 Nov 2004, 17:39
This is a great hack, was just thinking about something like this the other day and here it is, Thanks!

*installs

BAGHDAD-IRAQ
09 Nov 2004, 02:53
thx for the great hack... but it is not sending email ...... ?????????????

Polo
15 Nov 2004, 19:39
I updated the refertofriend template somewhat so that it's more vB3ish and based on the "Contact Us" page (see screenshot).

To install simply replace the entire contents of your refertofriend template with the contents of the file in the zip (zipped so that nothing get's parsed).

Yup, it definetly looks more vb3ish lol :) thanks Oblivion and thanks Erwin :) Nice Mod :)

Mokster
19 Nov 2004, 06:28
so is there anyways to input more than 1 email at a time?

Mokster
28 Nov 2004, 16:38
so is there anyways to input more than 1 email at a time?
bump :)

T3MEDIA
13 Dec 2004, 10:53
log in and to to the link that shows this template on your webpage.
ya there? ok now log out.
now click back. change unreg to any email and hit send.

instant spam tool.

cschuck3
13 Dec 2004, 11:00
This tool is what I was looking for, Would it take much to once the friend was email and he/she click the URL to make sure that the person that send the refer wold get credit so maybe the registeration forum with pull the persons ID from the email sent out so it could make sure they for credit... I am goign to run a content for the most regoister referals so this would help make sure it all on the up and up, abnd maybe the option to even track if the person even click in the link. If these option could be added Please infor me of waht it would take. cschuck3@mnminimoto.com

Sleepyk
19 Dec 2004, 03:11
Before i go to install, does this work with 3.0.3 aswell?

dwh
20 Dec 2004, 22:38
This tool is what I was looking for, Would it take much to once the friend was email and he/she click the URL to make sure that the person that send the refer wold get credit so maybe the registeration forum with pull the persons ID from the email sent out so it could make sure they for credit... I am goign to run a content for the most regoister referals so this would help make sure it all on the up and up, abnd maybe the option to even track if the person even click in the link. If these option could be added Please infor me of waht it would take. cschuck3@mnminimoto.com
That's already part of the hack. This line covers it



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



What I'd like to see added to this hack is that you list all your domains and instead of just referring the forum, it detects the referer page, if it is in the domain list, it sends out that page to a friend.

RCSwap
21 Dec 2004, 21:33
I'm just getting a blank page.... any ideas?

mikehawk
01 Jan 2005, 20:49
Installed! Awesome. :squareeyed:

T3MEDIA
01 Jan 2005, 20:52
It isnt really about this hack but is there a refer only way to sign up on vbulletin???

Thanks.

Dio
02 Jan 2005, 00:19
Clicks install!

RetroDreams
02 Jan 2005, 01:20
Some of my users get "fill out all fields completely" even though they do. Any ideas?

PurpleCow
02 Jan 2005, 09:51
/me Clicks Install !

Hey..how about this Idea.... would eb good for running referrals contest...

Display this link below the Nav bar after the member logs in along with contest info/text. When a member is not logged in, we have the invite to register in teh community...and after logging in..if we have the referral contest..that woudl be great !

Any help here ?!

Thanks

nautiqeman
10 Jan 2005, 13:52
/me installs!!!

Creative Suite
10 Jan 2005, 18:14
nice work!

*Installed!

Takamine334
12 Jan 2005, 06:39
weird....after installing and then following the link, I get this:

Green, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Takamine334
12 Jan 2005, 06:41
nevermind...I'm a doofus.

gilbert
13 Jan 2005, 08:03
nevermind...I'm a doofus.

Me too but can someone explain why? I still cannot figure out this permissions thing for VB3.03

Viks
13 Jan 2005, 16:42
Hi Eirwin,
This is a good hack to encourage users to get more members in the forums.

However my issue is as follows:-

my forums are installed in /fourms directory and I am using Portal (CMPS) software.

the link "sendmessage.php?do=sendtofriend&refer=1" does not work for my portal homepage.

What can I do so that the URL "sendmessage.php?do=sendtofriend&refer=1" works from /forums dir. as well as from outside.

PLUS

Is there a way to disable "Refer Friends" for guest users??


thanks for u help in advnace.

Vik

Erwin
13 Jan 2005, 22:47
Hi Eirwin,
This is a good hack to encourage users to get more members in the forums.

However my issue is as follows:-

my forums are installed in /fourms directory and I am using Portal (CMPS) software.

the link "sendmessage.php?do=sendtofriend&refer=1" does not work for my portal homepage.

What can I do so that the URL "sendmessage.php?do=sendtofriend&refer=1" works from /forums dir. as well as from outside.

PLUS

Is there a way to disable "Refer Friends" for guest users??


thanks for u help in advnace.

Vik
Edit the templates to change the URL.

Don't you want guests to refer their friends? :)

gilbert
14 Jan 2005, 00:54
Me too but can someone explain why? I still cannot figure out this permissions thing for VB3.03

Yah I have the same question. Hopefully a nice person can help :ninja:

Viks
14 Jan 2005, 02:14
Hi Erwin, thanks buddy for the response... i should have been able to figure that one out... DUH!

Well, the reason I wanna block guests from refferring wud be cause the sendmail may used a nuisance by some pranksters!

Erwin
14 Jan 2005, 03:22
Hi Erwin, thanks buddy for the response... i should have been able to figure that one out... DUH!

Well, the reason I wanna block guests from refferring wud be cause the sendmail may used a nuisance by some pranksters!
Find this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Viks
14 Jan 2005, 05:32
Thx Erwin.
//btw i checked "vB Color Scheme Machine"....it v.cool.

Oblivion Knight
14 Jan 2005, 17:02
Any news on being able to refer multiple friends? :)

It should be easy enough to allow e-mail addresses to be separated by a commar..

gilbert
16 Jan 2005, 21:30
Can someone please answer my question about the permissions?

Viks
16 Jan 2005, 22:16
Can someone please answer my question about the permissions?
If I am not wrong then u need to goto Admin CP -> Usergroup Manager -> Edit permissions -> AND ENABLE "Can Use Email to Friend".

TonTon
22 Jan 2005, 17:46
good stuff, installed.

syjech
25 Jan 2005, 05:31
ugh...where'd I go wrong?

Parse error: parse error, unexpected '}' in /home/paretnet/public_html/forums/sendmessage.php on line 259

ryancooper
25 Jan 2005, 13:42
AWESOME hack Thanks Man1!!!

icest0rm
27 Jan 2005, 18:04
Can someone please answer my question about the permissions?

I get a permissions problem as well after I upgraded to 3.0.6 and re-implemented the hack. Here's the error:

"you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

Any ideas on what could be wrong?

icest0rm
27 Jan 2005, 18:42
I get a permissions problem as well after I upgraded to 3.0.6 and re-implemented the hack. Here's the error:

"you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

Any ideas on what could be wrong?

Never mind. I assumed that I didn't have to re-add the template. I went and re-added the template and it's now working. :)

Crank
02 Feb 2005, 21:01
i installed this hack like a champ.
thanks for the work
also i added the link in the navbar of the site for easy refference

here is the code i used


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


tnx again

Damian
03 Feb 2005, 06:46
/me installs

Thanks for the great hack.

jfreels
06 Feb 2005, 05:02
very nice, thanks!

The Coldwood
19 Feb 2005, 15:53
You're on a roll :) I'll be using this definately.. but what would be better is a screenshot ;)
Reinstalled for vB 3.0.6

LiewCF
07 Mar 2005, 07:34
Thank you very much! :)

OrangeFlea
14 Mar 2005, 05:11
Any news on being able to refer multiple friends? :)

It should be easy enough to allow e-mail addresses to be separated by a commar..

Yeah, what he said. Check this out:

http://www.business-students.com/forums/refer_friend.html

Can we get something like that in the next version? Should be a hit.

zachlee
15 Mar 2005, 14:20
here is a stupid question (prepares to be stoned)

when someone uses the refer friend page, the recipient recieves a email:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



How, or where can I change the From field.

zachlee
15 Mar 2005, 16:21
Since you have 2 uncached templates, I'm guessing the code has changed slightly between the version of vB3 you are using and RC3. In RC3 I had 1 uncached template and I did this:

In sendmessage.php
Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Add below:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Awesome mod Erwin, thanks for sharing.!

worked like a charm, thanks

mholtum
21 Mar 2005, 07:13
Odd. I installed this on 3.0.5 and it works great. Installed it on a fresh install of 3.0.7 and get this error



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



works here: http://www.ravensrealm.net

doesnt work here: http://www.theflyfishingforum.com

any ideas?

Marco van Herwaarden
21 Mar 2005, 07:31
Double check the first edit.Odd. I installed this on 3.0.5 and it works great. Installed it on a fresh install of 3.0.7 and get this error



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



works here: http://www.ravensrealm.net (http://www.ravensrealm.net/)

doesnt work here: http://www.theflyfishingforum.com (http://www.theflyfishingforum.com/)

any ideas?

mholtum
21 Mar 2005, 07:40
Double check the first edit.

Double Checked and got this:
Parse error: parse error, unexpected $ in /home/theflyfi/public_html/forums/sendmessage.php on line 423

this is line 223

?>

If I use the php file from an earlier version of vb it works fine... :ermm:

mholtum
21 Mar 2005, 07:49
ok downloaded a fresh copy of the file from VB and re-edited the file. Worked... odd..

rrr
25 Mar 2005, 03:08
Installed on vB 3.0.7 and working great.

This should definitely be included in the next version of vB

thesatman
27 Mar 2005, 11:25
Great hack thanks.

1 small question After the refer a friend message is sent it just returns to the forum home page, Anyway to show "Message Sent" screen before going to the forum home page.

Benj
13 Apr 2005, 14:18
My Question !

can you send a refer email to more than one email at a time ?? maybe using

"email1@w00t.com,email2@w00t1.com"

???

If so

how hard would it be to have an addon that maybe opens up in a new window sayin import contact from hotmail (or yahoo) which looks at all the ticked email addresses (user imput)that are pulled from the loged in users hotmail / yahoo contact list and says invite these users. The addon would then look at the email address and thouse that are not all ready members ( the emails that are not in the users table of the datbase) and would add the email address to the email field of this form :D


Good idea i recon just a case of how hard it would be to make:D

Erwin
14 Apr 2005, 00:08
Great hack thanks.

1 small question After the refer a friend message is sent it just returns to the forum home page, Anyway to show "Message Sent" screen before going to the forum home page.
Sure, don't disable redirect pages in your Admin CP.

Brandon Sheley
16 Apr 2005, 05:22
the download link doesn't work for me :| so i can't install yet

Marco van Herwaarden
16 Apr 2005, 08:39
You mean you can not download the hack? Please try again, because it is working fine for me.

kobescoresagain
16 Apr 2005, 19:52
can you change it so that it doesn't make a delay? I have people wanting to use it but it delays a little to long. I would like to know the variable where I could adjust this. Thanks

Erwin
19 Apr 2005, 13:17
can you change it so that it doesn't make a delay? I have people wanting to use it but it delays a little to long. I would like to know the variable where I could adjust this. Thanks
It's the same timeout as the contact us flood timeout - adjust it in your Admin CP. (I think).

yinyang
21 Apr 2005, 08:38
thanks for this awesome hack erwin!! *install*

kobescoresagain
27 Apr 2005, 05:28
Thanks alot, I wouldn't have thought that they would use that. I changed it. Now you don't have to wait as long. What could make it even better is where they could send out up to a certain amount. This is the reason why I lowered the amount of time. Like 5 to 10 refer a friend emails at a time. Would that be easy to do?

Benj
27 Apr 2005, 08:18
What could make it even better is where they could send out up to a certain amount. This is the reason why I lowered the amount of time. Like 5 to 10 refer a friend emails at a time. Would that be easy to do?


im interested in this !

HostLogik
28 Apr 2005, 11:20
Thanks..great hack

simple_john
02 May 2005, 12:00
i added this hack too.. simple even for me.. who knows nothing about coding... LOL

angelicGrace
04 May 2005, 16:37
Cool hack. thanks Erwin

DjTaz
07 May 2005, 16:30
I installed this , and every time i try to send i get

That username is already in use. If you are Taz and you have forgotten your password, click here.

can anyone help me with this ?

T3MEDIA
08 May 2005, 15:24
It's the same timeout as the contact us flood timeout - adjust it in your Admin CP. (I think).Erwin how can I do this so it sends a template? I am trying to relase a add on to your hack but I need your help. What I want to do is put the email message in a predefined template called invite

they fill out the requested info but once its done it looks like this:
http://www.sprnch.com/forums/view.php?pg=invite

I removed all the "$" from all varables like vboptions[bbtitle] so users who are not logged on can get a idea of what this example is supposed to do.

So the name they enter i placed in the template and the template is sent.
the pics n what not I have done already. There is a new area called "optemailmessage" that I would like to also add.

attached is a fill out form I made please talk a look at the mild ajustments I made...

If you could help that would be really nice of you.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

dsboyce8624
08 May 2005, 16:49
Wow, that looks great. Please let us know when it's done.

dsboyce8624
08 May 2005, 22:04
I would like to change the email this sends. I changed what was in the template added, but where do I find this text:

This is a message from Dennis ( mailto:xxxxxxx@xxxx.net ) from the Damn That Sucks! ( http://damn.that-sucks.net/forums/ ).

Obviously it's not worded correctly and I am unfortunately fussy about that.

Thanks,

DjTaz
10 May 2005, 21:11
Anyone help me with the above problem i have with this ? please ?

T3MEDIA
12 May 2005, 14:47
Wow, that looks great. Please let us know when it's done.Im just wating myself to see what Er has to say.

Erwin
15 May 2005, 06:02
Im just wating myself to see what Er has to say.
What did you want me to say? :)

DDad
18 May 2005, 02:33
*Installed*
this one is nice

T3MEDIA
19 May 2005, 22:10
What did you want me to say? :)#159

sabret00the
29 May 2005, 16:21
Erwin how can I do this so it sends a template? I am trying to relase a add on to your hack but I need your help. What I want to do is put the email message in a predefined template called invite

they fill out the requested info but once its done it looks like this:
http://www.sprnch.com/forums/view.php?pg=invite

I removed all the "$" from all varables like vboptions[bbtitle] so users who are not logged on can get a idea of what this example is supposed to do.

So the name they enter i placed in the template and the template is sent.
the pics n what not I have done already. There is a new area called "optemailmessage" that I would like to also add.

attached is a fill out form I made please talk a look at the mild ajustments I made...

If you could help that would be really nice of you.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


quite sexy, the mod isn't a hard oen though, if i recall it's just a matter of changing $message to $template_name (assuming you've assigned the template to the variable properly). in the vbmail() tags :)

RapCapital
29 May 2005, 18:10
* RapCapital installs


I love the hack! Good work Erwin!

oceanart
30 May 2005, 19:14
This is exaclty what I was looking for - a big thanks ERWIN!

wolfgrrl
03 Jun 2005, 23:45
WIll referred people have to be approved by moderation if the board is set not to accept new applicants?

T3MEDIA
04 Jun 2005, 02:41
quite sexy, the mod isn't a hard oen though, if i recall it's just a matter of changing $message to $template_name (assuming you've assigned the template to the variable properly). in the vbmail() tags :)Thank you... but I dont know how to do that. I only know the pritty stuff...

See I want it to work like this. You type... hey jen... come check this out... (you only have x amount of txt you can type)
then hit send.

She get that nice template... with your friends attached.

If you can set that up I know you would love it... I been to your site.

lem
16 Jun 2005, 04:03
I posted a dumb question, then I saw that your hack already covers everything. Thanks a lot!

Thanks,

Lem

mholtum
20 Jun 2005, 10:27
I love the mod and use it on 2 different boards. Any plans to port it over as a plugin for 3.5?

Caveman2k2
13 Jul 2005, 07:37
/me clicks install

Great hack! Installed without a hitch.

bigdog829
14 Jul 2005, 21:31
*bigdog829 installs

Very easy & nice hack thanks

MediaHound
15 Jul 2005, 05:56
I would like to have this on a 3.5 beta 3 board.
Erwin, before I dive into the code, will it work on 3.5, and if not, do you have plans to modify it so that it will?
thank you

csidlernet
18 Jul 2005, 03:47
thanks a lot

o0Hubba0o
18 Jul 2005, 04:10
thanks a lot

I used the auto-installer and it wouldn't work in firefox, so I dl'ed the manual install and put the vbulletin_global.js in manually and works fine now.

Except it only shows up on the portal page, the main forums don't have "contact us" or "refer friends", not sure if it's the template I'm using or what. So if anyone knows where I could look to fix that it would be appreciated. Otherwise I love this one.

brainfreeze
25 Jul 2005, 15:06
**brainfreeze Installed!

Any possibility we could add a standard form field on the bottom of the forum page - similar to http://forums.ikonboard.com (must be logged in to see the "Invite a Friend" feature.

simon.
05 Aug 2005, 19:00
I really dont get this I have recently upgraded to V3.0.8 and I know get this error:-

ewadmin_simon, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

(EVERYONE GETS THIS ERROR!!!) HELP!

*Runs round in circles!

Erwin
06 Aug 2005, 03:47
Is your contact form/ email members permission in vB AdminCP Options enabled?

T3MEDIA
06 Aug 2005, 06:48
#159Erwin maybe you missed my post.
Or saw it and rather not help? Please advise so I know not to bother you or whatever the case.

Thanks.

simon.
06 Aug 2005, 15:10
Is your contact form/ email members permission in vB AdminCP Options enabled?

How would I know? Could you tell me how to find out...

o1dirtydog
17 Aug 2005, 00:07
great work... installed

ryuuchida
20 Aug 2005, 10:17
Thanks for the great work Erwin! (And to Safiel on another thread (http://www.vbulletin.org/forum/showthread.php?p=759903) for the 3.5 version.)

Fallback
21 Aug 2005, 15:21
This is a great hack.

A great add-on would be to add 'x' reputation points to the member who successfully refers a friend that registers. This would add motivation for users to refer new members.

therczone
22 Aug 2005, 06:30
I think this is a great hack. I customized it to include an AIM form for users to AIM friends with the referral link AND e-mail them. If anyone is interested in the code, just PM me.

If someone is not logged in, it will show up as "Unregistered" and referrerid=0. And if they do not have to be logged in, any abuse of the system could go untraceable. If the user is forced to login, and then abuses the system by spamming people, it would at least (unless they edit it out, but not everyone is that smart) have the referrerid link so you could know who it was who abused it in the event that someone complained about it and could send you the e-mail they received.

I spent a good amount of time pulling my hair out searching through calendar.php, private.php, etc. and here on vBulletin.org for a solution, and finally found it. Below, in green, is the code needed to be added to require users to login to see the refer page.

I don't take any credit for this, other than finding and informing everyone of the code. Here is the author's thread.

http://www.vbulletin.org/forum/showthread.php?t=59859

In sendmessage.php

// Erwin's Refer Hack
if (!$_REQUEST['refer'])
{
if (!($forumperms & CANVIEW) OR !($forumperms & CANEMAIL) OR (($threadinfo['postuserid'] != $bbuserinfo['userid']) AND !($forumperms & CANVIEWOTHERS)))
{
print_no_permission();
}
}
if ($bbuserinfo['userid'] == 0)
{
print_no_permission();
}
// Erwin's Refer Hack

I know print_no_permission(); is already in there, but I couldn't get it to work by inserting it with OR or AND into:

if (!($forumperms & CANVIEW) OR !($forumperms & CANEMAIL) OR (($threadinfo['postuserid'] != $bbuserinfo['userid']) AND !($forumperms & CANVIEWOTHERS)))

If anyone has a cleaner or better way, I'm all ears.

faast
23 Aug 2005, 04:28
Since you have 2 uncached templates, I'm guessing the code has changed slightly between the version of vB3 you are using and RC3. In RC3 I had 1 uncached template and I did this:

In sendmessage.php
Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Add below:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Awesome mod Erwin, thanks for sharing.!

great work.

also, for those who are having trouble installing with the permission error: make sure you are REPLACING and not adding in the code!!! thats what happened to me.

subnet_rx
26 Aug 2005, 01:47
great work.

also, for those who are having trouble installing with the permission error: make sure you are REPLACING and not adding in the code!!! thats what happened to me.

I don't see it noted, but if someone does refer a friend, will it send their friend a referral link using the member's referral ID?

faast
09 Sep 2005, 16:42
I don't see it noted, but if someone does refer a friend, will it send their friend a referral link using the member's referral ID?

Yes. It will send them a referral ID

Inferno Dragon
25 Sep 2005, 12:45
going to install this hack tonight ;)

adill420
30 Sep 2005, 12:50
installed..first the email was going out but nothing in email..then did a fresh start on fresh sendmessage.php now gets a permission problem..

NxTek
20 Oct 2005, 19:59
Will this work for 3.5?

auz1111
23 Oct 2005, 16:33
I think this is a great hack. I customized it to include an AIM form for users to AIM friends with the referral link AND e-mail them. If anyone is interested in the code, just PM me.

If someone is not logged in, it will show up as "Unregistered" and referrerid=0. And if they do not have to be logged in, any abuse of the system could go untraceable. If the user is forced to login, and then abuses the system by spamming people, it would at least (unless they edit it out, but not everyone is that smart) have the referrerid link so you could know who it was who abused it in the event that someone complained about it and could send you the e-mail they received.

I spent a good amount of time pulling my hair out searching through calendar.php, private.php, etc. and here on vBulletin.org for a solution, and finally found it. Below, in green, is the code needed to be added to require users to login to see the refer page.

I don't take any credit for this, other than finding and informing everyone of the code. Here is the author's thread.

http://www.vbulletin.org/forum/showthread.php?t=59859

In sendmessage.php

// Erwin's Refer Hack
if (!$_REQUEST['refer'])
{
if (!($forumperms & CANVIEW) OR !($forumperms & CANEMAIL) OR (($threadinfo['postuserid'] != $bbuserinfo['userid']) AND !($forumperms & CANVIEWOTHERS)))
{
print_no_permission();
}
}
if ($bbuserinfo['userid'] == 0)
{
print_no_permission();
}
// Erwin's Refer Hack

I know print_no_permission(); is already in there, but I couldn't get it to work by inserting it with OR or AND into:

if (!($forumperms & CANVIEW) OR !($forumperms & CANEMAIL) OR (($threadinfo['postuserid'] != $bbuserinfo['userid']) AND !($forumperms & CANVIEWOTHERS)))

If anyone has a cleaner or better way, I'm all ears.

why not just wrap this around the link:

<if condition="$bbuserinfo['userid']"> Refer Link Here </if>

docvader
16 Nov 2005, 06:35
why not just wrap this around the link:

<if condition="$bbuserinfo['userid']"> Refer Link Here </if>

Well, I feel really stupid asking this, but, I'm getting the white screen of "no template" when hitting either "Refer friends" or "Contact us". My templates are in all of my styles, and I've done the php edit without problem. This is a simple hack to install, which is what is making me pull what little hair I have out of my head.

Any suggestions? I know it has to be something simple that I missed.

amcd
21 Nov 2005, 05:03
Thx Erwin, almost something which I'm lookin for. Cant we modify this hack a bit such that this can be used as "invite friends" on forums where registration is closed. I want something like that on my site, where I have closed registrations, and want to give some invites to "certain" users based on "certain" conditions. I'm not into php and html... so can erwin or someone help me on this pls.

Thx
p.s I know of a site which used the same mod and implemented the thing I wanted :)

cbr929rrerion
22 Nov 2005, 05:44
I would be thrilled if some one can show me how to hide everything from subject down to send.. just keep the functionality, just hide it from users, i tried input="hidden" and got a message required info not filled out..

can anyone help?

ThugTheLeet
15 Jan 2006, 01:58
Quickly installed nice works perfect on v3.0.7

:)

murrtex
29 Jan 2006, 01:00
thanks Erwin
how can I block to unregistered users sending refer?

I should block that group because.they are using "refer to friend mail" like their mail account,they can send alots of mail to everywhere..

please inform.
regards.

mountainlife
15 Mar 2006, 05:31
will this work with the latest vb version? if not can someone make it work?

jetjames
13 May 2006, 05:01
Can someone tell me what line the code can be found that needs to be changed?

RS_Jelle
13 May 2006, 13:54
will this work with the latest vb version? if not can someone make it work?
This will work with the latest version of vB 3.0.

If you want to use it on vB 3.5, you need to read this (http://www.vbulletin.org/forum/showpost.php?p=751703&postcount=3) ;)

kafi
20 Jun 2006, 15:53
I am using this with vB 3.5.3 and it works fine except that in the recent past I am getting SPAM through this. I am afraid that SPAMers are using this to resend SPAM throug my email server...

Can I limit number of sent by IP adress or somthing?
Or can you add image verification?
Any other idea?

Sean S
23 Jun 2006, 20:31
I hope you don't mind this Erwin. Basically what I did to control the spams or unwanted guests to use this feature, I just put a conditional around the template so that only members can use the form,



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



just replace the "Sorry, you have to register first to invite your friends." with whatever you want. I didn't really see a point for unregistered members to refer other people to the site when their not registered themselves. Again, every site has different needs, hope this will be a solution for some. Thanks for this hack Erwin, it works great :)

friscogal
02 Sep 2006, 09:52
hi Ewin, i just installed in vb3 3.6 and have the link at the bottom of the page but when i click the link i get a blank page...i see a few others have had the same problem.

what am i doing wrong?

soletrader
03 Sep 2006, 16:54
Any updates on vb 3.6.0?

sandman1970
27 Sep 2006, 15:48
hi,
after long time didnt work with vb 353 admin job, i forgot every thing :)

can anyone tell me step by step HOW to

Add new template "refertofriend"

Thank you.

DDad
02 Nov 2006, 19:26
What I did may not be the same as what you did with this hack. If it works great but if it doesn't, sorry.
I’m using 6.2 and cmps 2.2.1
This is for A)

look for



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



replace with



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



all I did was replace do with refer and everything worked for me

B) has not changed

rnmcd
10 Nov 2006, 04:32
Does this hack create a link for the user to click that pulls up the form?

Regarding preventing this form being used to send spam, could a captcha be used to prevent bots from sending messages? Or don't bots 'use' this type of form?

Thanks.

shallow bay
16 Jan 2009, 01:01
If anyone is using this mod with 3.7 I have it installed and everythign works correct but when i try and send a message i receive this error:

Your submission could not be processed because a security token was missing.


anyone got any ideas?

cgrafx
28 Jan 2009, 03:21
I just successfully added this to 3.7.4. I got the same security token error, and when I compared the existing sendtofriend template with the refertofriend posted here I noticed a hidden input variable was missing:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

I added this under line 50 to the refer a friend template.

I also noticed that upon a completed submission the forms returns to the previously viewed page. That's probably fine, has anyone done this with a custom confirmation landing page?