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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2006, 08:32 AM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default highly needed: Profile pic creates avatar

this way, when someone uploads a profile picture, it automatically makes an avatar. i notice some users create either one or the other which is just confusing.

so, it'd be nice to be able to upload a pic, and that becomes the avatar as well as profile pic.
Reply With Quote
  #2  
Old 08-01-2006, 09:54 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm just curious; why have both if you're only going to utilize one of them?
Reply With Quote
  #3  
Old 08-01-2006, 10:40 AM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got one big board (about 15,000 members) where everybody uses the avatar feature, but hardly anyone uses the profile picture.

I'm developing a new vB system that I hope to make into a big board that promotes more interactive profiles. So far, the beta run has a number of users uploading profile pictures, but hardly anyone using avatars.

So, seeing as how both forums are complete oppisites, it'd be much nicer to see a hack that would convert a profile picture into a smaller avatar.

P.S. are you asking as a possible coder, or out of curiousity?
Reply With Quote
  #4  
Old 08-02-2006, 02:36 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I asked out of curiosity, though, I did something like this before using UBB Classic. I haven't tried it with vB.
Reply With Quote
  #5  
Old 08-02-2006, 03:03 AM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz
I asked out of curiosity, though, I did something like this before using UBB Classic. I haven't tried it with vB.
hmm i can donate $5 if it's possible?
Reply With Quote
  #6  
Old 08-02-2006, 03:16 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Personally, what I'd do is keep one of the fields active (let's say avatar); meaning disable the profile picture in the Usergroup permissions. Set the avatar file dimension and file size as well. Then change the phrase of avatar to "avatar/profile picture". The only template editing you'll need to do is with the postbit or postbit_legacy and memberlist templates. It is there that you will need to manually set the dimensions of the image to appear. If you don't then the image will appear to the dimension size you've specified in the Usergroup settings. In your public members profile pages the images will appear normal.

This way if you ever want to re-activate the profile picture for something else you have the option to do so.
Reply With Quote
  #7  
Old 08-02-2006, 03:25 AM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz
Personally, what I'd do is keep one of the fields active (let's say avatar); meaning disable the profile picture in the Usergroup permissions. Set the avatar file dimension and file size as well. Then change the phrase of avatar to "avatar/profile picture". The only template editing you'll need to do is with the postbit or postbit_legacy and memberlist templates. It is there that you will need to manually set the dimensions of the image to appear. If you don't then the image will appear to the dimension size you've specified in the Usergroup settings. In your public members profile pages the images will appear normal.

This way if you ever want to re-activate the profile picture for something else you have the option to do so.
Hmm I've got a semi-grasp on what you just explained. So in the memberinfo template where the profile picture shows up, I'd call the avatar with no size restrictions. In the postbit I use, I'd call the avatar but with size restrictions.

If that sounds right.. how would I set the avatar size displayed in postbit legacy? Also ould this call the full picture, or dynamically resize it? I'll try this out tonight.

since a number of members have signed up with profile pics, i'm going to try and use profile pics and have the postbits dynamically resize the profile pic into avatar size. can you help with instructions that way?

this might turn out to be a useful hack for others too.
Reply With Quote
  #8  
Old 08-02-2006, 03:35 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, you got it. The image won't dynamically resize the picture in the way you probably want. If anything it'll go along the dimensions of the <td> or <div> setting you lay out in the templates. In the postbit template you'll probably see this (on a default template):

Code:
			<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Replace it with:

Code:
			<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" width="100px" height="100px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Adjust the "width" and "height" settings to whatever you want.

I know this isn't what you wanted exactly but for me if I can avoid messing with the PHP files I'll do so. However, if this solution is not what you want then I would make a request in either the Service or Unpaid Modification forums.
Reply With Quote
  #9  
Old 08-02-2006, 03:49 AM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the code. Is there such thing as code to constrain proportions? That way not everybodies pics are the same size (ie 50x50). Also, the fact that it loads up a full size image for each page would take up alot of bandwidth especially for a big board. It looks like this isn't an easily done mod then, huh? I looked up image resize hacks on vb.org, and doesn't look like any hack is capable of this yet.
Reply With Quote
  #10  
Old 08-02-2006, 04:21 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup. The fix I'm providing is merely a temporary solution but not a definitive solution. To resize the dimensions dynamically and to proportion + rescale the file size is not an easy mod from the way I'm looking at it.

I haven't checked out the latest image resize hack (for vB 3.6) but all the others prior to it does take a toll on server load since it changes the file properties after it's loaded. I could be wrong but I think attachments and software like PhotoPost resizes and rescales the images on the upload. That would be ideal in your case.
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:44 PM.


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.11084 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete