Re: Image Handler 2 Support
Quote:
Originally Posted by
doodlebee
I'm having a new issue -
I have no idea what happened. Everything was working just fine until yesterday. I've racked my brains trying to figure out why this started happening all of a sudden, and cannot figure out what's gone wrong.
Anyway, before, when you hovered over the smaller images, there would be a nice little "popup" of a larger image. For some reason, it's now not working. Instead, I get three javascript errors:
"showtrail is not defined"
"hidetrail is not defined"
"Error in parsing value for property 'cursor'. Declaration dropped."
These are all Firefox messages, by the way. When I view in IE, it gives me a little bit more information:
"Line 136, Char 1, error: object expected"
Now, I haven't touched the script. The only thing I did yesterday was work on the stylesheet, and I don't know how that would mess with the script. If any more information is needed, I'll be happy to post it - but would anyone know why this would be happening?
Although you did not touch the script itself, and that is not where the problem is anyway, you do state that changes were made to the CSS file. As the script uses the CSS file and the errors seem to be CSS related, you should check and see what descriptors your CSS file has for:
showtrail - hidetrail - cursor
Re: Image Handler 2 Support
Quote:
As the script uses the CSS file and the errors seem to be CSS related, you should check and see what descriptors your CSS file has for:
showtrail - hidetrail - cursor
Well, I haven't touched the CSS file (on the items related to the Image Handler) since I first installed it and made my initial changes. My CSS work was involving the rest of the site. As I said, everything was working just fine until the other day.
Wait - your comment made me go check something - I decided to check my CSS stuff against the default template, and I found something interesting - the javascript file had been deleted from my server! I've just re-uploaded it and it's fine now.
Now I have to go have a talk with the client and tell them to stop messing with stuff on the server! Funny - they're the ones who complained it was "suddenly not working" - I didn't think that they'd actually deleted the *file* - and smack me for believing them when they said "No, we didn't do anything...". Sheesh. No wonder it wasn't working.
Thanks for making me check, Rob!
Re: Image Handler 2 Support
You're welcome for the help and you bring up another good point. When you made you post I got the impression it was not a 3rd party site, but your site.
When a site belongs to Client and they state they did not do anything, always best to double check first -- as we can see in this example. :wink2:
As a Hoster, we can get similar Support issues regarding logins. Then we find the Client changed their login but forgot to mention that or somebody else they gave permission to do so, made the change and forgot to tell the Client.
Gotta love this Web stuff. :lamo:
Fatal error: Call to undefined function: bmz_needs_update()
Hi everyone. I can't wait to get this mod working. Could you lend a helping hand?
Code:
Fatal error: Call to undefined function: bmz_needs_update() in /home/worldne/public_html/admin/image_handler.php on line 482
I'm geting this error when I click on Admin in the menu for IH2. I think I need to get in there in order to install the mod, right?:smile:
Thanks in advance.
Merging popup_image_additional/tpl_main_page.php
I'm having trouble undersanding how to merge this file into my custom template.
Could someone tell me how to merge this:
Code:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<?php
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<?php
/**
* prepares and displays header output
*
*/
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
<div id="mainWrapper">
with this:
Code:
<body id="popupAdditionalImage" class="centeredContent" onLoad="resize();">
<div>
<?php
// $products_values->fields['products_image']
echo '<a href="javascript:window.close()">' . zen_image($_GET['products_image_large_additional'], $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
?>
</div>
</body>
It seems everyone else has got this figured out. I must be getting old.:P
Re: Fatal error: Call to undefined function: bmz_needs_update()
Quote:
Originally Posted by
Kansai_mike
Hi everyone. I can't wait to get this mod working. Could you lend a helping hand?
Code:
Fatal error: Call to undefined function: bmz_needs_update() in /home/worldne/public_html/admin/image_handler.php on line 482
I'm geting this error when I click on Admin in the menu for IH2. I think I need to get in there in order to install the mod, right?:smile:
Thanks in advance.
You shouldn't need to. I recommend you start again by re-uploading the IH2 files and double check that you've followed the installation instructions to the letter.
Quote:
I'm having trouble undersanding how to merge this file into my custom template.
It's a while since I was last "inside" the IH2 mod, but as far as I recall, you don't need to "merge" code in the way your suggesting; however, some files do need to be placed in your overrides system.
Re: Image Handler 2 Support
OK. It works. So far.
Here's what I did.
I reverted everything back to the beginning and then reuploaded all of the files again.
Then I simply added the CSS file to my CSS folder in my custom template directory, I had merged them before. I did the same for the additional popups image directory where I just uploded the directory instead of adding the code to my main template.
Thanks for your help Ryk. Just needed the push. :D
Re: Image Handler 2 Support
Well I've gone through most of the pages about IH and I'm still a bit confused. I'm just about finished my upgrade from 1.2. I've tested with just a few images and IH seems fine. Since I was using the previous version of IH I have all those medium, large, original folders and files. I'd like to clean this up with only what's necessary for the new version. So does anyone know if the following will work.
After installing IH 2 upload all of the files in the original folder and still keeping it in the original folder. Go to IH2 admin and run "Scan for old IH 0.x and 1.x original images". I should then be done and all small, medium and large images should run from bmz cache. This way I'm not uploading all the old medium and large images. Anybody know if I got it right?
Re: Image Handler 2 Support
Quote:
Originally Posted by
13moons
Well I've gone through most of the pages about IH and I'm still a bit confused. I'm just about finished my upgrade from 1.2. I've tested with just a few images and IH seems fine. Since I was using the previous version of IH I have all those medium, large, original folders and files. I'd like to clean this up with only what's necessary for the new version. So does anyone know if the following will work.
After installing IH 2 upload all of the files in the original folder and still keeping it in the original folder. Go to IH2 admin and run "Scan for old IH 0.x and 1.x original images". I should then be done and all small, medium and large images should run from bmz cache. This way I'm not uploading all the old medium and large images. Anybody know if I got it right?
Thats whats meant to happen..
However backup your images first as each time I have tried this with 1.3.6 it deleted all the files in the original directory and none ended up in the images directory. I ended up having to restore the files and then manually copying the files from the images/original to images.
Also before it will cache the images you will have to delete them from the medium and large directories. If you leave them there these images will be used instead.
Re: Image Handler 2 Support
I installed this contribution, now I am getting blank pages on the store and the admin :(