vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   vBulletin appearance user profile (https://vborg.vbsupport.ru/showthread.php?t=321037)

Akkarin 12-10-2015 07:31 AM

vBulletin appearance user profile
 
Hi,
I have a question - can I in vB4 change appearance of the profile of users similar to it from vB 3.6? Or at least to place avatar under the nickname?
It is important, please help me.

MarkFL 12-10-2015 08:07 AM

Do you want the avatar to go where the profile pic is, to replace it or bump the profile pic down?

If you can post a screenshot of what you'd like, it would be easier for us to advise you. :)

Akkarin 12-10-2015 12:15 PM

Quote:

Originally Posted by MarkFL (Post 2560095)
Do you want the avatar to go where the profile pic is, to replace it or bump the profile pic down?

If you can post a screenshot of what you'd like, it would be easier for us to advise you. :)

Thanks for the reply. So:
http://i.imgur.com/9wihvaU.png
http://i.imgur.com/ayeBanj.png
http://i.imgur.com/IpwPv8x.png

I would like to change the view tables in the profiles, you know - I prefer to view an older version of vBulletin, 3.6, not 4.2 which I have on the forum. I could somehow change the appearance, or would I need to change the version? Additionally, I would like to set an avatar under the nickname, as in the first screenshot. :)

MarkFL 12-10-2015 04:11 PM

Okay, if you want the user avatars to display directly below the titles, you will need to edit your "MEMBERINFO" template as follows:

Locate the code:

HTML Code:

                                                <vb:if condition="$prepared['usertitle']">
                                                        <br />
                                                        <span class="usertitle">{vb:raw prepared.usertitle}</span>
                                                </vb:if>

And directly below this, add:

HTML Code:

                                                <img src="{vb:raw show.avatar}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}" id="user_avatar" style="margin: 5px 0" />
Now, to make the variable "$show['avatar']" contain a link to the user's full sized avatar image, you need to create the following plugin:

Product: vBulletin

Hook Location: member_complete

Title: Create URL To Avatar

Plugin PHP Code:

PHP Code:

$avatar_url fetch_avatar_url($prepared['userid']);
$show['avatar'] = $avatar_url[0]; 

Plugin is Active: Yes

Click "Save."

Now, to prevent the thumbnailed avatar from displaying, edit your "memberinfo_block_ministats" template by locationg the code:

HTML Code:

                        <vb:if condition="$prepared['avatarurl']">
                        <dl class="stats">
                                <dt>{vb:rawphrase avatar}</dt>
                                <dd class="avatar"><img src="{vb:raw prepared.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}" id="user_avatar" /></dd>
                        </dl>
                        </vb:if>

and comment it out as follows:

HTML Code:

                        <vb:comment><vb:if condition="$prepared['avatarurl']">
                        <dl class="stats">
                                <dt>{vb:rawphrase avatar}</dt>
                                <dd class="avatar"><img src="{vb:raw prepared.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}" id="user_avatar" /></dd>
                        </dl>
                        </vb:if></vb:comment>

Once you verify this works as you desire, we can move on to the other issues, about which at this point I am still unclear. :)

Akkarin 12-10-2015 07:23 PM

Thanks a lot!
Now I have another problem:
http://i.imgur.com/c1VS7wb.png

I wish that the title has been under the nickname, and avatar below the title. Additionally, I would also like to 'Send a private message', 'Home Site', etc. to put under the avatar, because they look terrible in the present moment. :)

MarkFL 12-10-2015 07:31 PM

Quote:

Originally Posted by Akkarin (Post 2560154)
Thanks a lot!
Now I have another problem:
http://i.imgur.com/c1VS7wb.png

I wish that the title has been under the nickname, and avatar below the title. Additionally, I would also like to 'Send a private message', 'Home Site', etc. to put under the avatar, because they look terrible in the present moment. :)

Wrap the image element in your "MEMBERINFO" template as follows:

HTML Code:

<div><img src="{vb:raw show.avatar}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}" id="user_avatar" style="margin: 5px 0" /></div>

Akkarin 12-11-2015 09:20 AM

Quote:

Originally Posted by MarkFL (Post 2560156)
Wrap the image element in your "MEMBERINFO" template as follows:

HTML Code:

<div><img src="{vb:raw show.avatar}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}" id="user_avatar" style="margin: 5px 0" /></div>

It works. Thanks.

But now... I would like to make a table look in profiles on vBulletin 4 how here:
http://i.imgur.com/3r1O0cE.png
Is it possible?

MarkFL 12-11-2015 03:50 PM

Quote:

Originally Posted by Akkarin (Post 2560198)
It works. Thanks.

But now... I would like to make a table look in profiles on vBulletin 4 how here:
http://i.imgur.com/3r1O0cE.png
Is it possible?

Would it be possible for you to display in English, and show me the before (as it is now) and after (how you want it to look instead) images?

Akkarin 12-12-2015 10:55 AM

Quote:

Originally Posted by MarkFL (Post 2560233)
Would it be possible for you to display in English, and show me the before (as it is now) and after (how you want it to look instead) images?

Sure:
I would like something like this: http://i.imgur.com/e9AIry5.png
Currently I have this: http://i.imgur.com/5HbEObr.png

MarkFL 12-12-2015 04:47 PM

Quote:

Originally Posted by Akkarin (Post 2560265)
Sure:
I would like something like this: http://i.imgur.com/e9AIry5.png
Currently I have this: http://i.imgur.com/5HbEObr.png

That's an extensive change and would require a great deal of template re-coding. In this case, I would suggest first looking at the styles available here to see if one suits your desire.


All times are GMT. The time now is 11:40 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.01321 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_html_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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