You are not logged in! If you have not registered yet then click here to join the community!

TOLRA Community Forums

Go Back   TOLRA Community Forums > TOLRA Products (PHP Scripts) > Web Directory Script > Directory Script Mods


Thread Tools Display Modes
Old 19-10-2008, 05:09 PM
Paul's Avatar
Paul Paul is offline
Join Date: May 2006
Location: UK
Posts: 568
Blog Entries: 3
Tell a Friend

The attached mod creates a form on the listing detail page and allows a message along with a link to the page to be emailed to a friend.

It requires V4 of the directory script.

To install:
  • Create a folder called extensions if it doesn't already exist.
  • Unpack the attached zip file
  • Upload the tellafriend folder from the archive to the extensions folder on the server.
  • Create a file called extensioninfo.php with the following:
    $extBasePath = dirname(__FILE__) . '/';
    $g_events->addLoadableListener('draw_detail', 'tellafriend', 'tellafriend', 'draw_detail');
  • Upload extensioninfo.php to the extensions folder on the server.
  • Add {$tellafriend} to the t!wddetail.html template where the form should be shown.
Note: If the file extensioninfo.php already exists on the server then edit it and add the following line just above ?>:

$g_events->addLoadableListener('draw_detail', 'tellafriend', 'tellafriend', 'draw_detail');

Note: This mod does have a simple human verification check but due to the nature of allowing emails to be sent to arbitrary email addresses this may make your installation a target for spammers, therefore use at your own risk.
Attached Files
File Type: zip tellafriend.ZIP (1.9 KB, 21 views)

Last edited by Paul; 19-10-2008 at 05:12 PM.
Reply With Quote
Sponsored Links



Thread Tools
Display Modes

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 +1. The time now is 09:57 AM.