
MikeB
Staff
/ Moderator

Aug 10, 2006, 2:19 PM
Post #10 of 49
(75365 views)
Shortcut
|
|
Re: [sammahoney] Tutorial: Google Maps
[In reply to]
|
Can't Post
|
|
Hi Sam, Thanks for the post! I'll go over your questions for you one at a time: Popup Windows First, to set the specific size of the pop-up window using the same method as you're currently using on your site you'll just want to make a couple of changes to the /templates/_realty/_google_map.html template file. I'd recommend making a backup copy of this file before you make any changes to it. You'll want to find this line of code:
<!-- template insert : $list$ --> Right before this line you'll want to add the JavaScript you're using on your site for Popup Windows:
<script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> The next step will be to find this bit of code in the same google_map.html template file:
var html = "<div class='bubble_text'><table valign='top'><tr><td><img src='$listing_url$/images/$thumbnail$' width='$thumbnail_width$'></td><td valign='top' style='padding-top: 5px;'> <b>REF: $lfield10$</b><br/><br/> $lfield11$<br/><br/> $lfield5$<br/><br/><a href='$listing_url$/$listing_file$'>More Details</a></td></tr> </table></div>"; You can modify it to look like this:
var html = "<div class='bubble_text'><table valign='top'><tr><td><img src='$listing_url$/images/$thumbnail$' width='$thumbnail_width$'></td><td valign='top' style='padding-top: 5px;'> <b>REF: $lfield10$</b><br/> <br/>$lfield11$<br/><br/> $lfield5$<br/><br/><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif" onclick="MM_openBrWindow(\'/listman/listings/$listing_file$\',\'Advantage\',\'scrollbars=yes, width=450,height=400\')"><a href="#" target="_self">More Details</a></td></tr></table></div>"; Keep in mind that although it's a bit too wide to leave it on one line in the forum post, you'll want to keep the above piece of code on one line in your HTML Editor. You'll notice that I just modified the HTML so it references your MM_openBRWindow script similar to how it's being used on your http://www.advantagecroatia.com/listman/listings/ page. TLabels For your Tlabels, it's a bit out of the scope of Listings Manager but I've taken a quick look and it looks like the issue actually just has to do with this line of code in your /templates/_realty/_google_map.html file:
<script src="tlabel.2.05.js" type="text/javascript"></script> It seems that this JavaScript file is in /listman/templates/_realty/ so it works when you view the template, but when you're looking at the search results you're actually looking at the search.cgi file (which is in the /exec/ directory). My suggestion would be to change this line of code to an absolute path from the root so it would look like this:
<script src="/listman/templates/_realty/tlabel.2.05.js" type="text/javascript"></script> Google Earth I'm not actually too sure how something like this would work and it really depends on what you'd need to pass to GoogleEarth and what's needed to actually create a new .kmz file. If you have any more information about this I might be able to offer some suggestions for you and let you know if this might be possible. I hope this helps and if you have any other questions feel free to let me know! Cheers, Mike Briggs - Product Specialist support@interactivetools.com [hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url] Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]
(This post was edited by MikeB on Aug 10, 2006, 2:20 PM)
|