Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 02-19-2014, 10:25 PM
BBNZowner's Avatar
BBNZowner BBNZowner is offline
 
Join Date: Oct 2013
Location: New Zealand
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Rounded avatar?

Hi there, I've seen on a few forums people have a mod or template edit which makes all avatars rounded into a circle - I'm sure I've seen something here about it to but can't find the thread anymore.

Any idea how to do this?


I've tried editing the postbit.css as so (ive tried a few things here, heres one example):
Code:
.postbit .postuseravatarlink img {
    height: 150px;
    width: 175px;
    border-radius: 50px;
    border: 0px none;
    float: right;
}
no result
I'm still pretty useless at figuring exactly what to do for things like this haha, chances are im nowhere near the right place
Reply With Quote
  #2  
Old 02-19-2014, 10:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We would need a link to a thread on your site, and an image of what you want, in order to help with CSS issues.
Reply With Quote
  #3  
Old 02-19-2014, 11:18 PM
BBNZowner's Avatar
BBNZowner BBNZowner is offline
 
Join Date: Oct 2013
Location: New Zealand
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm currently testing on the completely default template, with no changes. So the CSS is all original from that one (I'd provide a link, but my current forum template is locked to a customised one for users).

I've attached an image of what id like to achieve (badly edited as I've forgotten to bookmark the forum running it and away from photoshop :P).

Basically, any uploaded avatars show up as a circle instead of the original picture shape.
Attached Images
File Type: png imgs.png (112.0 KB, 0 views)
Reply With Quote
  #4  
Old 02-19-2014, 11:24 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps this mod, https://vborg.vbsupport.ru/showthread.php?t=305608
Reply With Quote
  #5  
Old 02-20-2014, 01:51 AM
BBNZowner's Avatar
BBNZowner BBNZowner is offline
 
Join Date: Oct 2013
Location: New Zealand
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will have a look at the mod, thanks

edit: Not quite what I had in mind, too much going on with that for my forum.
Reply With Quote
  #6  
Old 02-20-2014, 02:27 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm making it a circle can be done w/ CSS but all would need to be the same size avatar... gosh I've seen something before css wise that did what you said and made whatever image a perfect circle it may have used some .js as well can't recall but here's a snippet that rounds corners of avatars in posts see if you can tinker with this some (paste @ bottom of additional.css):

Code:
.postuseravatar img {
	-moz-border-radius-top{vb:stylevar right}: 10px !important;
	-moz-border-radius-top{vb:stylevar left}: 10px !important;
	-webkit-border-top-{vb:stylevar right}-radius: 10px !important;
	-webkit-border-top-{vb:stylevar left}-radius: 10px !important;
	border-top-{vb:stylevar right}-radius: 10px !important;
	border-top-{vb:stylevar left}-radius: 10px !important;
	-moz-border-radius-bottom{vb:stylevar right}: 10px !important;
	-moz-border-radius-bottom{vb:stylevar left}: 10px !important;
	-webkit-border-bottom-{vb:stylevar right}-radius: 10px !important;
	-webkit-border-bottom-{vb:stylevar left}-radius: 10px !important;
	border-bottom-{vb:stylevar right}-radius: 10px !important;
	border-bottom-{vb:stylevar left}-radius: 10px !important;
}
^ Change the 10px to 50px or your value.

Edit: Ohh and when you're tinkering w/ css and you use additional.css to "overwrite" a default definition, well if it already had a border-radius defined (any css) and you overwrite in additional.css w/o using !important it may not display your changes SO if you ever run into a scenario where you know it should work but it's not simply add !important to the end to ensure it knows "hey this is important to show just like this".
Reply With Quote
2 благодарности(ей) от:
BBNZowner, Hasanudin
  #7  
Old 02-20-2014, 03:00 AM
BBNZowner's Avatar
BBNZowner BBNZowner is offline
 
Join Date: Oct 2013
Location: New Zealand
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That has done exactly what I wanted, thanks!
Reply With Quote
2 благодарности(ей) от:
Lynne, TheLastSuperman
Reply

Thread Tools
Display Modes

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 10: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.04474 seconds
  • Memory Usage 2,241KB
  • 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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (4)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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
  • postbit_attachment
  • 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