2017-07-05, 19:53:44
I tried some attempts and partially have succeeded.
There is this code in the file frontEndFunctions.php:
and I supplemented it this way:
It was only a blind attempt but it succeeded (short posts are displayed full, not mutilated now, longer excerpted). What however persist is that length of excerpts set in the front-end administration corresponds not with what is really displayed in a page (really displayed excerpt is much shorter). But it is not so annoying bug and can be bypassed by suitable (overstated) setting in the administration.
I only wonder if I am the only one having troubles with described excerpts' length.
There is this code in the file frontEndFunctions.php:
PHP Code:
# Determine if we should be showing an excerpt or full post.
if(($excerpt == false) || (($excerpt == true) && ($blogSettings['postformat'] == 'Y')))
{
$p['content'] = html_entity_decode($post->content); // Get the full contents of the post
}
elseif(($excerpt == true) && ($blogSettings['postformat'] == 'N'))
{ // It's an excerpt...
$el = (empty($blogSettings['excerptlength']) ? 250 : $blogSettings['excerptlength']);
// Length?
$p['content'] = $Blog->create_excerpt(html_entity_decode($post->content),0,$el);
// Create excerpt
}
and I supplemented it this way:
PHP Code:
# Determine if we should be showing an excerpt or full post.
if(($excerpt == false) || (($excerpt == true) && (($blogSettings['postformat'] == 'Y')
|| (strlen($post->content) <= $blogSettings['excerptlength']))))
{
$p['content'] = html_entity_decode($post->content); // Get the full contents of the post
}
elseif(($excerpt == true) && ($blogSettings['postformat'] == 'N'))
{ // It's an excerpt...
$el = (empty($blogSettings['excerptlength']) ? 250 : $blogSettings['excerptlength']);
// Length?
$p['content'] = $Blog->create_excerpt(html_entity_decode($post->content),0,$el);
// Create excerpt
}
It was only a blind attempt but it succeeded (short posts are displayed full, not mutilated now, longer excerpted). What however persist is that length of excerpts set in the front-end administration corresponds not with what is really displayed in a page (really displayed excerpt is much shorter). But it is not so annoying bug and can be bypassed by suitable (overstated) setting in the administration.
I only wonder if I am the only one having troubles with described excerpts' length.