vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   postbit avatar bug partial fix (https://vborg.vbsupport.ru/showthread.php?t=228439)

EidolonAH 11-20-2009 11:12 AM

postbit avatar bug partial fix
 
1 Attachment(s)
Posted this on .com too but figured some folk here might be able to help with the bit Im stuck on.
I found a partial fix for the avatar bug in horizontal postbit, but there is one bit I have yet to figure out, the username & rank should be floating to the right of the avatar and it's showing underneath:
Attachment 106431

This is the partial fix

OPEN postbit.css

FIND:

Code:

.postbit .postuseravatarlink {
    display:block;
    text-align: center;
    position: absolute;
    top: 0;
    {vb:stylevar left}: {vb:math {vb:stylevar padding}+5};
    width: 60px;
    height: 60px;
    background: {vb:stylevar postbit_background};
    overflow: hidden;
}

.postbit .postuseravatarlink img {
    height: auto;
    max-height:60px;
    height:auto !important;
    max-width:60px;
    width:auto !important;
    margin: auto;
}

REPLACE WITH:

Code:

.postbit .postuseravatarlink {
    display:inline;
    text-align: center;
    position: relative;
    top: 0;
    {vb:stylevar left}: {vb:math {vb:stylevar padding}+5};
    width: auto;
    height: auto;
    background: {vb:stylevar postbit_background};
    overflow: hidden;
}

.postbit .postuseravatarlink img {
    height: auto;
    max-height:auto;
    height:auto !important;
    max-width:auto;
    width:auto !important;
    margin: auto;
}

Input on fixing the username position would be great if I can't fix it myself soon.

fta2k 11-20-2009 05:23 PM

Hey, looking forward to any updates. Avy's are bigger, text is below like you've shown.

garretbyrne 11-20-2009 11:31 PM

1 Attachment(s)
If you try
Block instead of inline puts the username and details right under neat your avatar, the avatar is centered and no background..
It's something for the time being, lol

.postbit .postuseravatarlink {
display:block;
text-align: center;
position: relative;
top: 0;
{vb:stylevar left}: {vb:math {vb:stylevar padding}+5};
width: auto;
height: auto;
background:;
overflow: hidden;
}

.postbit .postuseravatarlink img {
height: auto;
max-height:auto;
height:auto !important;
max-width:auto;
width:auto !important;
margin: auto;
}

fta2k 11-20-2009 11:57 PM

Well, not ideal but it's sure better than before...

Two positive steps forward... Maybe the next step will make it right.

EidolonAH 11-21-2009 12:06 AM

Quote:

Originally Posted by garretbyrne (Post 1918065)
If you try
Block instead of inline puts the username and details right under neat your avatar, the avatar is centered and no background..
It's something for the time being, lol

.postbit .postuseravatarlink {
display:block;
text-align: center;
position: relative;
top: 0;
{vb:stylevar left}: {vb:math {vb:stylevar padding}+5};
width: auto;
height: auto;
background:;
overflow: hidden;
}

.postbit .postuseravatarlink img {
height: auto;
max-height:auto;
height:auto !important;
max-width:auto;
width:auto !important;
margin: auto;
}

This wont work with very wide avatars!

garretbyrne 11-21-2009 12:18 AM

I know but better than the other way at the moment, I'm afraid my knowledge of css isn't the best..

Ian Emu-UK 11-21-2009 12:48 AM

I have found a workable solution to this problem and posted it on vb.com in the thread started by Eidolon over there.

http://www.vbulletin.com/forum/showt...=1#post1849110

Hopefully this will help until the issue is fixed by the vB team.

mustafaabubaker 01-25-2010 12:44 PM

Dears.

i want to know if i can re-size images what ever their size are.
if any body asks why, the answer is to disallow hackers from uploading php codes or shell files with image extension and by a way or another they change its extension on the server to php or any other executable extension and do hacking on the server.

images are (avatars, user signature, album pictures, group pictures...etc )

please help if there is a way in vBulletin.


All times are GMT. The time now is 02:27 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.01205 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_code_printable
  • (1)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