By Ronny Wunderlich on Wednesday, 15 April 2015
Posted in General Issues
Replies 1
Likes 0
Views 356
Votes 0
Hi, i use seblod and like to make a Author Box. I have now the name and the Avatar in this Box. But i dont know to link to the Author Profil and Photos.

Here is my code. Link to profil works, but i think its not right. And Link to Photos i have no idea to do this.


<?php
require_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );

// Retrieve a specific user given it's id.
$user = Foundry::user( $aut );


?>

<a href="<?php echo $user->getPermalink(); ?>"><img class="thumbnail" src="<?php echo $user->getAvatar();?>"></a>

<a href="<?php echo $user->getPermalink(); ?>">Profil von <?php echo $user->getStreamName(); ?></a>

<a href="<?php echo $linkphoto; ?>">Bilder</a>



THX
Hello Ronny,

Your code should actually be something like this,

·
Thursday, 16 April 2015 00:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post