################################################################# ## MOD Title: Tell A Friend ## MOD Author: - Hardout - Duncan Jones < duncan____jones@hotmail.com > ## - Brewjah < blackhash@rogers.com > ## - R. U. Serious - www.handykoelsch.de ## MOD Description: This MOD will add a "tell a friend" feature. ## Which emails the recipent telling them about ## a certain post, and linking to it. ## MOD Version: 1.3.0 ## ## Installation Level: (easy) ## Installation Time: 5 Minutes ## Files To Edit: viewtopic.php , ## templates/subSilver/viewtopic_body.tpl ## lang_main.php ## Included Files: tellafriend.php, tellafriend_body.tpl, tellafriend_email.tpl ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ ############################################################## ## ## Version History: ## 1.3.0 24/08/2002 - Fix Problems with uninitialized variables and lost session_ids ## Now, the problems with empty links, empty msg_bodys, multiple relogins should be fixed. ## 1.2.0 05/05/2002 - Make use of emailer.php (advanced spam tracking, footnote in emails etc...) ## - Only allow registered users can use this ## - Sendername and Senderemail are taken from userdata and cannot be changeg ## - Mail-body (textarea) is also in lang_files, not in .tpl as before ## - R. U. Serious ## 1.1.2 05/03/2002 - Fixed small template issue to parse a couple {VARIABLES} ## 1.1.1 05/03/2002 - Fixed MOD to comply with phpBB Coding Standards ## - Brewjah ## 1.0.0 - Original content and functions created ## - Hardout ## ################################################################# ## ## Author Note: ## This should work like the "email through board"-function of phpBB. ## If that works, this should, too. Still some people reported problems with smtp. ## As of now (1.3.0), nobody seems to know the answer yet. ## ## Put tellafriend.php in your main phpBB-directory. ## Put tellafriend_body.tpl in templates/subSilver/ ## Put tellafriend_email.tpl in languages/lang_english/email ## ################################################################# ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ################################################################# # #-----[ OPEN ]------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------ # $template->pparse('body'); # #-----[ BEFORE, ADD ]------------------------------------------ # $template->assign_vars(array( "TELL_LINK" => append_sid("http://".$HTTP_SERVER_VARS['HTTP_HOST'].$HTTP_SERVER_VARS['PHP_SELF']."?t=$topic_id", true))); # #-----[ FIND ]------------------------------------------ # 'L_GOTO_PAGE' => $lang['Goto_page'], # #-----[ AFTER, ADD ]------------------------------------------ # 'L_TELL_FRIEND' => $lang['Tell_Friend'], # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_main.php # #-----[ FIND ]------------------------------------------ # // // That's all Folks! # #-----[ BEFORE, ADD ]------------------------------------------ # // // TELL A FRIEND $lang['Tell_Friend'] = "Email to a Friend."; $lang['Tell_Friend_Sender_User'] = "Your Name:"; $lang['Tell_Friend_Sender_Email'] = "Your Email:"; $lang['Tell_Friend_Reciever_User'] = "Your Friend's Name:"; $lang['Tell_Friend_Reciever_Email'] = "Your Friend's Email:"; $lang['Tell_Friend_Msg'] = "Your message:"; $lang['Tell_Friend_Title'] = "Tell A Friend"; $lang['Tell_Friend_Body'] = "Hi,\nI just read the topic >>{TOPIC}<< at {SITENAME} and thought you might be interested. Here is the link: {LINK}\n\nGo and read it and if you want to reply you can register for your own account if you have not done so already."; # #-----[ OPEN ]------------------------------------------ # templates/subSilver/viewtopic_body.tpl # #-----[ FIND ]------------------------------------------ # {S_TIMEZONE} # #-----[ REPLACE ]------------------------------------------ # {S_TIMEZONE}
{L_TELL_FRIEND}
# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM