b2evo: change default text for read more and follow up

by prettyscripts on 2010-03-10 14:37:27

phpb2evolution

based on the source code (this is V2.4, but it's similar in V3), you need to set correct parameters for $Item->more_link(). the parameters are link_text (defaults to 'Read more') and anchor_text (defaults to 'Follow up').

for most skins this function is called in _item_content.inc.php. if this file does not exist in your skin, copy it from parent directory (do not edit the file from parent directory directly!)

locate $Item->more_link() and edit:

PHP:

$Item->more_link(array(
    .... // existing code
    'link_text' => param['more_link_text'],
    'anchor_text' => param['anchor_text'], // add this
));

look for files in skin where it includes skin file _item_content.inc.php and add to param:

PHP:

skin_include('_item_content.inc.php'array(
    .... // existing parameters
    'more_link_text' => 'text to replace Read more',
    'anchor_text' => 'text to replace Follow up',
));

Tags: b2evo, more, skin

No feedback yet

Leave a comment


Your email address will not be revealed on this site.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)