Back to vBulletin 3.8 Template Modifications

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

vB Version: 3.8.6 Rating: (0 vote - 0 average) Installs: 17
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:

Add the following under Additional CSS Definitions (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 vB4 version of this mod is here: Resize Images in vBadvanced News Module

Download

No files for download.

Similar Mods

Miscellaneous Hacks Resize Images in vBadvanced News Module vBulletin 4.x Template Modifications
vBadvanced CMPS - News Digest Module 1.02 vBulletin 3.0 Full Releases
Portal Software A Better News Module Fix for vBadvanced CMPS 2.2.1 vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024