Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Listings Manager (Realty Manager & Auto Manager):
Emailing Listing Agent

 

 


stanb17
User

Jun 2, 2004, 6:29 AM

Post #1 of 19 (6173 views)
Shortcut
Emailing Listing Agent Can't Post

Hi,

I'm looking for a way to add the correct Listing Agent's email on any given listing page. The current default set-up first takes you to the Listing Agent's Homepage to access the email. This feature would be made even better if the email's "subject" or "Body" fields could be populated with the listing or the url of the listing that the email was launched from. My great powers of comprehension believe that... ERIC has the solution. Am I right? What do I win?

Thanks

Stan
StanTheMan


Eric
Product Specialist


Jun 2, 2004, 10:49 AM

Post #2 of 19 (6168 views)
Shortcut
Re: [stanb17] Emailing Listing Agent [In reply to] Can't Post

Hi Stan,

Thanks for the forum post Smile.

To populate an Email's subject and body fields with words right from the get go, simply add this to the _publish_listing template file:

<a href="mailto:$lfield10$?subject=Inquiry about Listings Number $lfield15$&body=http://$listing_url$$listing_file$>

In the code above I presume that $lfield15$ has the Listings Number information. The URL of the Listings Page is in the body of the Email. $lfield10$ here represents the Email address of the agent.

Note that since Listing Fields and Homepage fields are completely separate in Listings Manager, entering the agent's Email as a Listings Field is the best way to set this up.

If you encounter errors with the code, try replacing all spaces with %20 and add the place _ue to all placeholders, (eg. $lfield15_ue$). That should resolve most issues.

I hope this helps. If you have other questions please let me know.
Cheers,
Eric Lau - Product Specialist
support@interactivetools.com


bcrockett
User

Jun 4, 2004, 11:55 AM

Post #3 of 19 (6109 views)
Shortcut
Re: [Eric] Emailing Listing Agent [In reply to] Can't Post

Ok I have one for you all.

Same situation but the realtor does not want their email address public. They want to use a form with a submit button and have this information from the form sent to their email behind the scene. Lets say the Realtor email is $lfield39$

How?

Thanks,
-Brandon


Eric
Product Specialist


Jun 4, 2004, 4:53 PM

Post #4 of 19 (6100 views)
Shortcut
Re: [bcrockett] Emailing Listing Agent [In reply to] Can't Post

Hi Brandon,

Thanks for the forum post Smile.

Given your requirements, the best suggestion I have is to use a formmail script that takes information from a form and discreetly sends the information to an Email address unknown to the public. I don't have such a script, but I do know it's quite common and you can probably find it for free at hotscripts.com.

I considered other possible methods and without using a formmail script there's no sure-fire way of hiding the Realtor's Email address.

I hope this helps. If you have other questions please let me know.
Cheers,
Eric Lau - Product Specialist
support@interactivetools.com


Durham_rm
User

Jun 4, 2004, 4:58 PM

Post #5 of 19 (6100 views)
Shortcut
Re: [bcrockett] Emailing Listing Agent [In reply to] Can't Post

Yes I had that situation myself and found a good
way was to use a template and put it in a popup.
The email address and other details could be pulled
from the database and used to populate a form styled
template in the popup and the form is then submitted.
I used a contact button on the listing see code.

Code
 <form>  
<input type="button" class="formbutcontact" VALUE="Contact Who Ever &raquo;" onClick="openPopup('http://www.yourdomain.com/rm/exec/search.cgi?template=_contact_popup.htm&view=$listing_num_he$')">
</form>

What goes in the form style template will be up to your field set up
but you can obviously show who its going to and reaffirm listing name or whatever.
Heres the real simple popup code you will need in the head

Code
 <SCRIPT LANGUAGE="JavaScript"><!--  
myPopup = '';

function openPopup(url) {
myPopup = window.open(url,'popupWindow','width=325,height=315');
if (!myPopup.opener)
myPopup.opener = self;
}
//--></SCRIPT>

I use this method where ever the email is likely to be
harvested.

See it in action at http://www.venuehire.co.nz/nelson-venues-1.htm

It's a static page which uses some rm functionality but I
also use it on the static listing pages spat out by rm.

Durham_rm


bcrockett
User

Jun 4, 2004, 6:06 PM

Post #6 of 19 (6095 views)
Shortcut
Re: [Durham_rm] Emailing Listing Agent [In reply to] Can't Post

Excellent! Thanks for sharing.



-BrandonCool


Eric
Product Specialist


Jun 5, 2004, 12:27 PM

Post #7 of 19 (6064 views)
Shortcut
Re: [Durham_rm] Emailing Listing Agent [In reply to] Can't Post

