SMFNEW Support Forum

Your Forum => Tips & Resources => Outdated (Closed for posting) => Topic started by: Nick on November 10, 2009, 04:13:00 pm

Title: [MYBB]Adding a users avatar to a portal
Post by: Nick on November 10, 2009, 04:13:00 pm
This is for MYBB.

Description: Adds the users avatar to the top of the welcome block on the portal page.

Preview
(https://www.support.smfnew.com/proxy.php?request=http%3A%2F%2Fi33.tinypic.com%2Fei1paf.jpg&hash=c0a3ce90cebec9487d2ba3cd68077e3ea942f47a)

Go to

Admin CP > templates > Your template > Portal Templates > portal_welcome_membertext

Now right at the top of the template editor above

Code: [Select]
<span class="smalltext"><em>{$lang->member_welcome_lastvisit}</em> {$lastvisit}<br />
Add

<center><img src="{$mybb->user['avatar']}" width="0px" height="0px" /></center>

Now of course you can remove the Center tags if you dont want it to be centered. Where it says the image sizes in red change it to whatever you want.
Title: Re: Adding a users avatar to a portal
Post by: Shole on November 10, 2009, 04:31:08 pm
nice to see another tut made by you Nick :D
Title: Re: Adding a users avatar to a portal
Post by: Nick on November 10, 2009, 04:36:11 pm
Thanks i do try :).
Title: Re: Adding a users avatar to a portal
Post by: GuruMoose on November 13, 2009, 07:18:17 am
You do very well you know. Some people look up to you. Like me. I want to be like you, but SMF type of you. Because your mostly a Mybb person
Title: Re: Adding a users avatar to a portal
Post by: Nick on December 01, 2009, 12:23:11 pm
Thankyou for your kind words :). I started on smfnew then went to mybb. I found that i needed more space to do what i wanted.
Title: Re: Adding a users avatar to a portal
Post by: GuruMoose on December 01, 2009, 01:28:47 pm
Well thats great. I will always look up to you.
SimplePortal 2.3.7 © 2008-2024, SimplePortal