1 ethan5150 Jan 15, 2011 01:50
3 ethan5150 Jan 15, 2011 20:05
Aside from the Main Page displaying post excerpts instead of full posts, everything else is identical. And if I change the other page to show excerpts on the main page, the "More>>" link doesn't work there either so it's apparently a site wide problem.
4 sam2kb Jan 15, 2011 20:18
Then don't set Main Page to display excerpts. It's another known-but-never-fixed bug ;)
I posted a workaround on this forum some time ago. I can't find it, try to search posts by login name between 2008-2010
5 ethan5150 Jan 15, 2011 20:23
Ok, unfortunately it's kind of a must for this site...I'll see if I can find your workaround...
6 sam2kb Jan 15, 2011 20:31
Search for "force_more", "content_mode", "intro_mode"
7 ethan5150 Jan 15, 2011 20:42
Ok, found it: http://forums.b2evolution.net/viewtopic.php?t=19044&highlight=contentmode
I replaced this:
// Default params:
$params = array_merge( array(
'feature_block' => false,
'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail
'item_class' => 'post',
'image_size' => 'fit-400x320',
), $params );
with this:
// Default params:
$params = array_merge( array(
'feature_block' => false,
'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail
'item_class' => 'post',
'item_status_class' => 'bPost',
'image_size' => 'fit-400x320',
), $params );
if( is_default_page() )
{
$params['content_mode'] = 'excerpt';
}
But it has not resolved the issue.
8 sam2kb Jan 15, 2011 20:43
Ok never mind. Try this in _item_block.inc.php
// Default params:
$params = array_merge( array(
'feature_block' => false,
'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail
'item_class' => 'post',
'image_size' => 'fit-400x320',
), $params );
if( $Blog->get_setting('main_content') == 'excerpt' && $disp != 'posts' )
{
$params['content_mode'] = 'full';
}
9 ethan5150 Jan 15, 2011 20:45
Also, I need to be able to have some blogs display full contents while others display excerpts so if this is going to be a site-wide mod, it won't work... Should I go back to 3.3.3? Seems like 4 has some issues...
10 sam2kb Jan 15, 2011 20:49
I didn't know you found it already :)
Anyway this can be done 2 different ways.
- The way I posted back in 2009 with "Standard post contents" selected in SEO tab
- With the code I posted now and "Excerpts" selected on SEO tab
11 sam2kb Jan 15, 2011 20:53
The second solution fixes "more" button if you selected "Excerpts" option for "Main page". It's not a site-wide mod, it depends on what you checked in blog settings.
Going back to v3 won't solve the problem since it has the same behavior.
12 ethan5150 Jan 15, 2011 21:07
Freakin' AWESOME!
Compare Blog settings > SEO tab with this blog
http://fairjustice.net/index.php/StudiesandLinks/washington/