"Listing URL appears in the emails sent from the listing details page" Mod
1.0.7.x
|
| Price: |
USD 0 |
| Module Type: |
Property Record Mods |
| Version: |
1.0.7.x |
| Supported?: |
Yes (free) |
|
Module Description:
|
|
|
To add detailed listing page URL to the emails sent from the listing page, please, do the following:
1 edit viewlisting.php
$template->set ( 'realtor_mail', validateemail ( $f['userid'], $f_user['email'] ) . '<img src="' . URL . '/templates/' . $cookie_template . '/images/icons/email.png" border="0" alt=""><br>' . $lang['Realtor_Send_Message'] . '</a>' );
to
$template->set ( 'realtor_mail', '<a href="' . URL . '/sendmessage.php?id=' . $f['userid'] . '&listingid=' . $f['id'] . '"><img src="' . URL . '/templates/' . $cookie_template . '/images/icons/email.png" border="0" alt=""><br>' . $lang['Realtor_Send_Message'] . '</a>';
2 edit sendmessage.php
change
$form['message'] = '';
to
if (isset($_GET['listingid'])) { $form['message'] = URL . '/viewlisting.php?id=' . $_GET['listingid']; } else { $form['message'] = ''; }
|
Downloaded / Viewed: 836
Submission Date: 10-08-2007
Last Update: 03-12-2008
|
|
|
|