PDA

View Full Version : vBulletin appearance user profile


Akkarin
12-10-2015, 07:31 AM
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
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:

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

And directly below this, add:

<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:

$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:

<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:

<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
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:

<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
Wrap the image element in your "MEMBERINFO" template as follows:

<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
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
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
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.