Recent Topics

[4] More>> not working

Started by on Jan 15, 2011 – Contents updated: Jan 15, 2011

Jan 15, 2011 01:50    

My b2evolution Version: 4

http://fairjustice.net/index.php/LatestNews/title - the "More>>" isn't working for some reason... any ideas anyone?

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.

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

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...

Jan 15, 2011 20:31

Search for "force_more", "content_mode", "intro_mode"

Jan 15, 2011 20:42

Ok, found it: http://forums.b2evolution.net/viewtopic.php?t=19044&highlight=contentmode

I replaced this:

Code

// 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:

Code

// 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.

Jan 15, 2011 20:43

Ok never mind. Try this in _item_block.inc.php

PHP

// Default params:
$params array_mergearray(
        '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';
}

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...

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

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.


Form is loading...

CMS engine – This forum is powered by b2evolution CMS, a complete engine for your website.