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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2009, 11:12 AM
EidolonAH EidolonAH is offline
 
Join Date: Apr 2009
Location: London, England
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default postbit avatar bug partial fix

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.
Reply With Quote
  #2  
Old 11-20-2009, 05:23 PM
fta2k fta2k is offline
 
Join Date: Feb 2008
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, looking forward to any updates. Avy's are bigger, text is below like you've shown.
Reply With Quote
  #3  
Old 11-20-2009, 11:31 PM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
}
Attached Images
File Type: jpg demo.jpg (112.2 KB, 0 views)
Reply With Quote
  #4  
Old 11-20-2009, 11:57 PM
fta2k fta2k is offline
 
Join Date: Feb 2008
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Two positive steps forward... Maybe the next step will make it right.
Reply With Quote
  #5  
Old 11-21-2009, 12:06 AM
EidolonAH EidolonAH is offline
 
Join Date: Apr 2009
Location: London, England
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garretbyrne View Post
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!
Reply With Quote
  #6  
Old 11-21-2009, 12:18 AM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know but better than the other way at the moment, I'm afraid my knowledge of css isn't the best..
Reply With Quote
  #7  
Old 11-21-2009, 12:48 AM
Ian Emu-UK Ian Emu-UK is offline
 
Join Date: Jul 2002
Location: UK
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 01-25-2010, 12:44 PM
mustafaabubaker mustafaabubaker is offline
 
Join Date: Sep 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 04:17 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.09747 seconds
  • Memory Usage 2,251KB
  • Queries Executed 12 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete