View Full Version : Mini Mods - VBcms Image Resize
Ohiocustoms
06-25-2010, 10:00 PM
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
.article img {
border:0;
margin:{vb:stylevar padding};
Replace with
.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
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/eefef54/my_vbcms.rtf.html
i have modify only stile default simple black
thank you
Ohiocustoms
07-02-2010, 06:30 PM
www.mark-tribe.com
my vbcms
http://hotfile.com/dl/51946143/eefef54/my_vbcms.rtf.html
i have modify only stile default simple black
thank you
Find this
.article img {
border:0;
max-height:{vb:stylevar 300px};
max-width:{vb:stylevar 300px};
margin:{vb:stylevar padding};
Replace with this
.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
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
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
.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?
AURFSCAN
10-19-2011, 03:11 AM
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...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.