By Fred on Monday, 10 March 2014
Replies 14
Likes 0
Views 1K
Votes 0
Is it possible to add the latest post for each category to the right of the category on the Category page? Like a normal Forum Style is? I was thinking I could try and steal the code from the Latest Module some how and put it in the Category Page code. I've been searching the discussions here but couldn't find anything. Just wondering if it is possible, I will tinker with it shortly though.
Hello Fred,

Hm, sorry but am a little lost here. Can you please provide me a screen shot of what you are trying to achieve here?
·
Tuesday, 11 March 2014 00:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Like most forums have the single latest post to the right of the category name

http://puu.sh/7qe0U.png
·
Tuesday, 11 March 2014 00:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fred,

There is no settings for that in easyblog and you would have to modify the codes. Below are the example of the extraction of the latest post from the database.

$model 	= EasyBlogHelper::getModel( 'Blog' );
$posts = $model->getBlogsBy( $type , $cid , 'latest' , $count , EBLOG_FILTER_PUBLISHED, null, false, array(), false, false, true, array(), $categories );


Hope that helps:)
·
Tuesday, 11 March 2014 01:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, I will give that a try and see how it works.
·
Tuesday, 11 March 2014 02:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fred,

Hope you achieve your modification Please do not hesitate to ask us if you have any issues with easyblog.

Thanks:)
·
Tuesday, 11 March 2014 04:50
·
0 Likes
·
0 Votes
·
0 Comments
·
aww crap, I just realized I asked in the blog section... I meant for this to be for EasyDiscuss... *Facepalm...
·
Thursday, 13 March 2014 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fred,

I am sorry but this isn't possible with EasyDiscuss yet currently
·
Thursday, 13 March 2014 22:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Theres no hack I could do!

This stinks....
·
Thursday, 13 March 2014 23:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Well I figured out how I can get this to work! Little hacking involved and but I'm running into one problem that I just posted in the vB Migration thread of mine.

However besides the error the way I'm going to do this is add custom module positions in the categories.php file at the bottom of the php.

Modified the main div class and added a pull-left (Line: 28)

<div class="discuss-categories pull-left">


Added for example this at the bottom.

<div class="pull-right">
<div class="discuss_cat_01">
<?php echo DiscussHelper::renderModule( 'discuss-category-001' ); ?>
</div>
<div class="discuss_cat_02">
<?php echo DiscussHelper::renderModule( 'discuss-category-002' ); ?>
</div>
<div class="discuss_cat_03">
<?php echo DiscussHelper::renderModule( 'discuss-category-003' ); ?>
</div>
<div class="discuss_cat_04">
<?php echo DiscussHelper::renderModule( 'discuss-category-004' ); ?>
</div>
</div>



Granted I will have to modified the styling a little bit to line up properly to each category and also skip over the parent categories. But I think this may be the best solution for now.
·
Thursday, 13 March 2014 23:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fred,

Thanks for updating, hope it is working fine for you.
·
Friday, 14 March 2014 01:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Well Mark and Khairul,

I've got it down packed and just need to do the rest of the categories.

http://puu.sh/7u1fW.jpg

*Note, you may want to move this thread to ED section since I posted it in the wrong one. Thanks for you assistance.
·
Friday, 14 March 2014 03:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Fred
·
Friday, 14 March 2014 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark, do you ever think something like this would make it into production?
·
Wednesday, 19 March 2014 11:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Not at the moment though.
·
Wednesday, 19 March 2014 11:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post