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
VBcms Image Resize Details »»
VBcms Image Resize
Version: 1.00, by Ohiocustoms Ohiocustoms is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.4 Rating:
Released: 06-25-2010 Last Update: Never Installs: 36
Template Edits
Re-useable Code  
No support by the author.

First posted mod. I didn't want to click the pencil for every picture in an article. I'm surprised this wasn't included in 4.04 Very simple to install. Before and after images included.

Step 1
Admincp>Styles & Templates>CSS Templates>vbcms.css

Code:
.article img {
	border:0;
	margin:{vb:stylevar padding};
Replace with

Code:
.article img {
	border:0;
	max-height:{vb:stylevar vbcms_article_image_large_maxSize};
	max-width:{vb:stylevar vbcms_article_image_large_maxSize};
	margin:{vb:stylevar padding};
Click Save

Step 2
Then open stylevars and edit vbcms_article_image_large_maxSize to whatever value works best for you.

Screenshots

File Type: jpg before.jpg (83.0 KB, 0 views)
File Type: jpg after.jpg (90.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-02-2010, 05:59 AM
marktrib3 marktrib3 is offline
 
Join Date: May 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

www.mark-tribe.com
my vbcms
http://hotfile.com/dl/51946143/eefef...vbcms.rtf.html
i have modify only stile default simple black
thank you
Reply With Quote
  #13  
Old 07-02-2010, 06:30 PM
Ohiocustoms Ohiocustoms is offline
 
Join Date: Sep 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by marktrib3 View Post
www.mark-tribe.com
my vbcms
http://hotfile.com/dl/51946143/eefef...vbcms.rtf.html
i have modify only stile default simple black
thank you
Find this
Code:
.article img {
	border:0;
        max-height:{vb:stylevar 300px};
	max-width:{vb:stylevar 300px};
	margin:{vb:stylevar padding};
Replace with this
Code:
.article img {
	border:0;
	max-height:{vb:stylevar vbcms_article_image_large_maxSize};
	max-width:{vb:stylevar vbcms_article_image_large_maxSize};
	margin:{vb:stylevar padding};
Don't forget to do Step 2.
Reply With Quote
  #14  
Old 07-03-2010, 11:46 AM
marktrib3 marktrib3 is offline
 
Join Date: May 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok work, thanks
Reply With Quote
  #15  
Old 07-05-2010, 02:08 AM
Ohiocustoms Ohiocustoms is offline
 
Join Date: Sep 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by marktrib3 View Post
Ok work, thanks
Your welcome, glad I could help.
Reply With Quote
  #16  
Old 07-07-2010, 01:32 AM
bchertov's Avatar
bchertov bchertov is offline
 
Join Date: Dec 2004
Location: Sonoma County, CA
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does this hack do?
Reply With Quote
  #17  
Old 07-07-2010, 08:02 AM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bchertov View Post
What does this hack do?
Resizes CMS article images.

Only downside is you can't expand the images.
Reply With Quote
  #18  
Old 09-17-2010, 07:15 AM
ckeins ckeins is offline
 
Join Date: May 2004
Location: Berlin
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is just a very small mod, but it did help my forums a lot more than those big fancy mods nobody needs.

Thank you very much!
Reply With Quote
  #19  
Old 11-21-2010, 03:08 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had to do this for 4.08

vbcms.css in 4.08 looks like this

Code:
.article img {
	border:0;
	margin:{vb:stylevar padding};
	max-width:{vb:stylevar image_medium_max};
just replaced it with Ohio code and works well

thx Ohio
Reply With Quote
  #20  
Old 10-14-2011, 06:21 AM
baerwurz baerwurz is offline
 
Join Date: Nov 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a need for this mod, or does vbulletin 4.17 this resize by default?
Reply With Quote
  #21  
Old 10-17-2011, 03:31 PM
DNN DNN is offline
 
Join Date: Mar 2011
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

couldn't agree more
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 01:43 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.04773 seconds
  • Memory Usage 2,330KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_code
  • (3)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete