Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Images do not display in Firefox
Status: fixed
March 6, 2011
5:30 pm
tiredofit
Guest

Hello,

I'm using Firefox 4.0b12 on OSX. I am unable to display images on this browser, yet can view it on Safari and Internet Explorer on a Windows machine. Still yet to test FF and Chrome on a Windows machine.

NOTE – I did do some modifications to the source code (core) functions to pull from an IMG src as opposed to the wp_thumbnail/image – However this problem existed before I made the changes.

If you look at the source code you can see the images are being referenced properly, but do not load under FF.

Would this be a CSS issue?

Test site is at http://staging.tiredofit.ca

March 6, 2011
10:41 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi,

First, deactivate the Featured Content Gallery plugin. The two don't work together well on the same site.

Second, looking at your Page Source, the image URL's are referencing timthumb. Are you using a plugin for timthumb or special code in functions.php?

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
March 6, 2011
11:27 pm
tiredofit
Guest

Woops! Cleaned up the other plugins that I'm not using – this is my test site.

Everything is as close to production as possible.

The Tim Thumb is something that I did, I modified the code to pull from an IMG src tag instead of what was currently in place, and also added code to grab from a custom field "thumbnails".
Before I made the change I experienced the same problem.

function dfcg_grab_post_image($parent_id) {
global $post;
$img = "";

$flagimageurl = get_post_meta($post->ID, 'thumbnail', true); if ($flagimageurl) {
$img = '<a href="http://www.tiredofit.ca/wp-content/themes/tiredofi…..&quot; rel="nofollow" target="_blank">http://www.tiredofit.ca/wp-content/themes/tiredofi…..</a>. $flagimageurl .'&h=300&w=500&zc=1&q=90">' ;
return $img; } else {

preg_match_all('|<img.*?src=[\'"](.*?)[\'"].*?>|i', $post->post_content, $images);
if (isset($images) && isset($images[1]) && isset($images[1][0]) && $images[1][0]) {
$img = '<a href="http://www.tiredofit.ca/wp-content/themes/tiredofi…..&quot; rel="nofollow" target="_blank">http://www.tiredofit.ca/wp-content/themes/tiredofi…..</a>. $images[1][0] .'&h=300&w=500&zc=1&q=90">' ;
}
return $img;
}}

I installed a VM on this OSX box and tried Chrome and Internet Explorer which worked, however trying Firefox 3.6 and nightly 4.0b13 did not.

Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online: nloronacele
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4299

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2493)