Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

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
      #32  
    Old 06-15-2010, 03:43 PM
    Bundle's Avatar
    Bundle Bundle is offline
     
    Join Date: Apr 2010
    Posts: 37
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by dsvarups View Post
    Can this work on the blogs too, the images do not resize on members blogs?
    Seconded, can't seem to get this working on blogs.
    Reply With Quote
      #33  
    Old 06-15-2010, 03:55 PM
    Charlie98902 Charlie98902 is offline
     
    Join Date: Dec 2006
    Posts: 1,156
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    You need to alter the css to allow this to work on blogs. If you look at the css code it clearly says #posts IMG meaning posts only.
    Reply With Quote
      #34  
    Old 06-15-2010, 08:26 PM
    Charlie98902 Charlie98902 is offline
     
    Join Date: Dec 2006
    Posts: 1,156
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Wouldn't this also work in the additional.css as it is now?
    Reply With Quote
      #35  
    Old 06-20-2010, 03:25 PM
    doraj doraj is offline
     
    Join Date: Nov 2005
    Location: Italy
    Posts: 108
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Hello,

    does it works with vB 4.0.3 and also the CMS?

    Thank you
    Reply With Quote
      #36  
    Old 07-25-2010, 09:14 AM
    sticky sticky is offline
     
    Join Date: Sep 2003
    Posts: 934
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I much prefer this image resizer since it works for any resolution.

    However, is there any way to make it so a user can click to enlarge the photo to its original size?
    Reply With Quote
      #37  
    Old 10-09-2010, 03:05 AM
    StarBuG's Avatar
    StarBuG StarBuG is offline
     
    Join Date: Dec 2001
    Location: Germany
    Posts: 1,033
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    If you simply want to resize images via CSS then add this to additional.css Template:

    Code:
    .postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
    max-width:XXXpx;
    }
    where XXXpx is the max. width you want the image to have.
    You can either use px or %.
    Reply With Quote
      #38  
    Old 05-20-2011, 04:24 PM
    LifesGreatestGift's Avatar
    LifesGreatestGift LifesGreatestGift is offline
     
    Join Date: Jul 2009
    Location: Louisville, KY USA
    Posts: 885
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    using css expressions is not recommended if you are looking to render your pages faster. But great template edit all the less.

    http://developer.yahoo.com/performance/rules.html
    Reply With Quote
      #39  
    Old 06-23-2011, 02:03 AM
    kokotitokoko kokotitokoko is offline
     
    Join Date: Sep 2006
    Posts: 10
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Update

    Works on 4.1.4
    Reply With Quote
      #40  
    Old 07-02-2011, 08:48 AM
    Sworm Sworm is offline
     
    Join Date: Feb 2008
    Posts: 422
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Adding 0 in the height , will take the image's proportions?
    Reply With Quote
      #41  
    Old 06-05-2012, 07:19 PM
    eternal_ eternal_ is offline
     
    Join Date: Mar 2007
    Posts: 67
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    what about Blog Posts. Images that are from external sites, like photobucket, stretch well beyond the Featured box and even extend behind the sidebar. What .css file needs to be changed to force shrink images in blog posts? Thank you.
    Reply With Quote
    Reply

    Thread Tools

    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 11:01 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.07945 seconds
    • Memory Usage 2,314KB
    • 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
    • (1)bbcode_code
    • (1)bbcode_php
    • (1)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
    • (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
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete