Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2015, 07:31 AM
Akkarin Akkarin is offline
 
Join Date: Oct 2015
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 12-10-2015, 08:07 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-10-2015, 12:15 PM
Akkarin Akkarin is offline
 
Join Date: Oct 2015
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.
Reply With Quote
  #4  
Old 12-10-2015, 04:11 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Lynne
  #5  
Old 12-10-2015, 07:23 PM
Akkarin Akkarin is offline
 
Join Date: Oct 2015
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
mathforum
  #6  
Old 12-10-2015, 07:31 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Akkarin View Post
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>
Reply With Quote
  #7  
Old 12-11-2015, 09:20 AM
Akkarin Akkarin is offline
 
Join Date: Oct 2015
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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?
Reply With Quote
  #8  
Old 12-11-2015, 03:50 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Akkarin View Post
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?
Reply With Quote
  #9  
Old 12-12-2015, 10:55 AM
Akkarin Akkarin is offline
 
Join Date: Oct 2015
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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
Reply With Quote
  #10  
Old 12-12-2015, 04:47 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Akkarin View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04472 seconds
  • Memory Usage 2,282KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_html
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete