Forums / General Questions / PROPORTIONAL_IMAGES_STATUS in html_output

PROPORTIONAL_IMAGES_STATUS in html_output

Locked

Started by kiddo on 22 Jun 2007, 7:40 AM · Views: 1,043

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
22 Jun 2007, 7:40 AM
#1
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

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') {

22 Jun 2007, 8:01 AM
#2
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: PROPORTIONAL_IMAGES_STATUS in html_output

kiddo:

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...