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.

marktrib3 07-02-2010 05:59 AM

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

Ohiocustoms 07-02-2010 06:30 PM

Quote:

Originally Posted by marktrib3 (Post 2063080)
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.

marktrib3 07-03-2010 11:46 AM

Ok work, thanks :)

Ohiocustoms 07-05-2010 02:08 AM

Quote:

Originally Posted by marktrib3 (Post 2063799)
Ok work, thanks :)

Your welcome, glad I could help.

bchertov 07-07-2010 01:32 AM

What does this hack do?

sticky 07-07-2010 08:02 AM

Quote:

Originally Posted by bchertov (Post 2065616)
What does this hack do?

Resizes CMS article images.

Only downside is you can't expand the images.

ckeins 09-17-2010 07:15 AM

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!

AURFSCAN 11-21-2010 03:08 AM

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

baerwurz 10-14-2011 06:21 AM

Is there a need for this mod, or does vbulletin 4.17 this resize by default?

DNN 10-17-2011 03:31 PM

couldn't agree more

AURFSCAN 10-19-2011 03:11 AM

Quote:

Originally Posted by DNN (Post 2258228)
couldn't agree more

what? with a question?? :confused:

baerwurz : Is there a need for this mod, or does vbulletin 4.17 this resize by default?


If theres no need for this in the current version then good for you... this was created for the earlier versions because the Images didnt resize...


All times are GMT. The time now is 05:57 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.01107 seconds
  • Memory Usage 1,752KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete