vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   vB 4.2 Activity re-size avatars? (https://vborg.vbsupport.ru/showthread.php?t=283466)

GavoTrav 05-26-2012 06:29 AM

vB 4.2 Activity re-size avatars?
 
The avatars are overlaying with the text and it would be good if we can set them to a fixed size on that page with CSS or somthing? Any Ideas?

Thanks.

http://pasteshack.net/images/527213001338017381.png



I Tried
Code:

.avatar {
        width: 80px;
        height: 80px;
}

It only works with the height not width

New Joe 05-26-2012 12:27 PM

You need to re-built attachments, and other stuff I can't remember off hand to fix it.

Lynne 05-26-2012 03:01 PM

You could do something like:

li.activitybit .avatar img {max-width: 50px; max-height: 50px;}

kamran_dotnet 05-26-2012 05:13 PM

Quote:

Originally Posted by Lynne (Post 2333106)
You could do something like:

li.activitybit .avatar img {max-width: 50px; max-height: 50px;}

where i must put this code?
also my forum is Right to left
avatars are to big and its a big problem

Paul M 05-26-2012 05:51 PM

Width and height are the same in ltr or rtl :)

kamran_dotnet 05-26-2012 06:21 PM

Quote:

Originally Posted by Paul M (Post 2333188)
Width and height are the same in ltr or rtl :)

no
i mean how exacly i must put the code?
search in what template
put what code exacly
:)

GavoTrav 05-28-2012 12:45 AM

Quote:

Originally Posted by kamran_dotnet (Post 2333208)
no
i mean how exacly i must put the code?
search in what template
put what code exacly
:)

replace
Code:

li.activitybit .avatar {
        float:{vb:stylevar left};
        padding-{vb:stylevar right}:{vb:stylevar padding};
        width: 75px;
}

with
Code:

li.activitybit .avatar img {
float:{vb:stylevar right};
max-width: 80px;
max-height: 80px;}

Might work for Right to left

Not sure if i dont the float proper

kamran_dotnet 05-28-2012 09:07 AM

Quote:

Originally Posted by GavoTrav (Post 2333726)
replace
Code:

li.activitybit .avatar {
        float:{vb:stylevar left};
        padding-{vb:stylevar right}:{vb:stylevar padding};
        width: 75px;
}

with
Code:

li.activitybit .avatar img {
float:{vb:stylevar right};
max-width: 80px;
max-height: 80px;}

Might work for Right to left

Not sure if i don't the float proper

thank you
it exactly work:
http://forum.winphonecenter.com/activity.php

i don't see thanks post so i say it again:thank you


All times are GMT. The time now is 10:03 PM.

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.01060 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete