Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Resize Images Zero Query Details »»
Resize Images Zero Query
Version: 1.00, by kokotitokoko kokotitokoko is offline
Developer Last Online: May 2020 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.1.4 Rating:
Released: 01-14-2010 Last Update: Never Installs: 39
Template Edits
 
No support by the author.

=========================
postbit.css TEMPLATE
=========================
INSERT AT END OF TEMPLATE:


PHP Code:
/* BEGIN Image resize */
#posts IMG {
    
max-width640px;

}
#collapseobj_threadreview IMG {
    
max-width640px;

}
/* END Image resize */ 

Mark as installed, if you use it

eslamhero

Supporters / CoAuthors

    Show Your Support

    • This modification may not be copied, reproduced or published elsewhere without author's permission.
    Благодарность от:
    SKIDROW

    Comments
      #12  
    Old 01-15-2010, 04:47 PM
    dlan dlan is offline
     
    Join Date: Aug 2005
    Location: Greece
    Posts: 17
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by elwachiman View Post
    good modification but affects postbit_legacy custom images affect avatars and user ranks, if only reduced the images in the post would be perfect .. can fix that part so that the images will not affect the ranges or avatars, thanks
    Code:
    .postbody IMG{   
        max-width: 85%;   
        height: expression(this.height > 100 ? "100px" : true);   
        width: expression(this.width > 100 ? "100px" : true);   
    }
    .postbody instead of .posts but i don't suggest using css expressions. If many images are used on a page it will cause a small freeze to users with not so good PCs.
    Reply With Quote
      #13  
    Old 01-15-2010, 05:43 PM
    elwachiman's Avatar
    elwachiman elwachiman is offline
     
    Join Date: Nov 2009
    Location: Venezuela
    Posts: 191
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    just what I say is that it would be good to just reduce the images in the showthread ..
    edit

    . this was what I wanted to put that code thanks dLAN and worked to perfection only reduces the images in postbody .. xd

    Code:
    /* BEGIN Image resize */   
    .postbody IMG{   
        max-width: 85%;   
        height: expression(this.height > 100 ? "100px" : true);   
        width: expression(this.width > 100 ? "100px" : true);   
    }
    
    /* END Image resize */
    Reply With Quote
      #14  
    Old 01-15-2010, 06:13 PM
    Charlie98902 Charlie98902 is offline
     
    Join Date: Dec 2006
    Posts: 1,156
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    dlan's css additional does just that. go to post.css and or postbit_legacy.css and put that css code at the very bottom. I tested it and it works.
    Reply With Quote
      #15  
    Old 01-15-2010, 09:19 PM
    Charlie98902 Charlie98902 is offline
     
    Join Date: Dec 2006
    Posts: 1,156
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by elwachiman View Post
    just what I say is that it would be good to just reduce the images in the showthread ..
    edit

    . this was what I wanted to put that code thanks dLAN and worked to perfection only reduces the images in postbody .. xd

    Code:
    /* BEGIN Image resize */   
    .postbody IMG{   
        max-width: 85%;   
        height: expression(this.height > 100 ? "100px" : true);   
        width: expression(this.width > 100 ? "100px" : true);   
    }
    
    /* END Image resize */
    What's the difference between yours and dLAN's? All you added was begin and end to the code. Also is yours inserted into the postbit or postbit_legacy.css?
    Reply With Quote
      #16  
    Old 01-15-2010, 09:29 PM
    elwachiman's Avatar
    elwachiman elwachiman is offline
     
    Join Date: Nov 2009
    Location: Venezuela
    Posts: 191
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by Charlie98902 View Post
    What's the difference between yours and dLAN's? All you added was begin and end to the code. Also is yours inserted into the postbit or postbit_legacy.css?
    the difference is the reduced dLAN code images of customized ranges postbit avatars in user code and the other only the pictures of the postbody information. the code is placed at the end of postbit.css
    Reply With Quote
      #17  
    Old 01-15-2010, 09:53 PM
    Charlie98902 Charlie98902 is offline
     
    Join Date: Dec 2006
    Posts: 1,156
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Thanks
    Reply With Quote
      #18  
    Old 01-16-2010, 10:27 AM
    kokotitokoko kokotitokoko is offline
     
    Join Date: Sep 2006
    Posts: 10
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    lol ....
    It seems to me that what made a good I did not imagine Malk
    Google Translation
    Reply With Quote
      #19  
    Old 01-16-2010, 07:25 PM
    dsvarups dsvarups is offline
     
    Join Date: Oct 2008
    Posts: 1
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Can this work on the blogs too, the images do not resize on members blogs?
    Reply With Quote
      #20  
    Old 01-17-2010, 06:46 AM
    rajubd rajubd is offline
     
    Join Date: Jun 2009
    Posts: 209
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    not working image size remain same
    this is what i want
    see screenshot :

    with the images have 1000 pixels & over , they re overflowed .... look not beautiful
    i want they remain within vb
    like this website
    http://www.vbstyles.com/forum/showthread.php?&t=6369
    Reply With Quote
      #21  
    Old 01-17-2010, 07:02 AM
    kokotitokoko kokotitokoko is offline
     
    Join Date: Sep 2006
    Posts: 10
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by rajubd View Post
    not working image size remain same
    this is what i want
    see screenshot :

    with the images have 1000 pixels & over , they re overflowed .... look not beautiful
    i want they remain within vb
    like this website
    http://www.vbstyles.com/forum/showthread.php?&t=6369
    tray these

    headinclude TEMPLATE

    INSERT AT END OF TEMPLATE:

    PHP Code:
    <link rel="stylesheet" href="clientscript/eslamhero.css" type="text/css" /> 
    and upload files
    Attached Files
    File Type: zip eslamhero.zip (602 Bytes, 53 views)
    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 10:55 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.04663 seconds
    • Memory Usage 2,340KB
    • Queries Executed 27 (?)
    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
    • (3)bbcode_code
    • (2)bbcode_php
    • (4)bbcode_quote
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (4)navbar_link
    • (120)option
    • (1)pagenav
    • (1)pagenav_curpage
    • (3)pagenav_pagelink
    • (11)post_thanks_box
    • (1)post_thanks_box_bit
    • (11)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (1)post_thanks_postbit
    • (11)post_thanks_postbit_info
    • (10)postbit
    • (1)postbit_attachment
    • (11)postbit_onlinestatus
    • (11)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
    • fetch_musername
    • post_thanks_function_fetch_thanks_end
    • post_thanks_function_thanked_already_start
    • post_thanks_function_thanked_already_end
    • 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
    • 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
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete