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
  #167  
Old 05-19-2005, 08:10 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
What did you want me to say?
#159
Reply With Quote
  #168  
Old 05-29-2005, 02:21 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by T3MEDIA
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:
$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

<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>Optional<br>
		 		 		 	Message:</b></td>
	<td class="alt1"><textarea name="optemailmessage" rows="5" cols="50"></textarea><br>
		 		 			<textarea name="emailmessage" rows="10" cols="50" readonly>Hey!

Your friend $bbuserinfo[username], is in the $vboptions[bbtitle] network and would like you to join them! Join and you will immediately be connected to the people who have invited you, and others in their networks!

$vboptions[bbtitle] is an online service that lets you meet new people, share photos, browse profiles, and chat online!

We'll see you inside,
</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="$vboptions[bburl]/referrals.php" />
	<input type="hidden" name="refer" value="1" />
	<input type="hidden" name="do" value="dosendtofriend" />
	</td>
</tr>
</table>
			<br>
			<div align="center">
				<p>or<br>
		 		<a href="mailto:Enter%20Friend%27s%20Email?Subject=$bbuserinfo[username]%20has%20invited%20you%20to%20join%20$vboptions[bbtitle]!&amp;Body=Join%20me%20at%20$vboptions[bbtitle]!%20%0D%0DJust%20click%20here%20to%20join:%20$vboptions[bburl]/forums/register%2Ephp%3Freferrerid%3D$bbuserinfo[userid]">Click here</a> to automatically place this link in your email!
			</div>
		</form>

$footer

</body>
</html>
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
Reply With Quote
  #169  
Old 05-29-2005, 04:10 PM
RapCapital RapCapital is offline
 
Join Date: Mar 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="Green">* RapCapital installs</font>

I love the hack! Good work Erwin!
Reply With Quote
  #170  
Old 05-30-2005, 05:14 PM
oceanart oceanart is offline
 
Join Date: May 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is exaclty what I was looking for - a big thanks ERWIN!
Reply With Quote
  #171  
Old 06-03-2005, 09:45 PM
wolfgrrl wolfgrrl is offline
 
Join Date: Apr 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WIll referred people have to be approved by moderation if the board is set not to accept new applicants?
Reply With Quote
  #172  
Old 06-04-2005, 12:41 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
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.
Reply With Quote
  #173  
Old 06-16-2005, 02:03 AM
lem's Avatar
lem lem is offline
 
Join Date: May 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I posted a dumb question, then I saw that your hack already covers everything. Thanks a lot!

Thanks,

Lem
Reply With Quote
  #174  
Old 06-20-2005, 08:27 AM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love the mod and use it on 2 different boards. Any plans to port it over as a plugin for 3.5?
Reply With Quote
  #175  
Old 07-13-2005, 05:37 AM
Caveman2k2 Caveman2k2 is offline
 
Join Date: Mar 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks install

Great hack! Installed without a hitch.
Reply With Quote
  #176  
Old 07-14-2005, 07:31 PM
bigdog829 bigdog829 is offline
 
Join Date: Apr 2005
Location: Michigan
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="green">*bigdog829 installs</font>

Very easy & nice hack thanks
Reply With Quote
  #177  
Old 07-15-2005, 03:56 AM
MediaHound MediaHound is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #178  
Old 07-18-2005, 01:47 AM
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Location: sydney
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot
Reply With Quote
  #179  
Old 07-18-2005, 02:10 AM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by csidlernet
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.
Reply With Quote
  #180  
Old 07-25-2005, 01:06 PM
brainfreeze brainfreeze is offline
 
Join Date: Jun 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

**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.
Reply With Quote
  #181  
Old 08-05-2005, 05:00 PM
simon. simon. is offline
 
Join Date: Apr 2005
Location: UK
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
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 03:22 PM.


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.05567 seconds
  • Memory Usage 2,363KB
  • Queries Executed 30 (?)
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
  • (1)bbcode_code
  • (4)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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