Hi Durham_rm,

Thanks for posting and providing your solution to the issue Cool. It's my third time thanking forum members for contributions today! I think I'm in tears! Angelic

This is great, and by any chance you have suggestions or questions for me please let me know.
Cheers,
Eric Lau - Product Specialist
support@interactivetools.com


bcrockett
User

Jun 5, 2004, 9:01 PM

Post #8 of 19 (6057 views)
Shortcut
Re: [Durham_rm] Emailing Listing Agent [In reply to] Can't Post

Durham_rm and Eric,

I'm back again. Durham_rm I have followed your pop up stuff now my question is when you are submitting where is going? Formmail.pl? If so then what are you labeling @recipient?

Again what I am trying to do is the following:

FSBO's put house into rm. I do not use the homepage but only listing pages. So FSBO's email address is $lfield39$. When someone comes to the website and wants additional information about the house I have them fill out the form and submit it to the FSBO. The email address needs to be hidden. What form to email programs are being used and how do you eliminate spam.

I believe that Scott Edwards is completing this scenerio on www.corvettetraderonline.com. Scott if you are willing that would be great.

Thanks to all.

-Brandon


(This post was edited by bcrockett on Jun 5, 2004, 9:06 PM)


Durham_rm
User

Jun 5, 2004, 10:32 PM

Post #9 of 19 (6052 views)
Shortcut
Re: [bcrockett] Emailing Listing Agent [In reply to] Can't Post

Hi Eric,

sounds you are due darn good holiday.

hi bcrockett,

you set up your form/template just like any mail
form and use whatever mailing script you are
familiar with to process it.
One of the hidden fields would have your recipient
email address as shown below. Most mailing scripts
would have such a field to which email is to be sent.
remember this form is generated dynamically so no
problem with email sitting on static page to be harvested.

<input type=hidden name="email_to" value="$lfield39$">

One thing that may be throwing you is that the form/template
needs to have in it all the rm image drama or will not work. Can be trimmed to this;
<!-- template insert : $images$ -->
<!-- templatecell : image -->
<!-- /templatecell : image -->
<!-- templatecell : no_images -->
<!-- /templatecell : no_images -->

Hope this helps

Durham_rm


annie
User

Jun 16, 2007, 4:37 AM

Post #10 of 19 (4243 views)
Shortcut
Re: [Durham_rm] Emailing Listing Agent [In reply to] Can't Post


In Reply To
Yes I had that situation myself and found a good
way was to use a template and put it in a popup.
The email address and other details could be pulled
from the database and used to populate a form styled
template in the popup and the form is then submitted.
I used a contact button on the listing see code.

Code
  <form>   
<input type="button" class="formbutcontact" VALUE="Contact Who Ever &raquo;" onClick="openPopup('http://www.yourdomain.com/rm/exec/search.cgi?template=_contact_popup.htm&view=$listing_num_he$')">
</form>

What goes in the form style template will be up to your field set up
but you can obviously show who its going to and reaffirm listing name or whatever.
Heres the real simple popup code you will need in the head

Code
  <SCRIPT LANGUAGE="JavaScript"><!--   
myPopup = '';

function openPopup(url) {
myPopup = window.open(url,'popupWindow','width=325,height=315');
if (!myPopup.opener)
myPopup.opener = self;
}
//--></SCRIPT>

I use this method where ever the email is likely to be
harvested.

See it in action at http://www.venuehire.co.nz/nelson-venues-1.htm

It's a static page which uses some rm functionality but I
also use it on the static listing pages spat out by rm.

Durham_rm





I think this might work for me. Do you have a copy of the form script that you are using or can you show me where I can get it please?


Durham_rm
User

Jun 16, 2007, 3:20 PM

Post #11 of 19 (4227 views)
Shortcut
Re: [annie] Emailing Listing Agent [In reply to] Can't Post

Any email script should do it. I'm sorry mine is not available.


annie
User

Jul 15, 2007, 7:17 AM

Post #12 of 19 (3913 views)
Shortcut
Re: [Durham_rm] Emailing Listing Agent [In reply to] Can't Post

Hello again,

Further to your suggestion, I have implemented the template in the pop up, which works like a treat. I haven't yet installed a form script with this because I have a question before I do.

On my _publish_listing template, I have a button labelled 'Email the owner' which launches the pop-up contact form. The problem is that not all property owners will be providing an email address in the associated $lfield$. Therefore, users will see the form, fill it out and then probably be sent to an error page. What I want to achieve is either for the button not to show at all if there is nothing in the email form field or if this is not possible, for a different template to load advising the user that the owner has not provided an email address. Can you provide a possible solution?

