Results 1 to 14 of 14

Thread: resize image in news

  1. #1
    Join Date
    Apr 2010
    Posts
    8

    Default resize image in news

    hi

    To minimize the Photo in the News

    like that



    from orginal size



    put this css code in style

    Code:
    .news IMG  
    {  
        max-width: 25%;  
        height: expression(this.height > 1024 ? "1024px" : true);  
        width: expression(this.width > 100 ? "100px" : true);
        border-left: 3px double #dadada; 
        border-top: 3px double #dadada; 
        border-right: 3px double #dadada; 
        border-bottom: 3px double #dadada;
    }

    and Search in adv_portal_newsbits template for $news[message] and replace it with

    Code:
    <div class="news IMG" align="right">$news[message]

    done ...

  2. #2
    Join Date
    Jul 2006
    Posts
    1

    Default

    Thank you very much, installed and working great!

  3. #3
    Join Date
    May 2010
    Posts
    1

    Default

    "put this css code in style"

    where is it exactly?

  4. #4

    Default

    I when change that max-width: 25%; code replace with max-width: 50%; then it can be very fluid on block.

  5. #5
    Join Date
    Apr 2010
    Posts
    8

    Default

    Quote Originally Posted by chopper9 View Post
    "put this css code in style"

    where is it exactly?
    hi



    Quote Originally Posted by BlackThorn View Post
    I when change that max-width: 25%; code replace with max-width: 50%; then it can be very fluid on block.
    This code is not compatible with Firefox

    Try this

    Code:
    .news IMG  
    {
             max-width: 80px;
             border: 3px double #dadada; 
             margin-top: 1px;
             margin-left: 5px;
             float: right;
    }
    Result



  6. #6
    Join Date
    Apr 2010
    Posts
    8

    Default

    Quote Originally Posted by Uber_Tiny View Post
    Thank you very much, installed and working great!

    Superrrr

  7. #7

    Default

    Quote Originally Posted by nawras View Post
    hi





    This code is not compatible with Firefox

    Try this

    Code:
    .news IMG  
    {
             max-width: 80px;
             border: 3px double #dadada; 
             margin-top: 1px;
             margin-left: 5px;
             float: right;
    }
    Result


    Ehhh, Thank you! It's okay now (:

  8. #8
    Join Date
    Mar 2008
    Posts
    3

    Default

    How do I can edit the images resize in vba v4 ?
    كيف استطيع تطبيق هذا الشرح على الاصدار الرابع من المجلة

    thanks 4 u
    ولكم كل الشكر

  9. #9
    Join Date
    Mar 2010
    Posts
    2

    Default

    EDIT: Is it possible to algin text to top of the img?
    Last edited by ar2; 07-23-2010 at 11:17 AM.

  10. #10
    Join Date
    Jun 2010
    Posts
    1

    Default

    When problems occur, but the maximum is characteristic of the 0 to...

    pictures do not appear..

  11. #11
    Join Date
    Dec 2008
    Posts
    27

    Default

    Thanks for sharing this. I didn't want to minimize, only to limit size to 512px. I used a modified version of what you posted. In case anyone else is looking, here's my version for vB3 and vB4:
    * http://www.vbulletin.org/forum/showthread.php?t=247434
    * http://www.vbulletin.org/forum/showthread.php?t=247437

  12. #12
    Join Date
    Aug 2010
    Posts
    2

    Default Türk yetkililer bakarmısınız

    Bir sorunum var inşallah çözüme kavuşacak.
    http://www.arsivm.com/hack.php burda gördüğünüz gibi konular düzgün çıkmıyor portalda bir yardımcı olurmusunuz...

  13. #13
    Join Date
    Apr 2010
    Posts
    8

    Default

    Quote Originally Posted by bashsoft View Post
    How do I can edit the images resize in vba v4 ?
    كيف استطيع تطبيق هذا الشرح على الاصدار الرابع من المجلة

    thanks 4 u
    ولكم كل الشكر
    I have never tested on version 4

    لم اجربه على نسخة 4
    ارجو المعذرة



    Quote Originally Posted by ar2 View Post
    EDIT: Is it possible to algin text to top of the img?
    I do not think that

  14. #14
    Join Date
    Apr 2010
    Posts
    8

    Default

    Quote Originally Posted by asabet View Post
    Thanks for sharing this. I didn't want to minimize, only to limit size to 512px. I used a modified version of what you posted. In case anyone else is looking, here's my version for vB3 and vB4:
    * http://www.vbulletin.org/forum/showthread.php?t=247434
    * http://www.vbulletin.org/forum/showthread.php?t=247437

    Tanks Asabet very much


    Quote Originally Posted by arda71 View Post
    Bir sorunum var inşallah çözüme kavuşacak.
    http://www.arsivm.com/hack.php burda gördüğünüz gibi konular düzgün çıkmıyor portalda bir yardımcı olurmusunuz...

    Sorry
    I do not understand Turkish,but I understand you have a problem

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. News Module - Image resize
    By Jove in forum Modifications (version 3.x & 2.x)
    Replies: 10
    Last Post: 07-27-2010, 09:44 PM
  2. I need to resize image in the news
    By Mr.Ayman in forum Module & Modification Discussion & Requests
    Replies: 0
    Last Post: 02-23-2010, 07:26 AM
  3. Image auto resize in news module
    By mykloe in forum "How Do I..." Questions
    Replies: 1
    Last Post: 08-10-2009, 11:04 AM
  4. if a big image is uploaded, resize it
    By eden in forum Feedback & Suggestions
    Replies: 5
    Last Post: 01-08-2008, 09:36 PM
  5. how to resize image in news module outside vbadvanced portal ?
    By wil8x in forum "How Do I..." Questions
    Replies: 9
    Last Post: 12-01-2007, 01:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •