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

Reply
 
Thread Tools Display Modes
  #11  
Old 01-10-2012, 02:44 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I think you can do something like you want without any php coding. You already have the block of info with the avatar image at the top, you just need to edit that template to move the image abovethe other info. So edit template memberinfo_block_ministats and search for "avatar" to find this block of code:

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}}"  {vb:raw prepared.avatarsize} id="user_avatar" /></dd>
	</dl>
</vb:if>

And remove it. Then at the top of that same template, insert the part marked in red below:

Code:
<div class="mini_stats blockbody userprof_content userprof_content_border">
	<div class="userinfo " >
		<h5 class="blocksubhead userprof_blocksubhead smaller">{vb:rawphrase mini_statistics}</h5>
		<div class="blockrow member_blockrow">
		<img src="{vb:raw prepared.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}"  {vb:raw prepared.avatarsize} id="user_avatar" /><br />

Hopefully that's close to what you want.
Reply With Quote
  #12  
Old 01-10-2012, 03:24 PM
LilyVO30 LilyVO30 is offline
 
Join Date: Dec 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kevin,

That is soooo close Here is the link and I attached a photo as well http://powerliftingforwomen.com/foru...r.php?1-LilyVO.

The last thing I would want to do is enlarge the size of the photo. If somehow I can just use the default upload size than it would be perfect.

Thanks again for all of your help, I have been trying on my own for a few days now and got nowhere.
Attached Images
File Type: jpg Picture 13.jpg (46.6 KB, 0 views)
Reply With Quote
  #13  
Old 01-10-2012, 04:07 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try removing {vb:raw prepared.avatarsize} from the stuff you added to the memberinfo_block_ministats template. Edit:...actually I don't think that's going to do it, still working on it....

OK, you also need a plugin. Go to "Add New Plugin" under "Plugin & Products".

Leave the product dropdown at "vbulletin" and select "member_profileblock_fetch_unwrapped" from the Hook Location dropdown menu.

Next, enter a title, maybe something like "full size avatar in profile". Then paste this code in the large text area:
Code:
if (!empty($prepared['avatarurl']))
    $prepared['avatarurl'] = str_replace('&amp;type=thumb', '', $prepared['avatarurl']);

Now select the Yes radio button next to "Plugin is Active", and press Save.

Hopefully that will do it.
Reply With Quote
  #14  
Old 01-10-2012, 08:34 PM
LilyVO30 LilyVO30 is offline
 
Join Date: Dec 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yessss!!! Sooo happy! Thank you so much!! I really appreciate it!




***If anyone is interested in previous post this you still have to remove the {vb:raw prepared.avatarsize}
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 01:54 AM.


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.04032 seconds
  • Memory Usage 2,214KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete