By Mel on Friday, 21 August 2015
Posted in Technical Issues
Replies 7
Likes 0
Views 1.1K
Votes 0
Hi,

Ezrul did a nice fix for the Image Wall module that added a default image where there wasn't one in the article. See:

http://stackideas.com/forums/easyblog-image-wall-add-a-default-image-for-articles-that-do-not-have-images

I was wondering if this could also be done for the latest blogs module?

I have blog feeds on my home page using Easyblog Latest Blogs module, and when the feeds display on the page without images, it makes the page look out of balance.

I was wondering if there was now a way to set a default image for this, or whether it requires a fix like the one which Ezrul provided? It would just make our presentation a little better (I think).

Mel
Hi Mel,

I am really sorry for the delay of this reply as it weekends for all of us here.

You can download my attachment below and place it inside your /modules/mod_easybloglatestblogs/tmpl/ folder to use easyblog default placeholder as default image. You can either change the default placeholder image inside /components/com_easyblog/themes/wireframe/images/placeholder-image.png with different image (remember to use same image name as default placeholder name) or you can edit the attachment below at line 90:
if (!$postCover) {
$postCover = EB::getPlaceholderImage();
}

// Replace with

if (!$postCover) {
$postCover = 'http://stackideas.com/images/logo-stackideas.png' // change your image path here
}


Hope these help.
·
Monday, 24 August 2015 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mel,

May I know which version of easyblog that you are preferring for latest blog module? is it version 3.9 or version 5?
·
Friday, 21 August 2015 18:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

I believe I am using the latest versions of Easyblog 5 (I just installed over the old versions of EB and assumed everything upgraded as they were selected during install - is that the case?)

Mel
Mel
·
Friday, 21 August 2015 20:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

apologies for delay responding.

It works perfectly now - thank you for your help

Mel
Mel
·
Monday, 24 August 2015 18:47
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Mel. I will see if I can include this as quick settings in the next release of easyblog.
·
Monday, 24 August 2015 19:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

Thats an excellent idea

Mel
Mel
·
Monday, 24 August 2015 19:11
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.
·
Tuesday, 25 August 2015 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post