UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

PHP Code for displaying Username and Avatar

Josh Lewis · ·
12:55 PM Sunday, 25 May 2014
None
ES's modules don't quite display the username how I want it to display (but it does come incredibly close). I'm wanting to display my avatar next to my username very similarly to the ES drop down menu. In my case I want the avatar and the profile pic to link to the user's profile rather than a drop down menu. Another module sorta did this but didn't have as good of formatting and the profile pic did not link to the users profile.

From what I've gathered the stacked team is probably too busy to change some display settings to the module. Assuming that's true, what is the PHP code for displaying the avatar and the user profile? I'm not savvy at all with PHP, I made an attempt with the following codes:

<img src="/<?php echo $my->getAvatar( SOCIAL_AVATAR_MEDIUM );?>" alt="<?php echo $modules->html( 'string.escape' , $my->getName() );?>" />

<a href="/<?php echo $my->getPermalink();?>" class="user-name-link"><?php echo $my->getName();?></a>


Depending on how I went about it, the code either didn't work or would make the page go blank. :( Right now I'm in the process of re-doing some of my site's layout to make things as easy as possible for my users. :)
The replies under this section are restricted to logged in users or users with an active subscription with us