Thanking you in advance.

Annie


Durham_rm
User

Jul 15, 2007, 3:39 PM

Post #13 of 19 (3904 views)
Shortcut
Re: [annie] Emailing Listing Agent [In reply to] Can't Post

Hi Annie,

Firstly if you are implementing this form to defeat email harvesters then it may not be the perfect answer. However, as a way of handling contact with a listings it has worked well.

The way things are set up with the listings means that only a listing with an email (that is they are a paid priority listing who always have email) are shown with a button. This was a work around with the with image non image option. A one pixel activates the necessary formatting. So I never had to expressly test for an email although there is some javascript around on the forum that does test for empty field that may be able to display a button or not.

Hope this is helpful.


annie
User

Jul 16, 2007, 3:57 PM

Post #14 of 19 (3885 views)
Shortcut
Re: [Durham_rm] Emailing Listing Agent [In reply to] Can't Post

Hi Durham_rm,

Thank you for your reply. Could I trouble you to post the template code so I could set this up?

The form script that I have found allows for an included php file, which I haven't quite got working yet, but this might hide the email addresses to combat the harvesters, I'm thinking. I've already managed to get the form to work without the use of an include file but obviously the email address appears in the code in the pop-up page.

Thanks for all your help.

Regards,

Annie


Durham_rm
User

Jul 16, 2007, 4:55 PM

Post #15 of 19 (3877 views)
Shortcut
Re: [annie] Emailing Listing Agent [In reply to] Can't Post

Like I said the method would seem less than perfect (as it will show the email in a hidden field).

However here is the template for the popup.



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Contact</title>
<meta name="robots" content="noindex,nofollow">

<style type="text/css">
<!--
body {
padding-right: 2px; padding-left: 2px; padding-bottom: 2px; margin: 0px; font: 11px/14px verdana, sans-serif; padding-top: 5px; background-color: white; background-image: none;
}
.formbox {
border-right: #6f6f6f 1px solid; border-top: #6f6f6f 1px solid; font-size: 11px; border-left: #6f6f6f 1px solid; color: #000000; border-bottom: #6f6f6f 1px solid; font-family: verdana, arial, helvetica, sans-serif; background-color: #ffffcc;
}
td {
font: 11px/14px verdana, sans-serif;
color : Black;
}
-->
</style>
</head>
<body onLoad="self.focus();document.venuecontact.name_from_req.focus()">
<form name=venuecontact enctype="multipart/form-data" method=post
action=http://www.example.com/contact.php >
<input type="hidden" name="subject" value="Enquiry - VenueHire Site">
<table cellspacing="0" cellpadding="0" width="100%" bgcolor="#ffffff" align="left">
<tr><td bgcolor="#ffffff" align="left">
<img src="http://www.example.com/logo.gif" width="155" height="41" border="0" alt="">
<!-- template insert : $images$ -->
<!-- templatecell : image -->
<!-- /templatecell : image -->
<!-- templatecell : no_images -->
<!-- /templatecell : no_images -->
</td></tr><tr><td>
<input type=hidden name="email_to" value="$lfield17$">
<input type=hidden name="Listing_Name" value="$lfield6$">

<table cellspacing="0" cellpadding="3" width="100%" bgcolor="#ffffff" border="0" align="center"><tr><td align="left">
<strong>
Contact &nbsp;<b>$lfield6$</b> </td></tr><tr><td>
Your Name:<br>
<input type=text style="width: 300px; height: 18px" name="name_from_req" class="formbox">
</td>
</tr>
<tr>
<td>
The Email Address you want to reply to:<br>
<input type=text style="width: 300px; height: 18px" name="email_from" class="formbox">
</td>
</tr>
<tr>
<td>
Your Phone Number:<br>
<input type=text style="width: 250px; height: 18px" maxlength="20" size="25" name="phone" class="formbox">
</td>
</tr>
<tr>
<td>
Your enquiry:<br>
<textarea cols="46" rows="5" name="message_req" class="formbox"></textarea>
</td>
</tr>
<tr>
<td align="right" width="290">
<input type="submit" value="Send" name="add" class="formbox">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>


annie
User

Jul 17, 2007, 6:42 AM

Post #16 of 19 (3862 views)
Shortcut
Re: [Durham_rm] Emailing Listing Agent [In reply to] Can't Post

Hi Durham_rm,

Sorry to bother you again. It was the code for the button using the one pixel method that I was after. I don't really want to have to resort to a javascript option to hide/unhide the button because not everyone has javascript turned on. I realize the pop-up is javascript but I can live with this.

