Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    877
    Plugin Contributions
    1

    Default PROPORTIONAL_IMAGES_STATUS in html_output

    I'm completely baffled by this.

    After spending hours walking through the code trying to get IH2 to work, I came upon this little snip of code and changed the 0 to a 1 and IH2 works fine.

    The $src param passed to the zen_image function fails this logic and defaults to calling zen_image_OLD and bypasses the hook IH2 uses.

    I can't figure out why this isn't working normally and why I have to make this mod here to get IH2 to do it's thing. As far as I can tell, PROPORTIONAL_IMAGES_STATUS isn't used anywhere in the source tree but for this one line.


    Line #167 : // changed the 0 to a 1 for PROPORTIONAL_IMAGES_STATUS TO MAKE IH2 work...

    This is the only ZC install Ive had to do this with...

    Line #168 : if (strstr($src, 'includes/templates') or strstr($src, 'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '1') {

  2. #2
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    877
    Plugin Contributions
    1

    Default Re: PROPORTIONAL_IMAGES_STATUS in html_output

    Quote Originally Posted by kiddo View Post
    I'm completely baffled by this.

    After spending hours walking through the code trying to get IH2 to work, I came upon this little snip of code and changed the 0 to a 1 and IH2 works fine.

    The $src param passed to the zen_image function fails this logic and defaults to calling zen_image_OLD and bypasses the hook IH2 uses.

    I can't figure out why this isn't working normally and why I have to make this mod here to get IH2 to do it's thing. As far as I can tell, PROPORTIONAL_IMAGES_STATUS isn't used anywhere in the source tree but for this one line.


    Line #167 : // changed the 0 to a 1 for PROPORTIONAL_IMAGES_STATUS TO MAKE IH2 work...

    This is the only ZC install Ive had to do this with...

    Line #168 : if (strstr($src, 'includes/templates') or strstr($src, 'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '1') {
    Nevermind...

 

 

Bookmarks

Posting Permissions

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