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):
no photo

 

 


wasatch
User

Dec 16, 2005, 12:54 AM

Post #1 of 7 (2941 views)
Shortcut
no photo Can't Post

Ok here is what I am trying to accomplish
I have my publish listing template with a picture in the top for my dealers logos to appear and it workes great.
Recently I have been letting private parties post free listings on my site using the sign up script but they dont have a logo so all there is there on there listing is the box with the X on the top
http://www.wasatchcars.com/listman/listings/l0120.html
How can I have a private partie ad logo appear like the no photo pic appears when no photos are added to a listing ??
I have attached the template I am using

Thanks in advance
Bob
Attachments: _publish_listing.html (9.83 KB)


Cliff
Staff


Dec 16, 2005, 4:34 PM

Post #2 of 7 (2917 views)
Shortcut
Re: [wasatch] no photo [In reply to] Can't Post

Hi Bob,

Thanks for posting.

There really isn't an elegant way to set something like this up as the image that you have there is more or less hard coded in the template.

I think that the easiest thing to to would be to create a blank image for that user, and upload it to their profile. That way there is at least something there. It's not pretty, but it's the only practical way that I can think of getting that to work Unsure
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


wasatch
User

Dec 16, 2005, 8:15 PM

Post #3 of 7 (2911 views)
Shortcut
Re: [Cliff] no photo [In reply to] Can't Post

Would this be possible?

For the private parties that sign up using the signup script will all be automatically assigned a predefined jpg for their homepages/images/X_1.jpg


ross
Staff / Moderator


Dec 17, 2005, 10:34 AM

Post #4 of 7 (2895 views)
Shortcut
Re: [wasatch] no photo [In reply to] Can't Post

Hi wasatch.

Thanks for posting!

I actually just came across a neat little trick that might help you out here. In an image tag you can use an onError attribute like this:


Code
<img src=/ross.gif onError=src="/path/to/default/image.gif">


Basically what this does is load a default image if the one your were trying to load doesn’t exist. Do you see how that would work? Give it a shot and let me know how you make out Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - 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.




wasatch
User

Dec 17, 2005, 7:49 PM

Post #5 of 7 (2886 views)
Shortcut
Re: [ross] no photo [In reply to] Can't Post

I think that will work but I cant seem to get it inserted right it eather inserts a secong picture or it includes some html text when displayed

here is the code I am trying to insert

<img src=/private.jpg onError=src="/wasatchcars/html/private.jpg">

here is the code for my dealer logo from the template I attached above.

<font face=
"ms sans serif" size=1><img src="$homepage_url$/images/$user_num$_1.jpg" border=4 cellpadding=0 width=207 height=120 alt="Photo" style="border-style: solid; border-color: #C0C0C0"> </font>

how do i insert the code ??




MikeB
Staff / Moderator


Dec 18, 2005, 3:25 PM

Post #6 of 7 (2825 views)
Shortcut
Re: [wasatch] no photo [In reply to] Can't Post

Hi wasatch,

Thanks for the post! Smile

From what you've mentioned it sounds like you're hoping to display "$user_num$_1.jpg" if it exists and if there is an error you'd like to display "private.gif". If I've misunderstood at all, just let me know.

If this is the case then your <img> tag would actually look like this:

<img src="$homepage_url$/images/$user_num$_1.jpg" onError=src="/private.jpg" border=4 cellpadding=0 width=207 height=120 alt="Photo" style="border-style: solid; border-color: #C0C0C0">

You'll notice I just added the "onError" attribute right into your existing tag. This means if there is any error loading the user image Listings Manager will grab the "private.jpg" file from your webroot.

Give this a try and let me know how it works out for you. If you have any other questions about this, just let me know! Smile

Cheers,
Mike Briggs - 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.


wasatch
User

Dec 18, 2005, 6:50 PM

Post #7 of 7 (2815 views)
Shortcut
Re: [MikeB] no photo [In reply to] Can't Post

Thanks workes perfect

 
 
 


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