vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Page 2 of 4
FirstFirst 1 2 3 4 LastLast
Results 16 to 30 of 58

Automatically Retrieve Image Dimensions

This is a discussion on Automatically Retrieve Image Dimensions within the Template Modifications forums, part of the vBulletin SEO Discussion category; Do you have any of those same filenames as 20x20 defined elsewhere in that field? (Even if under a different ...

  1. #16
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: Automatically Retrieve Image Dimensions

    Do you have any of those same filenames as 20x20 defined elsewhere in that field? (Even if under a different path?)

  2. #17
    Senior Member Michael's Avatar
    Real Name
    Michael Benson
    Join Date
    Sep 2005
    Location
    United Kingdom
    Posts
    776

    Re: Automatically Retrieve Image Dimensions

    The defualt vb skin ./statuicon (instead of the specified, ./element/statusicons) images are adopting this file size.
    Should these be deleted?

  3. #18
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: Automatically Retrieve Image Dimensions

    EDIT: Hmm. I see what you mean I think.

  4. #19
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: Automatically Retrieve Image Dimensions

    Ah, I see now. Yeah, this will only affect those with more than one style.

    The size set for 'statusicon/announcement_new.gif'

    is overriding

    the size set for 'element/statusicon/announcement_new.gif'

    because

    this string: 'statusicon/announcement_new.gif'

    does in fact exist in this string also: 'element/statusicon/announcement_new.gif'
    Last edited by Keith Cohen; 10-27-2005 at 04:12 PM.

  5. #20
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: Automatically Retrieve Image Dimensions

    You could do this, and it should fix it:

    In the script I wrote, change this line:
    Code:
    echo "'".ltrim($file['name'],"./")."' => '".$width."x".$height."'<br />";
    

    To this :
    Code:
    echo "'images".ltrim($file['name'],".")."' => '".$width."x".$height."'<br />";
    
    Last edited by Keith Cohen; 10-27-2005 at 06:10 PM.

  6. #21
    Senior Member Michael's Avatar
    Real Name
    Michael Benson
    Join Date
    Sep 2005
    Location
    United Kingdom
    Posts
    776

    Re: Automatically Retrieve Image Dimensions

    Quote Originally Posted by ConqSoft
    Ah, I see now. Yeah, this will only affect those with more than one style.

    The size set for 'statusicon/announcement_new.gif'

    is overriding

    the size set for 'element/statusicon/announcement_new.gif'

    because

    this string: 'statusicon/announcement_new.gif'

    does in fact exist in this string also: 'element/statusicon/announcement_new.gif'
    Yes, that was what i was in reference too.
    Sorry if i was unclear. I'll try out your file edit.

  7. #22
    Senior Member Michael's Avatar
    Real Name
    Michael Benson
    Join Date
    Sep 2005
    Location
    United Kingdom
    Posts
    776

    Re: Automatically Retrieve Image Dimensions

    Works fine now, thanks for the help.
    Glad to see i contributed to some bug stamping too

  8. #23
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: Automatically Retrieve Image Dimensions

    There's a fundamental issue with what you guys are trying to achieve here: the 'image size attributes' feature supports 1 LEVEL deep images only

    We've added support for 2 LEVEL deep images in the next build
    Juan Muriente / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  9. #24
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: Automatically Retrieve Image Dimensions

    Quote Originally Posted by Juan Muriente
    There's a fundamental issue with what you guys are trying to achieve here: the 'image size attributes' feature supports 1 LEVEL deep images only

    We've added support for 2 LEVEL deep images in the next build
    Really? How did the change fix his issue then?

  10. #25
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: Automatically Retrieve Image Dimensions

    Are you sure it wasn't that image dimensions were just not applied but determined by the browser?
    Juan Muriente / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  11. #26
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: Automatically Retrieve Image Dimensions

    heh. Yeah, could be.

  12. #27
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: Automatically Retrieve Image Dimensions

    Yep, that's what happened. It's just not specifying the width/height.

    Will the 'image/element/statusicon/announcement_new.gif' format work in the next release, or is that too deep?

  13. #28
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: Automatically Retrieve Image Dimensions

    It was not supported 3 minutes ago, it is now
    Juan Muriente / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  14. #29
    Senior Member acers's Avatar
    Real Name
    Ajay
    Join Date
    Jul 2005
    Location
    India
    Posts
    508

    Re: Automatically Retrieve Image Dimensions

    and what happens if you have multiple skins on board with diff image sizes?
    It will work for 1 style but what about others?

  15. #30
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: Automatically Retrieve Image Dimensions

    With the next release of vbSEO it should work, as long as all your images are arranged under your forums images directory, and you make the change I noted above for Michael.

Similar Threads

  1. Image Size Attributes Question
    By Pagan in forum General Discussion
    Replies: 1
    Last Post: 02-16-2006, 01:20 PM