Recent Topics

1 Feb 08, 2006 21:26    

Let me start by saying I have done my searching. I have read http://b2evolution.net/man/2005/02/25/how_to_get_rid_of_the_gread_more and http://forums.b2evolution.net/viewtopic.php?t=3212 and http://forums.b2evolution.net/viewtopic.php?t=5492 and a few other posts, and also looked at _functions_bposts.php and _class_item.php.

What I want to do is remove the text [More:] from the body of the full blog posting when someone clicks the ' => Read More ' link (as displayed on how_to_get_rid_of_the_gread_more among other pages).

At first I tried adjusting the CSS to visibility: hidden for the class .bMore, but that had the unfortunate effect of also hiding the Read More link on the blog page.

I then tried to comment out the following on both _functions_bposts.php and _class_item.php ...

// if( $more_anchor == '#' )
// { // TRANS: this is the default text displayed once the more link has been activated
// $more_anchor = '['.T_('More:').']';
// }

... but that left me with a # displayed on the page.

What obvious thing did I miss? Should I be changing one of the
function the_content(
lines? I'm a PHP premie and know just enough to be a danger to myself. :)

2 Feb 09, 2006 00:49

BaileyWTNH wrote:

I then tried to comment out the following on both _functions_bposts.php and _class_item.php ...

// if( $more_anchor == '#' )
// { // TRANS: this is the default text displayed once the more link has been activated
// $more_anchor = '['.T_('More:').']';
// }

... but that left me with a # displayed on the page.

Instead of commenting it out in the core, why don't you just pass '' (empty string) for the $more_anchor param to those functions? :)

3 Feb 09, 2006 13:30

Instead of commenting it out in the core, why don't you just pass '' (empty string) for the $more_anchor param to those functions?

Ummm..... because I had a brain burp and missed the obvious (as predicted)?! :oops:

replacing
$more_anchor = '['.T_('More:').']';
with
$more_anchor = '';

seemed to do what I was looking for. Thanks for your reply.

4 Feb 09, 2006 13:50

I hope you've done it like it's meant to be: Pass '' as param to the function call and not replace anything in the /evocore/ files. Because then you'd have to "hack" it again, when you upgrade.


Form is loading...