Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Thankfully, there’s a better way for doing that than editing the core of the plugin (which you should never do because then it’s more of a pain to upgrade). At line 357 in v1.1, there’s a filter you can use to change the values of the description token. To achieve the same effect, you might do something like this:

    /**
     * db_filter_values()
     * Replace the default values with ones better suited
     */
    function db_filter_values( $replace ) {
    $replace['%description%'] = nl2br( $user->description );
    return $replace;
    }
    add_filter( 'pab_replace_values', 'db_filter_values' );

    Hope that helps,

    Daniel

    Thread Starter burkartstudios

    (@burkartstudios)

    Where the heck were you before I did a million Google searches and spent 3 hours trying to learn enough PHP to accomplish what I did! =o)

    So this may be a silly question: How do I implement this change?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Copy and paste into your theme’s functions.php file and you should be set!

    Thread Starter burkartstudios

    (@burkartstudios)

    You rock!

    So this is where I’ve used your code if you’d like to see:

    fantastichorror.net/e-zine/

    Still playing with it trying to iron out all the bugs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Post Author Box] Line-breaks in Author's Description’ is closed to new replies.