By Colin Berr on Monday, 18 August 2014
Posted in Technical Issues
Replies 17
Likes 0
Views 474
Votes 0
Hey guys,

I'd like to implement something like a "selfmade" magazine layout in our EasyBlog. Selfmade because it's made with modules assigned to different module positions – which leads to a multi-column design.

The idea is: Under the highlight module (which shows the newest article in the top area of the content area) I want to have three to four modules side by side showing the "newest articles besides the one very newest article which is already shown in the highlight section". So there shall be one module for highlighting the newest post, and one module with "three/four articles, ordered by publishing date, starting at the second newest article" (so the very newest article isn't shown twice).

Do you get what I mean?

What do I have to do to make that possible?
Is there another way than hardcoding it inside of the holy

Best regards from Germany
Colin
Hello Colin Berr,

Sorry for late reply to this,
I have a little bit lost here, do you mean that Easyblog latest blog post module do not have display the latest article?

Perhaps provide us some screenshot and URL regarding which page you mentioned to?

Can you provide us with your Joomla backend and FTP access so we can better have a look? Please advise.
·
Monday, 18 August 2014 15:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Arlex, I might have confused you with too much text

Short version is:
• The "Latest blog posts" module works well.
• But I want a specific instance (copy) of that module to not show the very newest article, and then the second newest, and then the third newest article/post, but:
• I want it to show: the second newest post, then the third newest, etc.
• OR (and that's essentially what I need at the very end): That module shall show only one post: The second newest post.

Sadly the second or third newest post will change from time to time. When there is a new newest article on the EasyBlog, the previously newest article becomes the second newest article.

tl;dr
The bold part here is what I need.

Why: I want to create a magazine, looking a bit like the rhein-main-startups.com magazine-like frontpage.
·
Monday, 18 August 2014 17:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Colin Berr,

I'm really sorry that delayed of this reply,
Try download my attachment file and replace in your file
JoomlaFolder\modules\mod_latestblogs\tmpl\default.php
JoomlaFolder\modules\mod_latestblogs\mod_latestblogs.php
JoomlaFolder\modules\mod_latestblogs\mod_latestblogs.php\mod_latestblogs.xml

After you replaced all the file, then open your module : (Go to Post Parameter tab)
Latest blog post module (first latest) - Set specific blog post display - 1
Latest blog post module (second latest) - Set specific blog post display - 2
Latest blog post module (third latest) - Set specific blog post display - 3

Hope this help.
·
Tuesday, 19 August 2014 12:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey, that's awesome, that you tried to implement my wish! Thx!

Sadly it doesn't work.

When I overwrite the tmpl/default.php file with your new version, as I result I see a fully white blank screen on pages where that module is implemented.
·
Wednesday, 20 August 2014 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Colin Berr,

I'm really sorry that delayed of this reply,
Can you provide us with your Joomla backend and FTP access so we can help you check on this? Please advise.
·
Thursday, 21 August 2014 11:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Arlex, thanks a lot! (even if it seems you haven't done more than change the "number of blogs posts")

Now you can help us perfectionizing the whole solution, which a lot of your customers have been asked for:

To be consequent, the blog posts list on the blog frontpage should now start at a specific number… If I show the newest 3, 4, 5 with the pimped latestblogs module, the list of blog posts incl. introtexts etc. on the frontpage should start at the 4th, 5th, 6th newest post. A blog post shouldn't be shown twice on the website.

Do you have a solution for that? I haven't found a solution in the forum yet.

Thanks (a lot) so far
Colin
·
Friday, 22 August 2014 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Colin,

Sorry for late reply to this,
I'm not sure this hack is it suitable for you, do you mean that when you set :
Easyblog latest blog post 1 -> 3
Easyblog latest blog post 2 -> 4
Easyblog latest blog post 3 -> 5

Then it will show the blog post
Easyblog latest blog post 1 -> number 4
Easyblog latest blog post 2 -> number 5
Easyblog latest blog post 3 -> number 6
?

If yes, can you provide us with your Joomla backend and FTP access so we can help you check again with this? Please advise.
*You can put the information in the optional information field below. Don't worry about privacy. Only Support team can view the information.
·
Saturday, 23 August 2014 01:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Ehm, no I don't understand your answer but what I originally meant is what you can see on rhein-main-startups.com ... and is not anymore about configuring the hacked mod_latestblogs (which works quite well!) but changing the "fontpage layout".

Sooo… on rhein-main-startups.com (and in the future also our site) there are five modules for the first five newest articles (one of them to highlight the very newest article, then four in four columns).
AND THEN, after those modules, the next older articles, beginning with the 6th newest article, are shown in the normal "frontpage blog layout" (see screenshot of the current status).

So If I show for example the three newest articles in highlighting modules above the older articles, those older articles have to start with the 4th newest article and so on.

How can I configure the frontpage settings to start with the Xth (for example 6th) newest article and then continue the standard way?
·
Monday, 25 August 2014 02:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Colin Berr,

I'm really sorry that delayed of this reply,
You can set "Total posts to show - 10", so you can configure one of the module set to 6th, it will display number 6th blog post in the module.
·
Tuesday, 26 August 2014 01:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm… maybe I misunderstood you, or you me…

Can't I configure or hack the frontpage to just start with the 6th article and then endlessly show the next older articles?
Instead of starting with the very first article (like any EasyBlog, WordPress or whatsoever does by default), we just start with 6th article.

Using a module woudn't give enough freedom for the design of that endless list of older articles.
I don't want to show only the 6th module.

------ 1 ------ (highlighting mod_latestblogs for the very newest article)
2 . 3 . 4 . 5 (multiple mod_latestblogs for the next articles, just some 200 letters or so)
6 ----------- (the normal frontpage layout, starting with the 6th article)
7 ----------- (and continuing…)
8 -----------
9 -----------
10 -----------
11 -----------
12 -----------
and so on till infinity (maybe devided by page breaks every 15th or 20th article)
·
Wednesday, 27 August 2014 15:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Colin,

If you want to hack EasyBlog so that it starts on the 6th record, you could try modifying the file /components/com_easyblog/models/blog.php and at line 59 locate the codes below,


$limitstart = JRequest::getVar('limitstart', 0, 'REQUEST');


Replace it with,


$default = JRequest::getVar('view') == 'latest' ? 6 : 0;
$limitstart = JRequest::getVar('limitstart', $default, 'REQUEST');
·
Thursday, 28 August 2014 02:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark, I finally had the time to implement it, but it doesn't work…


$limit = ($mainframe->getCfg('list_limit') == 0) ? 5 : $mainframe->getCfg('list_limit');
$default = JRequest::getVar('view') == 'latest' ? 6 : 0;
$limitstart = JRequest::getVar('limitstart', $default, 'REQUEST');

/** 140915 - previously:
* $limitstart = JRequest::getVar('limitstart', 0, 'REQUEST');
*/


Do you have an idea?
·
Monday, 15 September 2014 18:55
·
0 Likes
·
0 Votes
·
0 Comments
·
To be honest, I am actually just providing the hacks blindly since I am not really sure if that would work on your site. The only way if you want me to test this for you is for you to provide us with the back end and FTP access to the site.
·
Tuesday, 16 September 2014 01:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Here we go. Thx!
·
Wednesday, 17 September 2014 16:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Colin,

Can you give this a try again? I have applied some fixes for you at the models/blog.php file at line 778 as below,


$limitstart = JRequest::getVar('limitstart', 0, 'REQUEST');


To,


$limitstart = JRequest::getVar('limitstart', 6, 'REQUEST');
·
Wednesday, 17 September 2014 17:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Works well! Thanks!

Wouldn't it be nice for the other EasyBlog users to be able to set this number (here: "start with 6th post") via the parameters settings of any link which refers to for example to a frontpage layout, category layout, tags layout etc.?

With that other feature you guys helped me to implement (show a specific article (e.g. the 3rd or 4th newest one)) in a "latest articles" module) this empowers EasyBlog to create quite easily your own magazine.
·
Friday, 19 September 2014 01:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Colin,

I am really sorry for the delay of this reply, I am just recovering from a knee injury. Unfortunately settings like that is pretty suicidal because most of the time user's doesn't really remember what they have configured
·
Saturday, 20 September 2014 02:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post