MyBB Community Forums
Add some stuff to portal welcomebox. - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Add some stuff to portal welcomebox. (/thread-172409.html)



Add some stuff to portal welcomebox. - vipula - 2015-06-27

Hi! I need to add some content in post bit to {$welcome}

I need to add following info:
  • User Avatar
  • Star Rating & User Title
  • Posts Count
  • Threads Count
  • Reputation Count
to portal welcome box. If anyone have done this before please help me. Thanks.


This info
[Image: attachment.php?aid=34515]

To here
[Image: attachment.php?aid=34514]


RE: Add some stuff to portal welcomebox. - Sazze - 2015-06-27

<img src="{$mybb->user['avatar']}">
<img src="{$mybb->usergroup['stars']}">
{$mybb->user['usertitle']}
{$mybb->user['postnum']}
{$mybb->user['threadnum']}
{$mybb->user['reputation']}

I don't have a test site atm, but I guess these should work.


RE: Add some stuff to portal welcomebox. - vipula - 2015-06-27

wow. Thank you very much.  Akay. rep +

Hi! Akay, this field give me empty image.

[Image: attachment.php?aid=34518]

 <img src="{$mybb->usergroup['stars']}">

How can I solve this. Thank you very much.


RE: Add some stuff to portal welcomebox. - Sazze - 2015-06-27

(2015-06-27, 11:56 AM)vipula Wrote: wow. Thank you very much.  Akay. rep +

Hi! Akay, this field give me empty image.

[Image: attachment.php?aid=34518]

 <img src="{$mybb->usergroup['stars']}">

How can I solve this. Thank you very much.

Try
 <img src="{$mybb->usergroup['star']}">

Instead.


RE: Add some stuff to portal welcomebox. - vipula - 2015-06-28

Hi! I have replaced it but still same. Please help. Thanks.


RE: Add some stuff to portal welcomebox. - Nucky - 2015-06-28

start image not working ..


RE: Add some stuff to portal welcomebox. - Ad Bakker - 2015-06-28

Userstars are not composed in global.php, where the header templates are eveluated. You will need a (small) plugin for that.