PDA

View Full Version : Resize Images in vBadvanced News Module


asabet
28 Jul 2010, 00:25
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:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




If you can't find that, then search for:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Immediately before whichever of those you find in your template, add:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




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):

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




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



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




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/showthread.php?t=40139

The vB3.8 version of this mod is here: http://www.vbulletin.org/forum/showthread.php?t=247437

FReeSTER
28 Jul 2010, 04:12
Looks like a great idea but i dont have neither of those codes on my template.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

:(:(:(:o:confused:

Blooded
28 Jul 2010, 05:16
Didnt work just broke everything when i click in portal send me to mysite.com/register.php :s and everything looks bad

asabet
28 Jul 2010, 16:31
El Intocable, in your case I think you'd add it just before

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Blooded, sorry it isn't working for you. Works perfect on my site running vB4.0.5 and vBa CMPS 4.0.1.

FReeSTER
29 Jul 2010, 02:29
El Intocable, in your case I think you'd add it just before

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Thank you bro, it worked very good on vb 4.0.3

Blooded
29 Jul 2010, 06:15
El Intocable, in your case I think you'd add it just before

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Blooded, sorry it isn't working for you. Works perfect on my site running vB4.0.5 and vBa CMPS 4.0.1.

i have the same version as you maybe i edit wrong :confused:
Thanks anyway :)

Winter Sonata
29 Aug 2010, 22:46
works like a sharm :)

but there are 2 of ''' {vb:raw news.message} ''' choose the first one not the other ;)

installed

zonaenlinea
13 Sep 2010, 01:13
for vBadvanced 4.0.0 ?

in vbulletin 4.0.6 ?

DNDJ
13 Sep 2010, 20:17
work great thank very much.

elwachiman
23 Sep 2010, 04:44
Works Perfect In Vb 4.0.7 And Vbadv 4.0.1

digitaldome
12 Feb 2011, 09:47
thanks. working fine with vBadvanced CMPS v4.1.0

Juggernaut
01 May 2011, 07:40
Working good :D

dr.tawy
21 May 2011, 21:39
Great Work

Merenguista
22 May 2011, 10:22
thanks

Stefanus
24 May 2011, 21:00
To resize the image to max- width and height the following code can be used:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



vBadvanced CMPS v4.0.1 - vBulletin™ Version 4.1.2

hanhdn
17 Oct 2011, 11:24
thank very usefull

msametg
22 Nov 2011, 07:53
thanks. it works perfect.

usuyusu
25 Nov 2011, 09:10
Great!!!!!

I have been looking for something like this for months!!!!

:)

THANK YOU!!!!

:)

You can see it working at my site guys!!!

mradlin
12 Dec 2011, 01:20
Working great!!

Thanks