Back to vBulletin 4.x Template Modifications

Resize Images in vBadvanced News Module
Mod Version: 1.1, by asabet

vB Version: 4.0.5 Rating: (3 votes - 5.00 average) Installs: 30
Released: 28 Jul 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

This mod will automatically resize images in the vBadvanced News Module to a given maximum width.

Step 1:

Go to adv_portal_newsbits template (under vbAdvanced CMPS templates) and search for:
PHP Code:
$news[message

If you can't find that, then search for:
PHP Code:
<blockquote class="postcontent restore">{vb:raw news.message}</blockquote

Immediately before whichever of those you find in your template, add:
PHP Code:
<div class="news IMG"

Save

---------------------

Step 2:

Go to additional.css template (under CSS templates) and add the following to that template (replace "512" with whatever max width you want):
PHP Code:
.news IMG  
{
         
max-width512px;
         
heightauto;


or for better (but still not perfect) support in Internet Explorer, use this instead:

PHP Code:
.news IMG  
{
         
max-width:512px;
  
widthexpression(this.width 512 512true);
         
heightauto;


Save

That's it. Worked for me. This mod is unsupported, as I have almost no knowledge about these things. I was able to get it working based on what I found here: http://www.vbadvanced.com/forum/index.php?t=40139

The vB3.8 version of this mod is here: Resize Images in vBadvanced News Module

Download

No files for download.

Similar Mods

Portal Software A Better News Module Fix for vBadvanced CMPS 2.2.1 vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024