By Andy on Sunday, 23 February 2014
Posted in Technical Issues
Replies 11
Likes 0
Views 653
Votes 0
I'd really like to use the CATEGORIES LAYOUT (ALL CATEGORIES) menu item from EasyBlog.... but in the menu item parameters I don't see any way to control (a) the number of recent posts that show in each category displayed, or (b) the number of active bloggers in each category displayed?

Are these things that can be added into the menu options, and is there a quick hack I can apply in the short term?
Hello Andy,

These are currently not available in the menu settings. However, you can set this up in the Settings area of EasyBlog under Settings > Layout. This however applies globally and not per-menu item.
·
Sunday, 23 February 2014 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark - OK I found the option to control the number of recent posts. Great...

BUT I can't find the option to control the number of active bloggers shown anywhere?!?!

So see my link where the number of blogs is set to 3 but because of there being 15 active bloggers showing the display area goes on and on and on... how do I bring down the number of active bloggers displayed? (Also what makes an 'active' blogger? I see some people on the list who haven't blogged for a long time - so I'm guessing it's just on overall number of posts rather than recent activity?)

Thanks...
·
Monday, 24 February 2014 01:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

Sorry for the late reply. Unfortunately there is no setting for this. You will need to hack the files at

JOOMLA/administrator/components/com_easyblog/tables/category.php

at line 280 from
	. 'WHERE ' . EasyBlogHelper::getHelper( 'SQL' )->nameQuote( 'category_id' ) . '=' . $db->Quote( $this->id );

to
. 'WHERE ' . EasyBlogHelper::getHelper( 'SQL' )->nameQuote( 'category_id' ) . '=' . $db->Quote( $this->id ) . ' LIMIT 5';

Hope this helps.

Thanks!
·
Monday, 24 February 2014 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Adelene - Thanks a million for that code tweak - worked perfectly

Just one final thing before I add this to the millions of solved posts.... how are the active bloggers in that list created? It doesn't seem to be the people with the highest number of blog posts, nor actually those who have posted recently?... or is it? Ideally I want to show the top 5 bloggers by number of posts, but I'm keen just to understand what the current display is showing....

Thanks!
·
Monday, 24 February 2014 20:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

They are actually being sorted by the number of posts that they have created on the site
·
Monday, 24 February 2014 22:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks now I understand... ok so the code tweak from Adelene helps me restrict the number of bloggers that show up, but it seems to be in the wrong sort order (it's the 5 with the fewest from the 15 that were showing - I want to grab the top 5).... is there some other magic word I can add into that code tweak suggestion to limit it just to the top 5 highest blogging bloggers?

Longer term, hopefully you can add something to EasyBlog config to help with this situation - by default if you have a lot of bloggers then the display of this category view just doesn't work (at least with the Polish theme I'm using) because it goes on much longer than the featured blogs do.... (although one maybe nice thing to solve it too would be to have the blogger list showing horizontally rather than vertically - although you're still going to get some users wanting to be able to control how many show up......)

Thanks SuperStars.....
·
Monday, 24 February 2014 23:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

I am actually at a lost of what you are trying to do here. Are you trying to modify the active bloggers module or are you trying something else?
·
Tuesday, 25 February 2014 00:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I'm using the CATEGORIES LAYOUT (ALL CATEGORIES) menu item... so no modules, just that menu item.

For each category it shows a list of what it calls 'active bloggers'.

That active blogger list though goes on and on, which is why I needed to truncate it (which I did with Adelene's code suggestion above)... but although I can limit it to 5, it's limiting it to the bottom 5 of what it was displaying by default rather than the top 5.

A URL is provided in the site details link here... you'll see the menu view in use, including the truncation hack to just 5 bloggers... So at the top of the list of 'Special Olympics' for example, but that's not the most active blogger... I need to switch the ordering (nor is the number 5 one the highest - that's just where the list got truncated with Adelene's code hack)
·
Tuesday, 25 February 2014 00:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

If you are using the category layout, it's not calculated by the number of posts. The one that I was referring to was the active blogggers module. Currently it cannot be sorted by the total number of posts in the active blogger area in the category listing
·
Tuesday, 25 February 2014 11:07
·
0 Likes
·
0 Votes
·
0 Comments
·
OK - Do you know what it is being sorted by then? I'm just trying to understand the logic!
·
Tuesday, 25 February 2014 11:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

Ah, they are actually sorted by the last posted items in the category. For instance, if user A was the last posted of the blog post, it will be at the top
·
Tuesday, 25 February 2014 13:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post