vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Size avatar in profile (https://vborg.vbsupport.ru/showthread.php?t=281186)

youhack 04-06-2012 06:57 AM

Size avatar in profile
 
Where can I change the size of the avatar in your profile?

http://higgs.rghost.ru/37434212.image

Kyojii 04-06-2012 07:27 AM

I believe the template you are looking for is memberinfo_block_ministats.

youhack 04-06-2012 07:40 AM

HTML Code:

<img src="{vb:raw prepared.avatarurl}"  />
I tried to change the size of this file, but does not help
it can be encoded?
where to find this variable? or change?

Kyojii 04-06-2012 08:09 AM

Code:

<img src="{vb:raw prepared.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}"  {vb:raw prepared.avatarsize} id="user_avatar" />
I'm not exactly sure where you change prepared.avatarsize, however if you change the above to the following you can edit the image size in that theme (doing it this way you would have to make the avatar size change for each theme individually). Maybe someone else knows where you can edit prepared.avatarsize.

Code:

<img src="{vb:raw prepared.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}"  width="xx" height="yy" id="user_avatar" />
Be sure to replace xx and yy with the dimensions you want the image to be.

SweetAngel 04-06-2012 08:12 AM

I was just wondering the same thing but found it. If you have a look in usergroup manager and edit the group you will find the sizes can be changed there in each group.

I hope that helps

youhack 04-06-2012 09:24 AM

Quote:

Originally Posted by Kyojii (Post 2317263)
Code:

<img src="{vb:raw prepared.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}"  {vb:raw prepared.avatarsize} id="user_avatar" />
I'm not exactly sure where you change prepared.avatarsize, however if you change the above to the following you can edit the image size in that theme (doing it this way you would have to make the avatar size change for each theme individually). Maybe someone else knows where you can edit prepared.avatarsize.

Code:

<img src="{vb:raw prepared.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}"  width="xx" height="yy" id="user_avatar" />
Be sure to replace xx and yy with the dimensions you want the image to be.

not works
it stretches the avatar
size encoded {vb:raw prepared.avatarurl}

youhack 07-18-2012 06:05 AM

dimensions can be here? class_userprofile.php
Code:

        * Prepares the User's Avatar
        *
        */
        function prepare_avatar()
        {
                fetch_avatar_from_userinfo($this->userinfo, true, false);

                if ($this->userinfo['avatarurl'] == '' OR !$this->registry->options['avatarenabled'] OR ($this->userinfo['hascustomavatar'] AND !($this->userinfo['permissions']['genericpermissions'] & $this->registry->bf_ugp_genericpermissions['canuseavatar']) AND !$this->userinfo['adminavatar']))
                {
                        $this->prepared['avatarurl'] = '';
                        $this->prepared['avatarsize'] = '';
                }
                else
                {
                        $this->prepared['avatarsize'] = ($this->userinfo['avatarwidth'] ? ' width="' . $this->userinfo['avatarwidth'] . '"' : '')
                                . ($this->userinfo['avatarheight'] ? ' height="' . $this->userinfo['avatarheight']. '"' : '');
                        $this->prepared['avatarurl'] = $this->userinfo['avatarurl'];
                }
        }


youhack 08-14-2012 06:56 AM

no fix?


All times are GMT. The time now is 05:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01924 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete