By Mel on Monday, 13 April 2015
Posted in Technical Issues
Likes 0
Views 1.8K
Votes 0
hi,

is there a way of adding a default image in place of blog articles that have no images? I am using the feed importer, and blogs that come in without images are still showing up in the image wall module which looks very odd. Is there a way to either stop it from displaying articles without images, or adding a default image where there isn't one?

Kind regards

Mel
Hi Ezrul,

thanks so much that is exactly what I needed - works perfectly

Mel
Mel
·
Monday, 13 April 2015 15:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mel,

I am sorry for the delay of this reply.

Unfortunately it is not possible to add the default image from the backend settings. You need some sort of hack in order to insert the image url manually. If you want to add the default image for the blog entry that does not have the image, kindly download the attachment below and place it inside your /modules/mod_imagewall/ and locate the code below at line 66:

$defaultImage = "";
//replace with your image url like example below
$defaultImage = "http://cloud.stackideas.com/images/easyblog_images/67899/easyblog-small.jpg";


Hope these help
·
Monday, 13 April 2015 11:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mel,

You are most welcome. Glad that your issue has been resolved now
·
Monday, 13 April 2015 15:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

I spoke to soon unfortunately.

It seems to be replacing all images - not just the ones that didn't have an image. I tried it on 2 different blogs and it does the same with both. Its also replacing imagewall entries that had images of there own.

Is it not possible to just add the default to blogs with no existing image and still allow the one with images to use their own?

Mel
Mel
·
Monday, 13 April 2015 15:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mel,

I am sorry I've missed the checking to include the image inside the blog content. Please replace the attachment below inside your /modules/mod_imagewall folder and see if it will display correctly. The url placement is located at line 103 for your custom default image.
·
Monday, 13 April 2015 16:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

it now does work perfectly!

Thanks again for your help.

Mel
Mel
·
Monday, 13 April 2015 17:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mel,

Thanks for updating us back. I am glad to hear your issue is now resolved.

Have a nice day.
·
Monday, 13 April 2015 18:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, sorry for re-opening this thread, but, Is any of these solutions usable for the blog itself not only with this module?

Thanks!
·
Wednesday, 08 August 2018 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Renato,

Perhaps you can start a new thread on our forum regarding this so we can manage your issue easier.

For now i will lock this thread is because this thread already 3 year ago.

Thanks for understanding.
·
Wednesday, 08 August 2018 10:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post