Do you "Follow Up" or not?

by Lee Turner on 03/02/10
in How To, Skins

I was recently asked on twitter if there was a way to change the "Follow Up" text that appears in your post when create an extended post (see the demo site for an example of an extended post) I had never tried this so I thought I would have a play to see if it could be done.

It is possible but it isn't as easy as it sounds so I thought I would document it here for others to have a go. This was all done on a 3.x install of b2evolution and hasn't been tried or tested on any other version

Follow up:

REMEMBER: backup your skin files before making any changes

First thing you need to do is see if there is a file called _item_content.inc.php in your skin folder and if there isn't, copy the file _item_content.inc.php from the /skins folder to the /skins/yourskinfolderyour

Now open that file in your skin folder and look for the bit of text that looks like this:

PHP:

$Item->more_linkarray(
        'force_more'  => $params['force_more'],
        'before'      => $params['before_more_link'],
        'after'       => $params['after_more_link'],
        'link_text'   => $params['more_link_text'],
        ) );

Now edit that bit of text so it looks like this:

PHP:

$Item->more_linkarray(
        'force_more'  => $params['force_more'],
        'before'      => $params['before_more_link'],
        'after'       => $params['after_more_link'],
        'link_text'   => $params['more_link_text'],
        'anchor_text' => $params['anchor_text'],
        ) );

I think you should have a file called _item_block.inc.php in your skin folder already so open that up and find the bit of text that looks like this:

PHP:

<?php
// ---------------------- POST CONTENT INCLUDED HERE ----------------------
skin_include'_item_content.inc.php'$params );
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_content.inc.php file into the current skin folder.
// -------------------------- END OF POST CONTENT -------------------------
?>

Replace that with this:

PHP:

<?php
// ---------------------- POST CONTENT INCLUDED HERE ----------------------
skin_include'_item_content.inc.php'array(
        'anchor_text'      => 'Lee Woz Ere',
    ) );
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_content.inc.php file into the current skin folder.
// -------------------------- END OF POST CONTENT -------------------------
?>

Obviously replacing 'Lee Woz Ere' with the words of your choosing. This is the text that will appear instead of "Follow up:" in your blog posts.

Save all the files and give it a go. :D

Best,
Lee Turner's Signature