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):
Image Hardcoding

 

 


glenw
User

May 25, 2007, 7:45 AM

Post #1 of 4 (1532 views)
Shortcut
Image Hardcoding Can't Post

Hi,

I am trying to modify the _publish_listing.html in Realty Manager to display 1 large image on the left and 4 smaller thumbnails to the right of this. I have looked through the forum and cam across one that seemed to have the answer.

http://www.interactivetools.com/iforum/Products_C2/Listings_Manager_%28Realty_Manager_%26_Auto_Manager%29_F3/gforum.cgi?post=23340;search_string=Image%20Hardcoding;guest=3877826&t=search_engine#23340

Now this explained about adding in this line of code to hardcode the images onto the page.

The image tag would look like this:

<img src="$listing_url$/images/$listing_num$_1.jpg">

You could then of course add any additional tags, such as width, height, etc.

This will output something along the lines of:

<img src="http://yoursite.com/path/to/images/12_1.jpg">

My Code looks like this.

<!-- template insert : $images$ -->
<!-- templatecell : image -->
<p><a href="$listing_url$/images/$file$" target="_blank"><img src="$listing_url$/images/$listing_num$_1.jpg" alt="Photo"></a><br>
<font color="#FFFFFF" size=1 face="ms sans serif">$desc$</font><br>
<!-- /templatecell : image -->
<!-- templatecell : no_images -->
<p>
<table border=1 cellspacing=0 cellpadding=0 width=140 height=100>
<tr>
<td bgcolor="#EEEEEE" align=center><font face="tahoma,arial" size=4><b>Photo<br>
Not<br>
Available</b></font></td>
</tr>
</table>
<!-- /templatecell : no_images -->

The only problem is I can not seem to get it to display anything other than a list of the 5 images, even when hardcoded they still repeat down the page.

Can anyone point me in the right direction with what I think is a simple error in my coding.

Many thanks

Glen


cclinton
User

May 25, 2007, 11:59 AM

Post #2 of 4 (1512 views)
Shortcut
Re: [glenw] Image Hardcoding [In reply to] Can't Post

Glen

We use that code on our listing pages and don't seem to have any trouble. I think the main difference between yours and ours is that you are using full quotes.
Yours: <img src="$listing_url$/images/$listing_num$_1.jpg">
Ours: <img src='$listing_url$/images/$listing_num$_1.jpg' border=1 width='300' alt='Property Photo'>

This might be due to our comment (link) being part of a larger PHP link.

The other item to consider is that our single photo is not contained withing the image container:
<!-- template insert : $images$ -->
<!-- templatecell : image -->
images here
<!-- /templatecell : image -->


Try this:
<table border=1 cellspacing=0 cellpadding=0 width=140 height=100>
<tr>
<td><a href="$listing_url$/images/$file$" target="_blank"><img src="$listing_url$/images/$listing_num$_1.jpg" alt="Photo">
</td>
<td>
<!-- template insert : $images$ -->
<!-- templatecell : image -->
<a href="$listing_url$/images/$file$" target="_blank"><img src="$listing_url$/images/$thumbnail$" width=$thumbnail_width$ alt="Photo"></a>
<!-- /templatecell : image -->
<!-- templatecell : no_images -->
<table border=1 cellspacing=0 cellpadding=0 width=140 height=100> <tr> <td bgcolor="#EEEEEE" align=center><font face="tahoma,arial" size=4><b>Photo<br> Not<br> Available</b></font></td> </tr> </table>
<!-- /templatecell : no_images -->
</td>
</tr>
</table>


ChetW
Staff


May 26, 2007, 1:38 PM

Post #3 of 4 (1393 views)
Shortcut
Re: [glenw] Image Hardcoding [In reply to] Can't Post

Hi glenw,

Thanks for the post!

I have been reading through this and I think that your best place to start will be moving the single image outside the image templatecell like cclinton had suggested. Give this a try glen and if you have any other questions please feel free to ask. :)
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
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 Priority Consulting.



glenw
User

May 30, 2007, 10:23 AM

Post #4 of 4 (1209 views)
Shortcut
Re: [cclinton] Image Hardcoding [In reply to] Can't Post

Hey there,

Sorry for the delay. Thanks for the post it worked an absolute treat Smile Thought i was going to go mad. But its looking really good now. Still got to do some tidying up but you can see how it looks here.

http://www.daveystoneinternational.com/listman/listings/l0007.html

Thanks again for your help.

Cheers

Glen

 
 
 


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