An example of my listings page can be seen at http://www.ukpropertiesdirect.co.uk/property/listings/l0003.html to give some idea of what I'm working on. As you'll notice, I'm already using the no_image template cell to display photographs (or not). Will your method work for me?

Here's the code in my _publish_listing template.


Code
               <table width="100%" border="0" cellspacing="9" cellpadding="5"> 
<tr>
<td width="100%" valign="top">
<h1>$lfield2$, $lfield1$</h1>
<p align="justify"><span class="price"><b>&pound;$lfield4$</b></span>&nbsp;&nbsp;
$lfield11$</p>
<p align="justify"><b>Property Status: &nbsp;<u>$lfield16$<font color="#FF0000">$lfield17$$lfield18$</font></u></b></p>
<div align="center">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td valign="top" width="1%"><b><img border="0" src="../../../../images/spacer.gif" width="100" height="1"><br>
Type:&nbsp;</b></td>
<td valign="top" width="99%">$lfield5$</td>
</tr>
<tr>
<td valign="top" width="1%"><b>Bedrooms:&nbsp;</b></td>
<td valign="top" width="99%">$lfield6$</td>
</tr>
<tr>
<td valign="top" width="1%"><b>Receptions:&nbsp;</b></td>
<td valign="top" width="99%">$lfield7$</td>
</tr>
<tr>
<td valign="top" width="1%"><b>Bathrooms:&nbsp;</b></td>
<td valign="top" width="99%">$lfield8$</td>
</tr>
</table>
</div>
<p><b>Features:<br>
</b>$lfield9$<br>
<br>
$lfield10$</p>
<p align="center"><font color="#FA7E04">____________________________</font>
<p>Contact the owner direct for more information
or to arrange a viewing:
<p>&nbsp;
<div align="center">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td width="1%"><b><img border="0" src="../../../../images/spacer.gif" width="100" height="1"><br>
Daytime Tel:&nbsp;</b></td>
<td width="99%">$lfield12$</td>
</tr>
<tr>
<td width="1%"><b>Evening Tel:&nbsp;</b></td>
<td width="99%">$lfield13$</td>
</tr>
<tr>
<td width="1%"><b>Mobile:&nbsp;</b></td>
<td width="99%">$lfield14$</td>
</tr>

<td width="100%" colspan="2"><form><input type="button" class="search" VALUE="Email the Owner" onClick="openPopup('http://www.ukpropertiesdirect.co.uk/cgi-bin/property/exec/search.cgi?template=_contactvendor.html&view=$listing_num_he$')"></form></td>
</tr>
</table>
</div>
<p align="center" class="small"><a href="javascript:history.back(1)"><b>«
Back</b></a>
</td>
<td valign="top" align="center">
<p class="small">Click the photo(s)<br>to enlarge<br><!-- template insert : $images$ --> <!-- templatecell : image -->
<p class="small"><a href="$listing_url$/images/$file$" rel="lightbox" title="$desc$" target="_blank"><img class="imgborder" src="$listing_url$/images/$thumbnail$" width=$thumbnail_width$ alt="Photo"></a><br>
$desc$<br>
<!-- /templatecell : image -->



<!-- templatecell : no_images -->
<p>
<img class="imgborder" src="$listing_url$/images/no_image.gif" width=$thumbnail_width$ alt="No Image Available" title="No Image Available"><!-- /templatecell : no_images --></td></tr>
</table>

Many thanks. Annie


Durham_rm
User

Jul 18, 2007, 5:45 PM

Post #17 of 19 (3823 views)
Shortcut
Re: [annie] Emailing Listing Agent [In reply to] Can't Post

Hi Annie,

The site I use rm on is something of a hybrid.

The lpx is used in the show listings which I use for my search and email. It does not appear applicable to your situation. You should maybe look for a javascript solution that if an email value does not exist then the button does not show.


annie
User

Jul 21, 2007, 7:27 AM

Post #18 of 19 (3752 views)
Shortcut
Re: [Durham_rm] Emailing Listing Agent [In reply to] Can't Post

Thanks anyway. I've managed a workaround by creating an additional checkbox field to indicate whether an email address is present or not. If ticked, then the words, 'Click to Send a Message' appears and opens a pop-up.


Durham_rm
User

Jul 22, 2007, 12:44 AM

Post #19 of 19 (3724 views)
Shortcut
Re: [annie] Emailing Listing Agent [In reply to] Can't Post

I'm glad you found a way to solve the problem.

Sorry I couldn't been more of a help and thanks for getting back a letting us know you had found a solution.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4