Extension:Send2Friend

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Send2Friend

Release status: stable

Implementation Tag
Description Allows users to send an email notification to a friend via a form.
Author(s) Information Architects
Version 1.0
Download send2friend-1.0.zip
Added rights GPL

The Send2Friend extension allows wikimasters to add a "Send to Friend" form to their wiki. This can be done on a per-article basis (Magic Words), or site wide (PHP inclusion).

[edit] What does it do exactly?

Send2Friend produces a basic form which send a pre-scripted email notification to a recipient, asking them to visit the article from which the form was submitted. The form checks if the user is logged in; If so, the form displays two fields:

  • Friend's Name
  • Friend's Email

If the user is not logged in, it displays the following:

  • Your Email
  • Friend's Name
  • Friend's Email

After submitting the form, the user is taken to a special page which shows a confirmation message, and then redirected back to the article they were viewing.

[edit] Usage

Send2Friend supports two types of usage:

[edit] Magic Words

Article authors can include a copy of the form anywhere in their article or template with the following tags:

<S2F></S2F>

[edit] Skin inclusion

If you would like to have the extension available across your whole website, simply put the following PHP code in the skins/<YourSkin>.php file, in the desired location:

<?php echo S2FForm::show(); ?>


[edit] Installation

1. Move the unzipped files to your extensions directory.

2. Place the following line of code in your LocalSettings.php file:

require_once($IP.'/extensions/send2friend.php');

That's it!

[edit] Contact

Please visit Information Architects if you have any questions.

Personal tools