PDA

View Full Version : Picture of Listing is not displaying in Internet Explorer


Stan-P
04-03-2010, 08:12 PM
For some reason listing picture is not displaying in IE, however Firefox is working OK.
Does anyone know why?

jlynds
10-23-2010, 12:30 PM
I am having the same issue. It is only not appearing in the search results page where I display a thumbnail of the listing. All photos and thumbs (using the java display) work fine.

When I look at the source code I notice the height and width are left blank:

<img src="http://www.gojerry.ca/wp-content/plugins/wp-realty/images/listing_photos/thumb_486_1.jpg" height="" width="" alt="" />


The picture is there...it is just the blank size attributes are making it invisile. Chad/Jared....how are the height and width set in wprealty?...are they set by our default thumb size as selected in our config settings and this should show in the above attributes?...If so we just need find out why wprealty is not reading those variables....or simply hard code our values in...

Any ideas/way around this or a known fix?

Jerry

Chad
10-24-2010, 09:26 AM
works just fine for me in IE and I'm sure it will work just fine for everyone else that views the site as well.

I have seen this issue before but it was more of a cache issue but the fact is that if you take a look at your site via a proxy portal ( http://vectroproxy.com/ ) you will most likely see that your site looks just fine.

I looked over all of the site in IE-8 and 7 and it looks fine to me.

and yes the thumbnail size is handled in the site config as you suggested.

jlynds
10-25-2010, 10:40 AM
Hi Chad,


No...they are not unfortunately...

When you went to my page (www.gojerry.ca) the fist main page has the 3 most recent listings. This is generated via the shortcode builder. All shortcode generated images work perfect as the image size attributes are set in the embed-template.html as:

<a href="{link_to_listing}"><img src="{listing_field_photo_value}" width="90" height="66"/></a>


In my "view listings > All Listings", for example, those search results are generated with different tags and that is solely:

{image_thumb_1}

*** link removed ***

Now, I have tried to place the shortcode tag (the 1st example) in search_results_default.html in place of {image_thumb_1} and no luck...the image does not populate.

I have tried setting my config to use both GD and Imagestick...no luck. No image seems to resize. Even the default "no photo" image fails to resize in the working google chrome and firefox so I know it is a thumbnail issue.

I am downloading listings via vieletrets...and it downloads thumbnails from the MLS server...would that matter? In images.inc.php I see the functions to create thumbnails on user uploaded images for both GD and imagestick. My listings are never manually entered.

For now, I am trying to find exactly where the shortcode for {image_thumb_#} is generated in the .php files. I have been looking in images.inc.php, and as an example on line 938 it reads:

$display .= "<img src=\"$config[listings_view_images_path]/$thumb_file_name\" height=\"$thumb_displayheight\" width=\"$thumb_displaywidth\" alt=\"$alt\" /></a><br /> ";

I am hoping to try, as a temporary fix, to replace the "$thumb_displayheight" etc with hard coded numbers. Not pretty...but for me it should work and I am fine with doig this as a work around...but I am not having luck this far in finding the right function to edit...its not as easy as looking for "function image_thumb_#"...

Chad, I know you don't like to get into advising on screwing around with core wp-realty files...and I know any changes I make outside of an add on will be lost in future updates and need to be modded again...but I do need a solution to this...I am sure it is something on my end...as it would be foolish for me to think every wp-realty user has this same problem in Internet Explorer...Are you able to send me a PM as to what may be going on? I am 100% up for hard coding a fix like mentioned above to get me by.

J

jlynds
10-25-2010, 12:10 PM
I just re-read your response...

You mentioned you looked all over my site....if so then you went to the all listings (or any page generating search results)....and it worked?

I noticed when I tried your link for the proxy site the drop down menu for my site did not work (for me)...maybe you missed the search page I am having the problem with?

I have tried on 3 separate computers and all do not display search result thumb photos in Internet Explorer.

Also, I use http://browsershots.org/ to test in internet explorer and the same thing....

Again, shortcode geneated thumbs are fine, as are images generated in the tags using Java such as:

{listing_images_java_rows}
{main_image_java}

Chad
10-26-2010, 09:18 AM
http://www.screencast.com/users/wprealty/folders/Jing/media/75f70b68-7888-4036-9a65-c959a5807ae1

jlynds
10-26-2010, 09:39 PM
Hi Chad,


You are going to start to cringe at seeing posts from me soon...if not already.


I have tried to say in my posts above it is NOT the page you referred above (listing details page) but rather the search results page. In the page you linked a pic of, I use the java tags mentioned in an earlier post that are perfect. It only seems to be the {image_thumb_#} tag....

See the pics below to see what I am talking about...

Working Firefox screen capture: (disregard the broken featured listing pic...that is not related)
http://www.gojerry.ca/wp-content/uploads/2010/10/a_gojerry_firefox.png

No image thumb in Internet explorer:
http://www.gojerry.ca/wp-content/uploads/2010/10/a_gojerry_MSIE.png

Again, you may need to re-read what I was trying to get at in my previous post as we have had a miscommunication...but all the info is above

I really appreciate the help...hopefully we can get on the same "page"...litterally LOL


J

jlynds
10-27-2010, 12:06 AM
OK...problem solved...sort of.

As mentioned earlier, the quick fix for me was to hard code my thumnail size into a core wprealty file. If anyone has this issue with Internet Exporer not displaying thumbnails in the SEARCH RESULTS page via the {image_thumb_1} tag, then this fix is an option unless the real root cause/fix can be found (maybe it is just me?). Do this at your own risk, as you will be editing a wp-realty core file, and future updates to wp-realty will overwrite this and need to be done again so keep this in mind down the road.

edit line 1078 of /wp-realty/include/class/template/core.inc.php


LISTING THUMB: Line 1078

OLD/ORIGINAL
$listing_image = $url . '<img src="' . $config['listings_view_images_path'] . '/' . $thumb_file_name . '" height="' . $thumb_displayheight . '" width="' . $thumb_displaywidth . '" alt="' . $image_caption . '" /></a>';

To now read:

$listing_image = $url . '<img src="' . $config['listings_view_images_path'] . '/' . $thumb_file_name . '" height="' . 75 . '" width="' . 100 . '" alt="' . $image_caption . '" /></a>';


NOPHOTO THUMB: Line 921

OLD/ORIGINAL
$listing_image = $url . '<img src="' . $config["baseurl"].'/template/'.$config['template'].'/images/nophoto.gif" alt="' . $lang['no_photo'] . '" /></a>';

To now read:

$listing_image = $url . '<img src="' . $config["baseurl"].'/template/'.$config['template'].'/images/nophoto.gif" height="75" width="100" alt="' . $lang['no_photo'] . '" /></a>';

Obviously replace the 75 and 100 with your thumbnail vaules. Take note both the listing thumb and nophoto images within {image_thumb_#} have "$listing_image" which we edited here, but there is also "$listing_image_fullurl" just a few lines down from each edited line....at this time I have not edited those but I am expecting to have to at some point (no issues yet).

Chad/Jared...as a side note I tried hard coding my values in lines 1008/1029 block and no luck. I tried almost every imaginable combo...I could not seem to hard code a value to either:

$thumb_max_width
$thumb_max_height

nor

$thumb_displaywidth
$thumb_displayheight

or even
$resize_thumb_by (to set off the else statement).

Still curious as to why in my particular case the $config values were not being passed....?

Chad
10-27-2010, 11:13 PM
I think back to over a year ago and it seems like i recall changing this to allow for the manual height width to be set in the templates in order to allow to override where it might be needed....so that method would be the better choice then having it carry the settings into all templates.


I'll check on this on the demo site by this weekend because I'm trying to get the next update ready to release by the 1st.