By Maria on Monday, 27 June 2016
Posted in Technical Issues
Replies 3
Likes 0
Views 306
Votes 0
I'm trying to use an alternative layout for the "Featured" easyBlog Latest Blogs module on this page but it's not working http://theseedsowerz.com/
Hi Maria,

I am sorry for the delay of this reply. I've have make some fix in the file mod_easybloglatestblogs.php and it should working fine now.
Please give it a try.

Have a nice day ahead
·
Monday, 27 June 2016 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
It's still not working. Now each of the Alternative Layouts has an error. I renamed them all to include _bak at the end so the error won't show...

Fatal error: Call to a member function hasImage() on a non-object in /home4/answerit/public_html/theseedsowerz/modules/mod_easybloglatestblogs/tmpl/EasyBlogLatest.php on line 56

Fatal error: Call to a member function hasImage() on a non-object in /home4/answerit/public_html/theseedsowerz/modules/mod_easybloglatestblogs/tmpl/imagecat.php on line 56

Fatal error: Call to a member function hasImage() on a non-object in /home4/answerit/public_html/theseedsowerz/modules/mod_easybloglatestblogs/tmpl/featured.php on line 56
·
Tuesday, 28 June 2016 06:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Maria,

I am sorry for the delay of this reply. May I know what actually you want to achieve in the file EasyBlogLatest.php, imagecat.php, and featured.php?
If you want to customize the default_item.php you cannot directly pointed to it. Here is the steps to use alternative layout in mod_easybloglatestblogs:

[For example for feature.php]
1. Copy the default.php in the folder modules/mod_easybloglatestblog/tmpl/default
2. Paste it and rename it to featured.php
3. Edit the feature.php LINE 34 replace the default_item to featured_item
4. Copy default_item.php
5. Paste it and rename it as featured_item.php
6. You can edit the final view of the module in the featured_item.php
7. On backend module choose featured for the alternative layout


The reason you cannot directly change the default_item.php to featured.php because in mod_easybloglatestblogs, it will called the default.php first then default_item.php

You have to do same with another imagecat.php etc.
·
Tuesday, 28 June 2016 16:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post