MyBB Community Forums
[welcomeblock_member] Username and Avatar Linkable - Printable Version

+- MyBB Community Forums (
+-- Forum: Extensions (
+--- Forum: Themes (
+---- Forum: Theme Support (
+---- Thread: [welcomeblock_member] Username and Avatar Linkable (/thread-156617.html)

[welcomeblock_member] Username and Avatar Linkable - Kerrang! - 2014-07-27

I've tried to make my themes "welcomeblock_member" allow linking to users profiles via their Username and Avatar.

However, I seem to break everything with codes attempted via tutorials or codes which have been mentioned in the community. Although it seems simple, I cannot figure it out for the life of me.

Would someone be able to help?

This is my themes code.

<div id="panel" class="loggedInPanel">
				<div class="welcomeblock">
<div class="welcomeblock_avatar">
	<div class="welcomeblock_links">
		&raquo; <a href="{$mybb->settings['bburl']}/usercp.php"><strong>User CP</strong></a><br />
		&raquo; <a href="{$mybb->settings['bburl']}/private.php"><strong>Messages ({$mybb->user['unreadpms']})</strong></a><br />
		&raquo; <a href="{$mybb->settings['bburl']}/member.php?action=logout&logoutkey={$mybb->user['logoutkey']}"><strong>Log Out</strong></a><br />
	<img src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}'s Avatar" /><br />
<span class="welcome_name">Welcome back, {$mybb->user['username']}.</span><br />
You have <strong>(<a href="{$mybb->settings['bburl']}/private.php">{$mybb->user['unreadpms']}</a>)</strong> unread PMs.<br />
<span class="smalltext"><a href="{$mybb->settings['bburl']}/search.php?action=getnew"><strong>View New Posts </strong></a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily"><strong>View Today's Posts</strong></a></span>


Thanks Smile

RE: [welcomeblock_member] Username and Avatar Linkable - eNvy - 2014-07-27

Can you show me with a picture or something? Because I don't finish to understand what you wanna do...

If you want to put a link to the username and the avatar and send the user to their own profile, an "<a href=""></a>" tag it's all you need...