Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   TSUE 2.2 I need to bring the avatar to member_info_bar (http://www.bvlist.com/showthread.php?t=11521)

harapalb 8th April 2018 22:31

TSUE 2.2 I need to bring the avatar to member_info_bar
 
I'm working on a new theme and i tried to add the avatar picture to the member_info_bar, but it doesn't work. I used all codes like {$_avatar}, {$clickable_member_avatar} etc. but on the main page doesn't work....so someone can help me? I'll leave a picture bellow for you to see what i want to do.

Thnx for help guys!

https://jiotorrents.net/data/gallery/l/avatar.png

Botanicar 9th April 2018 22:16

Avatar on members info bar
 
Open functions_global.php in ../library/functions/
find:

Code:

function member_info_bar()
{
    global $TSUE;

after add:
Code:


    $_avatar = get_member_avatar($M["memberid"], $M["gender"], "s");

Open Admin CP --> Appearance --> Themes --> Manage Templates: Your theme --> member_info_bar


add where you want to implemente avatar picture

Code:




harapalb 9th April 2018 22:36

Thx man for answering. But the problem is that i'm working on the "oficial" version, so for me the functions_global.php file is cripted. There is another way to do that?

Botanicar 9th April 2018 23:18

Quote:

Originally Posted by harapalb (Post 51716)
Thx man for answering. But the problem is that i'm working on the "oficial" version, so for me the functions_global.php file is cripted. There is another way to do that?

Download nulled functions_global.php and try it ....

harapalb 10th April 2018 18:09

Ok, it worked but it shows only the default picture, not my avatar that i have on my profile page. Any thoughts?

Botanicar 2nd May 2018 20:10

Quote:

Originally Posted by harapalb (Post 51720)
Ok, it worked but it shows only the default picture, not my avatar that i have on my profile page. Any thoughts?

istead
Code:

    $_avatar = get_member_avatar($M["memberid"], $M["gender"], "s");

add

Code:

  $_avatar = get_member_avatar($TSUE["TSUE_Member"]->info["memberid"], $TSUE["TSUE_Member"]->info["gender"], "m");

harapalb 2nd May 2018 21:34

Thank you very much man! It worked.

Botanicar 3rd May 2018 12:27

Quote:

Originally Posted by harapalb (Post 51820)
Thank you very much man! It worked.

I'm so glad to help you

Regards


All times are GMT +2. The time now is 21:12.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.