Administrators AWS Posted February 12, 2010 Administrators Posted February 12, 2010 If you notice on the main blog page it only shows 2 blog entries. I can't for the life of me find the setting to change. I want at least 5 entries. There is a setting for default amount of posts to show on the blog page, but, it seems to affect only member blogs and not the main blog index. Anyone know how to get the page to show more than 2 blog posts? Quote
IPS Staff MattM Posted February 12, 2010 IPS Staff Posted February 12, 2010 The query grabs featured items, etc and then one entry from each active blog. So, in your case, it'll only show two articles as you only have one blog. Quote
IPS Staff MattM Posted February 12, 2010 IPS Staff Posted February 12, 2010 If you look in admin/applications_addon/ips/blog/modules_public/display/list.php Function _showDash() Change /* Normal */ if ( count( $this->caches['blog_stats']['fp_entries'] ) ) { $this->DB->build( array( 'select' => 'e.*', 'from' => array( 'blog_entries' => 'e' ), 'where' => 'e.entry_id IN(' . implode( ',', array_keys( $this->caches['blog_stats']['fp_entries'] ) ) . ')' . $whereExtra, 'order' => 'e.entry_date DESC', 'limit' => array( 0, 20 ), 'add_join' => array(array( 'select' => 'b.*', 'from' => array( 'blog_blogs' => 'b' ), 'where' => 'b.blog_id=e.blog_id', 'type' => 'left' ), array( 'select' => 'bl.*', 'from' => array( 'blog_lastinfo' =>'bl' ), 'where' => 'b.blog_id=bl.blog_id', 'type' => 'left' ), array( 'select' => 'm.*', 'from' => array( 'members' => 'm' ), 'where' => 'm.member_id=e.entry_author_id', 'type' => 'left' ), array( 'select' => 'pp.*', 'from' => array( 'profile_portal' => 'pp' ), 'where' => 'pp.pp_member_id=m.member_id', 'type' => 'left' ) ) ) ); To /* Normal */ if ( count( $this->caches['blog_stats']['recent_entries'] ) ) { $this->DB->build( array( 'select' => 'e.*', 'from' => array( 'blog_entries' => 'e' ), 'where' => 'e.entry_id IN(' . implode( ',', array_keys( $this->caches['blog_stats']['recent_entries'] ) ) . ')' . $whereExtra, 'order' => 'e.entry_date DESC', 'limit' => array( 0, 20 ), 'add_join' => array(array( 'select' => 'b.*', 'from' => array( 'blog_blogs' => 'b' ), 'where' => 'b.blog_id=e.blog_id', 'type' => 'left' ), array( 'select' => 'bl.*', 'from' => array( 'blog_lastinfo' =>'bl' ), 'where' => 'b.blog_id=bl.blog_id', 'type' => 'left' ), array( 'select' => 'm.*', 'from' => array( 'members' => 'm' ), 'where' => 'm.member_id=e.entry_author_id', 'type' => 'left' ), array( 'select' => 'pp.*', 'from' => array( 'profile_portal' => 'pp' ), 'where' => 'pp.pp_member_id=m.member_id', 'type' => 'left' ) ) ) ); Quote
Administrators AWS Posted February 12, 2010 Author Administrators Posted February 12, 2010 Thanks Matt. I do the edit a little later. Quote
Administrators AWS Posted February 13, 2010 Author Administrators Posted February 13, 2010 I did the edit and it didn't change the count. I think I'm going to leave it as it is. I'll be adding more articles in the blog and I'm going to categorize it by title so I'll be creating more blogs. That is if I don't decide to do with Invision Community Pages. So many ideas, so little time in a day. Quote
Brandon Posted February 13, 2010 Posted February 13, 2010 So many ideas, so little time in a day. that's the story of my life :D Quote
Administrators AWS Posted February 13, 2010 Author Administrators Posted February 13, 2010 I hear ya brother. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.