By oorzaak on Monday, 25 January 2016
Replies 6
Likes 0
Views 1.1K
Votes 0
Hi,

In the changelog of the Standard Image & File Uploads Files plugin it says:

v. 3.0.8 allow fall back to category image if no event image is set and default image is blank. fix for file upload issue in Joomla 3.1


However it seems that there's an error in the code for this functionality. I get a broken image link icon (or nothing at all, depending on the browser) and in the page source it says:

<img alt="" src="/<img src = 'http://wvd1.oorzaak-develop.nl/images/stories/wereldverteldag_logo/header.jpg' class='catimage' alt='categoryimage' />">


I suppose this is just a kind of typo or copy/paste issue in the php code?

When an image is added to the event, this problem is not present.

For the time being I fixed this on my site using NoNumber's ReReplacer, but it think it should be fixed in the plugin php code instead.

Kind regards, Frits
Hello,

The problem is you have nested the code? Just unwrap the JEvents Tag. i.e. don't add it in the <img tag.

Many thanks
Tony
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for your reply. For a moment I thought that I had indeed added the img tag as I did use ReReplacer before I read about the category image fallback and I forgot to switch off this ReReplacer statement. But after removing this (and consequently all) ReReplacer items and a lot of cache cleaning I still have the same issue.

Apart from that, I noticed that when no image is set to either the event or the category, in the event detail page the following code is in the page source:

<img src="/" alt="">


As I said, this is without me using ReReplacer - or any other custom code insertions. So I suppose it must be in the php code of the plugin.


Frits
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, I've found out where this html code comes from. When I started checking out JEV I set up a custom layout for the event details (icalevent.detail_body). Somehow the code has slipped into this layout. And I didn't think of this custom layout yesterday.

Thanks for your help,

Kind regards, Frits
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It's generated by the plugin. What JEvents image tag are you using? I'll provide you with a working solution then.

Many thanks
Tony
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, thanks but no need, it is solved now!

Frits
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Glad to hear!

Many thanks
Tony
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post