B2Evolution: Linking Author Name To Author Page

Published by Andrew Hreschak in Web Development, b2evolution 0.9.x, PHP
Published on 08/16/05 @ 11:17:00 pm using 62 words, and has 35794 views

To link the blog author's name to their main 'About Me' page in b2evolution 0.9.x blogs, add the following code to the b2evo skin /skinname/_main.php template file:

<?php $authorurl = $Item->Author->get('url');
if (($authorurl != 'http://') and ($authorurl != '')) {
if( !preg_match('#://#', $authorurl) ) {
$authorurl = 'http://'.$authorurl;
} ?>
<a href="<?php echo $authorurl ?>" title="<?php echo $authorurl ?>"><?php $Item->Author->prefered_name(); ?></a>

Contemporaneous Auditory Narcotics:
or, What my speakers are currently pumping...
X Project - Conquering Lion [dubplate4]

No feedback yet