View Full Version : Refer to Friend v1.0
This was coded by Erwin for 3.07
http://www.vbulletin.org/forum/showthread.php?t=59708
i have ported for 3.5.x thnkx for Erwin for this g8 hack
Installation is easy
read the readme file
in navbar template put this code somewhere
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
thats it :rolleyes:
BoYagoob
27 Dec 2005, 06:27
Very nice hack, Hasann ..
but can you rename this file: sendmessage.php to a different name, because there is already a file in our forums like this:
http://www.vbulletin.org/forum/sendmessage.php
Thanks a lot bro.
you must new sendmessage.php overwrite with old sendmessage.php
isnt this like the invites system ?
kadafi_alive
27 Dec 2005, 09:42
Hi,
For some reason, it doesn't synch with the template.
See this image (http://www.islamdot.com/notsynced.JPG)
nexialys
27 Dec 2005, 13:36
@Hasann, this is not the proper way to do things...
you have to use the Hooks system when possible, so people don't have to edit their files.
also, you can't ask for users to overwrite their other files, so if there is some file to edit, please provide the instructions for editing, instead of giving a file to overwrite.
It is possible to have this shown in the User CP section?
Psionic Vision
27 Dec 2005, 17:19
It is not exactly like invites system, because it does not send out invites, but instead only simple referrerid links ;P
Chris M
27 Dec 2005, 19:19
Hasann - Please write instructions in a .txt file of how to modify the sendmessage.php file
3.1 No "spreading of copyrighted Material": Please do not upload, attach or post anything that is copyright or licensed without prior consent of the owner. For example, you cannot upload or attach full copies of vBulletin program files. Partial code reference is allowed, as long as it is not substantial - this will be decided by the staff.
Thank you :)
Chris
Cool hack :D
Thank you for sharing.
Hi
I would like this to actually show in the navbar, instead its just above it, or below it :(
How can i change this
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
To this
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Regards
Bashy
nexus851
04 Jan 2006, 02:12
how do u add multiple SEND TO email fields so that you can send a batch of emails at once to all your friends, rather than just 1
.. is edit 1 and 3 the same piece of code, just in 2 different ways?
Detomah
20 Jan 2006, 16:51
As a lot of other people probably do, I use the sendmessage.php file on my contact page.
Does the fact you have to overwrite that file for this addon effect the normal contact page bits in any way?
I would love to use this addon, but i'm not going to until I am clear about this issue.
Lovely it's working like a charm except the look of the skin. Take a look...
http://forums.philosopherslegacy.net/sendmessage.php?do=sendtofriend&refer=1
How can I fix it?
Darkfire122333
01 Feb 2006, 17:58
Here is a simple code to change it to what you wanted bashy, just enter this into the navbar and it will go into the navbar.. Enjoy
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Would it be possible to have this come up after someone signs up for your site?
http://img67.imageshack.us/img67/1696/probfr5qp.jpg
How do I fix that? Please guide me...
How do I fix that? Please guide me...
open refertofriend template and change this code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I tried that and it still the same.
Darkfire122333
05 Feb 2006, 18:06
Would it be possible to have this come up after someone signs up for your site?
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
There you go, Enjoy.
Darkfire122333
05 Feb 2006, 18:08
I tried that and it still the same.
What do you exactly want changed? If I know the source that you wanted changed, I could modify it for you.
Just quote what you wanted changed, and a little definition of what you wanted it to look like, and I could work from there.
Look at this image...
http://img67.imageshack.us/img67/1696/probfr5qp.jpg
It's looking kinda messed up because of my skin as it is modified differently. You see, that blank black bg thingy is messing up with the skin...
Darkfire122333
05 Feb 2006, 19:13
In Template refertofriend
Replace:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
With:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
DEMO:
http://fortsask.be/sendmessage.php?do=sendtofriend&refer=1
Hint: To remove the mini borders, just excange the 1's to 0's and they will be gone.
Yeah it's working now. Thank you.
Darkfire122333
05 Feb 2006, 19:27
No Problem, Just glad to help.
blackpheonix
06 Feb 2006, 23:35
sorry i didnt like your template very much so i changed it a little hope you dont mind :) in case anyone else wants teh same template as me
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
clasione
11 Feb 2006, 17:07
I could not find the last bit of code in my document for this modification...... I'm using 3.5.3
Someone should work out a plug in for this...... I though that was what 3.5.3 was really all about... using plug-ins instead of having to change files....
Is it possible NOT to include the refer ID while inviting friends? It seems I can't do that because I'm getting a permission error.
cbr929rrerion
28 Feb 2006, 03:05
I am not sure how to word this but due to this tool not using image verification it opens up your domain for a security risk and spamming.
I found out the hard way after 65 Gig of email traffic thats was traced back.
I have since uninstalled this mod to say the least and if image verification does get added I would consider adding it back. But only if security is addressed.
I clicked install, but it would be nice if you would update your manual so it also is compatible with 3.5.4
anyway, nice hack
I am not sure how to word this but due to this tool not using image verification it opens up your domain for a security risk and spamming.
I found out the hard way after 65 Gig of email traffic thats was traced back.
I have since uninstalled this mod to say the least and if image verification does get added I would consider adding it back. But only if security is addressed.
wow, and uninstalled it
ThePimp
06 Mar 2006, 14:25
Someone should write an add-on for this that collects the email addresses. :)
good idea, but don't forget the security issue then
Is this just "Upload the product" or do we have to make changes to the file as well?
mountainlife
15 Mar 2006, 23:00
has security with a verify image been added, if not can anyone do this we REALLY need a refer a freind!
Exitilus
27 Mar 2006, 22:46
You can always set some if conditions making a person be a member and making them have over a xx amount of posts to get around someone spamming.
Other than that it seems pretty good. going to install and test it here in a bit
Edit: woops didn't notice this required code edit So I won't be installing :) But stil you could add if conditions like i said for security
---MAD---
10 Apr 2006, 09:22
this doesnt seem to work on 3.5.4
hotwheels
12 Apr 2006, 01:17
I too can't seem to get this to work...........3.5.4
It has to pieces of .php change's that are the same coding.. This code if (!$_REQUEST['refer'])
{
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();
}
}
and this code are in the same location 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']);
}
}
serhat_kk
12 Apr 2006, 20:57
Thanks.How do i add verification picture ?
When i click send it says "you dont have permission" etc.... where can i edit this permission ?
serhat_kk
14 Apr 2006, 22:06
When i click send it says "you dont have permission" etc.... where can i edit this permission ?
lazyseller
19 Apr 2006, 15:35
any fix for 3.54 yet ?
serhat_kk
21 Apr 2006, 15:36
When i click send it says "you dont have permission" etc.... where can i edit this permission ?
Help pls...
serhat_kk
21 Apr 2006, 22:37
can someone help us?
I also have the no permission issue, anyone know how to fix this???
Thanks
redlabour
23 May 2006, 11:08
Still waiting for this Hack fully Hook based without editing the sendmessage.php File .
Any updates soon ?
Very nice hack for vb 3.5.4! Cheers
kobescoresagain
03 Jun 2006, 15:44
How can I change the message, I wanted to add a little dscription about hte forum into it. Thanks
Is this not vulnerable by spammers to use it for sending out spam through our server?
soletrader
06 Aug 2006, 13:22
update for 3.6 gold?
paul41598
08 Aug 2006, 21:53
I have this working on 3.5.4 now
I liked this hack on 3.5.x does it work on 3.6.5
EDIT. Ooops found out hw to do it here. http://www.vbulletin.org/forum/showthread.php?t=125633
Is it bad to edit that file?
Is there one of these written for 3.6. yet? I can't find it anywhere.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.