Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Refer Friend Details »»
Refer Friend
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 01-04-2004 Last Update: 01-07-2004 Installs: 293
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 05-13-2006, 03:01 AM
jetjames jetjames is offline
 
Join Date: Apr 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone tell me what line the code can be found that needs to be changed?
Reply With Quote
  #203  
Old 05-13-2006, 11:54 AM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mountainlife
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
Reply With Quote
  #204  
Old 06-20-2006, 01:53 PM
kafi kafi is offline
 
Join Date: Apr 2004
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #205  
Old 06-23-2006, 06:31 PM
Sean S's Avatar
Sean S Sean S is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - Refer $vboptions[bbtitle] to a Friend</title>
$headinclude
</head>
<body>
$header
$navbar

<if condition="$bbuserinfo[userid] == 0">
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" class="tborder">
<tr>
	<td class="thead" colspan="2"><b>Refer $vboptions[bbtitle] to a Friend</b></td>
</tr>
<tr>
	<td class="alt2">Sorry, you have to register first to invite your friends.</td>
</tr>
</table>
</td></tr></table>
<else />
<form action="sendmessage.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />

<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
	<td class="thead" colspan="2"><b>Refer $vboptions[bbtitle] to a Friend</b></td>
</tr>
$logincode
<tr>
	<td class="alt2"><b>Send To (Person's Name):</b></td>
	<td class="alt2"><input type="text" class="bginput" name="sendtoname" size="25" maxlength="75" /></td>
</tr>
<tr>
	<td class="alt1"><b>Send To (Email Address):</b></td>
	<td class="alt1"><input type="text" class="bginput" name="sendtoemail" size="25" maxlength="100" /></td>
</tr>
<tr>
	<td class="alt2"><b>Subject:</b></td>
	<td class="alt2"><input type="text" class="bginput" name="emailsubject" value="Join me at this website!" size="25" maxlength="100" /></td>
</tr>
<tr>
	<td class="alt1" valign="top"><b>Message:</b></td>
	<td class="alt1"><textarea name="emailmessage" rows="10" cols="50">I thought you might be interested in joining me at $vboptions[bbtitle]! Click here to check it out:
$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]

From,
$bbuserinfo[username]
</textarea></td>
</tr>
</table>
</td></tr></table>

<br />

<table cellpadding="2" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
<tr>
	<td align="center">
	<input type="submit" class="button" value="Send Email Now!" accesskey="s" />
	<input type="hidden" name="t" value="$threadid" />
	<input type="hidden" name="url" value="$url" />
	<input type="hidden" name="refer" value="1" />
	<input type="hidden" name="do" value="dosendtofriend" />
	</td>
</tr>
</table>

</form>
</if>

$footer

</body>
</html>
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
Reply With Quote
  #206  
Old 09-02-2006, 07:52 AM
friscogal friscogal is offline
 
Join Date: Aug 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #207  
Old 09-03-2006, 02:54 PM
soletrader soletrader is offline
 
Join Date: Jul 2006
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any updates on vb 3.6.0?
Reply With Quote
  #208  
Old 09-27-2006, 01:48 PM
sandman1970 sandman1970 is offline
 
Join Date: Feb 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #209  
Old 11-02-2006, 05:26 PM
DDad's Avatar
DDad DDad is offline
 
Join Date: Mar 2005
Location: Boston
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
// ############################### start send to friend permissions ###############################
 if ($_REQUEST['do'] == 'sendtofriend' OR $_POST['do'] == 'dosendtofriend')
replace with

Code:
// ############################### start send to friend permissions ###############################
if ($_REQUEST['refer'] == 'sendtofriend' OR $_POST['refer'] == 'dosendtofriend')
all I did was replace do with refer and everything worked for me

B) has not changed
Reply With Quote
  #210  
Old 11-10-2006, 02:32 AM
rnmcd rnmcd is offline
 
Join Date: Aug 2004
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #211  
Old 01-15-2009, 11:01 PM
shallow bay shallow bay is offline
 
Join Date: Jul 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

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

anyone got any ideas?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04819 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete