vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - VBcms Image Resize (https://vborg.vbsupport.ru/showthread.php?t=245295)

Ohiocustoms 06-25-2010 10:00 PM

VBcms Image Resize
 
1 Attachment(s)
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 :confused: 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.

Barakat 06-25-2010 11:17 PM

nice work thanks

sulasno 06-25-2010 11:41 PM

tagged and thanks

vBulletin should include this Mod in the next release

Dr.osamA 06-27-2010 05:07 AM

good work bro

thanxx

installed + 5 stars

Ohiocustoms 06-27-2010 12:14 PM

Thanks everyone. This really is a must have for fixed style forums and any site that has large images in articles.

doraj 06-28-2010 11:17 PM

Hello, congratulations ;)

Is also possible add some effect..as lightbox?

Thank you

sticky 06-29-2010 01:54 AM

Finally, installing now.

sticky 06-29-2010 01:59 AM

Ok, installed, works great but you can't click to expand the image?

marktrib3 07-01-2010 10:51 AM

Hello, don't work on my site :(

Ohiocustoms 07-01-2010 07:03 PM

Quote:

Originally Posted by marktrib3 (Post 2062670)
Hello, don't work on my site :(

Post up your vbcms.css file and a link to your site.


All times are GMT. The time now is 03:29 AM.

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.01831 seconds
  • Memory Usage 1,727KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete