kAnAnA Posted August 15, 2006 Share Posted August 15, 2006 Thanks a lot Invasi0n for the advice ! I have change it in my site. well about imagemagic i don?t have access to php.ini and i send an e-mail to my hosting company to solve the problem. Another question if u know .... in my product_info.php the imagemagic does not appears correct .... i thing is about the javascript popup modifications . In this line in file product_info.php i have change <div id="showimage"></div> <script language="javascript"><!-- document.write('<?php echo '<a href="'. DIR_WS_IMAGES . $product_info['products_image'].'" onClick="return enlarge(\\\''. DIR_WS_IMAGES . $product_info['products_image'].'\\\',event,\\\'center\\\','.$size[0].','.$size[1].')" ><img src="'. DIR_WS_IMAGES . $product_info['products_image'].'" border="0" width="78" height="78"></a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> I want this code to popup the image but with imagemagic ON the image does not appear and i have to change border="0" width="SMALL_IMAGE_WIDTH" height="SMALL_IMAGE_HEIGHT"> to border="0" width="78" height="78" . But in this case the resize is not make !!! Do u have any solutions for that ? Quote Link to comment Share on other sites More sharing options...
Tsuri Japan Posted August 15, 2006 Share Posted August 15, 2006 I haven't seen a site yet that has water mark on........anyone? How do you get watermark to work. I've said yes to everyone and don't see anything!!! Â What's up? Â Nigelman :thumbsup: Quote Link to comment Share on other sites More sharing options...
invasi0n Posted August 15, 2006 Share Posted August 15, 2006 (edited) also in my admin my LOGO is not showing....... I was told my one member here to take out the size of the logo but that hasn't worked for me....only the invoice and packing slip have worked for that. When I right click the LOGO on the top left in the admin I get this tag.... http://tsurishopjapan.com/admin/imagemagic...;h=72&page=  I don't get it?  Nigelman :thumbsup: Hi, I think this contribution is made for catalog part, not for admin. When I installed this contribution, I modified catalog part only. And about watermark, i tried only "Text Watermark" function, which I like more then "Graphic Watermark". Edited August 15, 2006 by invasi0n Quote Link to comment Share on other sites More sharing options...
Guest Posted August 15, 2006 Share Posted August 15, 2006 My graphic watermark works (if I decide to turn it on) but the text one has never worked for me either. Quote Link to comment Share on other sites More sharing options...
lyndsiesal Posted August 15, 2006 Share Posted August 15, 2006 I installed this pretty easily, and it is working on the thumbnails, but not on the larger pop-ups. I've set it to display on pop ups, but it won't work Any help is appreciated! Quote Link to comment Share on other sites More sharing options...
SaintSid Posted August 16, 2006 Share Posted August 16, 2006 Tom, I have installed, but not producing images. Image info does point imagemagic.php. I am running Windows server.  Tim  :'(  Hey Tim,  Having the same problem with my install. Installed the SQL bit fine into the DB but after modifying the two files as explained in the instructions I cannot for the life of me understand why the website just stops working and does not even display the OScommerce site front page.  If someone could shed some light on this please?  Thanks  S Quote Link to comment Share on other sites More sharing options...
Paradisebg Posted August 16, 2006 Share Posted August 16, 2006 (edited) Hello, I was install Image Magic it work veri good I like it but have problem drop down list is empty in Text Watermark Font Name and Watermark Image File. Have fonts and images in catalog/includes/imagemagic/watermarks/ and /catalog/includes/imagemagic/fonts/ Â I have one question may I add more pics in product info I want to have 5 or more pics Edited August 16, 2006 by Paradisebg Quote Link to comment Share on other sites More sharing options...
NS-Addict Posted August 16, 2006 Share Posted August 16, 2006 Hi just installed the imagemagic1_5 contribution, had some difficulties since there was an extra } in the html_output file anyways got it working finally  2 Questions,  First of all when I upload a new image it for some reason in thumbnail form it doesn?t seem to keep its dimensions  Second, the images load quite slowly when the website is loaded for the first time, is there any way to speed this up?  If someone could get back to me ASAP, its quite urgent,  Thanks  Tariq Quote Link to comment Share on other sites More sharing options...
scottybalotty Posted August 17, 2006 Share Posted August 17, 2006 well my product images just show up with that red cross but clicking on the product image location its got the imagemagic script in it and the proprtions seem to be working. Â Is this a database error? Â when i tried to run the sql query it just came up with page cannot be displayed. Im not entirely sure what to do in step 3 with the database. Quote Link to comment Share on other sites More sharing options...
itzzmesur Posted August 18, 2006 Share Posted August 18, 2006 Hi I installed this contribution and it worked perfectly in the real web server, althought it was not working in my local testing server. Now, one new problem is , on adding the product from the admin section, it does not show the image preview after adding the image and confirming stage. .....is this the problem of imagemagic??... Â Please any one find out the problem........ Quote Link to comment Share on other sites More sharing options...
pisoiul Posted August 18, 2006 Share Posted August 18, 2006 Hi,... I install this contribution....the php is file from contribution..but i i see no image, with the big x in left corner.. Â First you say to put all prb here and updates...now for each prb i have to read all 44 pages? Â i make the instalation..like you say on readme. thumbnails where need to be created? exact location......?! Quote Link to comment Share on other sites More sharing options...
Guest Posted August 21, 2006 Share Posted August 21, 2006 Hi! I installed Image Magic on my os. Its was very easy but when i want to set it up, this is what I get when I clic on "Watermark Image File" in the admin tool : Fatal error: Call to undefined function: tep_cfg_pull_down_installed_watermarks() in /home/httpd/vhosts/objectif-web.ch/subdomains/galerie/httpdocs/admin/configuration.php(125) : eval()'d code on line 1 Â Â Does some body knows why? Â Regards, Â YS Quote Link to comment Share on other sites More sharing options...
bashibosh Posted August 21, 2006 Share Posted August 21, 2006 (edited) Hi, I've installed IM and the admin side works, but whne I switch IM on, all the site images display as missing images (big X). Checking a link on it's own (https://giftperfect.co.uk//imagemagic.php?img=images/GVE0059.jpeg&w=120&h=90&page=) I get a PHP error "Call-time pass-by-reference has been deprecated - argument passed by value..." apparently caused by "&" being used in some function calls in imagemagic.php I've read that the fix is to remove the "&"s or to change a value in php.ini (allow_call_time_pass_reference to true). removing the &s resulted in an error "no access to db" and I have a shared host and no access to php.ini  Any ideas on a fix? Edited August 21, 2006 by bashibosh Quote Link to comment Share on other sites More sharing options...
bashibosh Posted August 23, 2006 Share Posted August 23, 2006 Fixed it! An update for anyone who may come across the same problem, I removed the '&' from the offending functions in imagemagic.php (lines 274 - 279). Then I got an error: "Error,Database Connection", this was cause by the facxt that in my database, all tables start with "oscommerce_" and the sql call in imagemagic.php does not.  To fix, I changed the following: Line 28 was: $sql="select configuration_key as cfgKey, configuration_value as cfgValue from configuration where configuration_group_id='333' or configuration_group_id='4'";  now reads: $sql="select configuration_key as cfgKey, configuration_value as cfgValue from oscommerce_configuration where configuration_group_id='333' or configuration_group_id='4'";  Line 40 was: $sql="update configuration set configuration_value ='".$append_hash."' where configuration_key='LAST_HASH'";  now reads: $sql="update oscommerce_configuration set configuration_value ='".$append_hash."' where configuration_key='LAST_HASH'";  It took me a while to find, hope it is useful to someone else  Ciao :thumbsup: Quote Link to comment Share on other sites More sharing options...
Guest Posted August 24, 2006 Share Posted August 24, 2006 I am having the following error after installing. I've tried re-installing a few times but the same error kepts appearing. I searched through this thread but didn't see the solution. If I missed it, my apologies. Â Parse error: syntax error, unexpected '}' in /home/cherish/public_html/includes/functions/html_output.php on line 228 Quote Link to comment Share on other sites More sharing options...
Guest Posted August 24, 2006 Share Posted August 24, 2006 Alright, so I think I've fixed the } error but I can't get any images to display. It's far to late and I need to get some sleep so I'll post again tomorrow to try to get this working. Quote Link to comment Share on other sites More sharing options...
pisoiul Posted August 24, 2006 Share Posted August 24, 2006 bashibosh thx for the fix...many many thx:)  Now It`s working , but it`s working to much, even to buttons from the page....  So, i look on php and see if there is: tep_image_button('button_reviews.gif', IMAGE_....... i see the button with watermark and all i have active  but if is like this: ']) . tep_image_submit('button_in_cart.gif', IMAGE_BUT....with submit, the button it`s okey, i see just the image from button , not with watremarks and ...  Now , if i change all from tep_image_button to tep_image_submit you think is any problem?  Or is anothe solution?  P.S. Srry about the english.... Quote Link to comment Share on other sites More sharing options...
Guest Posted August 24, 2006 Share Posted August 24, 2006 Yes, I got image magic working awhile back. It was on a Red Hat9 php 4.2, apache2 machine with GD 1.6. Took me awhile. Then I had to move site to a Red Hat Commercial system, apache2, php 4.3 GD 2.0. Was working good there. Now I've had to move it to a Fedora 4, php 5, apache2 GD 2.0. Got it all working on that system. Then for security reasons I had to disable Register Globals to off modify oscommerce accordingly and now images quit working. Since soon everyone will have this problem as Register globals are deminished now. Does someone know exactly how to fix this? Or must I look for this needle? Glancing at the code it looks like it's written for globals off already. I can only assume this is the problem as it worked perfectly until that change was made. Could it be some change I've made in oscommerce for globals off compatibilty? Thanks for any help. Â :thumbsup: Quote Link to comment Share on other sites More sharing options...
Guest Posted August 24, 2006 Share Posted August 24, 2006 Yes, I got image magic working awhile back. It was on a Red Hat9 php 4.2, apache2 machine with GD 1.6.Took me awhile. Then I had to move site to a Red Hat Commercial system, apache2, php 4.3 GD 2.0. Was working good there. Now I've had to move it to a Fedora 4, php 5, apache2 GD 2.0. Got it all working on that system. Then for security reasons I had to disable Register Globals to off modify oscommerce accordingly and now images quit working. Since soon everyone will have this problem as Register globals are deminished now. Does someone know exactly how to fix this? Or must I look for this needle? Glancing at the code it looks like it's written for globals off already. I can only assume this is the problem as it worked perfectly until that change was made. Could it be some change I've made in oscommerce for globals off compatibilty? Thanks for any help. Â :thumbsup: Â Well I poked around and found the undefined variable, "$page". Just changed it to $_GET['page'] in 3 places. Hope this helps you Tom and anyone else. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2006 Share Posted August 26, 2006 Quick Bump for any new installs: Â If you're not seeing images in your new installation, complete the ImageMagic installation by: creating /thumbnails/images and chmoding both directories 777. Â This isn't mentioned in the docs and it doesn't appear to create the directories for you (at least not on my server) Quote Link to comment Share on other sites More sharing options...
mike1985 Posted August 27, 2006 Share Posted August 27, 2006 well since my shop is set up with out the catalog directory can anyone tell me how should i go about chainging it so i can use the watermark image files in the imagemagic option, since all i am getting now is a blank white small box, with out the images that are there. Â my guess is that since it explains where the directory is for the images =(/catalog/includes/imagemagic/watermarks/) it would not work for a site that is setup like mine which is =(/includes/imagemagic/watermarks/)... Â hope i explained what im struggling with here clearly, as i do not do it well in most cases :blush: Quote Link to comment Share on other sites More sharing options...
bashibosh Posted August 27, 2006 Share Posted August 27, 2006 bashibosh thx for the fix...many many thx:) Now It`s working , but it`s working to much, even to buttons from the page....  So, i look on php and see if there is: tep_image_button('button_reviews.gif', IMAGE_....... i see the button with watermark and all i have active  but if is like this: ']) . tep_image_submit('button_in_cart.gif', IMAGE_BUT....with submit, the button it`s okey, i see just the image from button , not with watremarks and ...  Now , if i change all from tep_image_button to tep_image_submit you think is any problem?  Or is anothe solution?  P.S. Srry about the english.... Andrei, I've checked my config and all works as expected, so I guess your problem must be something else??  bb Quote Link to comment Share on other sites More sharing options...
mike1985 Posted August 30, 2006 Share Posted August 30, 2006 well since my shop is set up with out the catalog directory can anyone tell me how should i go about chainging it so i can use the watermark image files in the imagemagic option, since all i am getting now is a blank white small box, with out the images that are there. my guess is that since it explains where the directory is for the images =(/catalog/includes/imagemagic/watermarks/) it would not work for a site that is setup like mine which is =(/includes/imagemagic/watermarks/)...  hope i explained what im struggling with here clearly, as i do not do it well in most cases :blush: anyone Quote Link to comment Share on other sites More sharing options...
Benjjj6 Posted August 31, 2006 Share Posted August 31, 2006 Hi, Â I'm too having problems with the 'parse error' and cant see a solution in this thread. I followed the instructions once and got the error, so I installed it again after I had reinstalled my backups and I got the exact same error again. Â help please! Â Heres the error, I just get a blank page with this at the top Parse error: syntax error, unexpected T_FUNCTION, expecting T_STRING in /home/discoun/public_html/includes/functions/html_output.php on line 75 Quote Link to comment Share on other sites More sharing options...
Benjjj6 Posted September 1, 2006 Share Posted September 1, 2006 bumb, someone must know? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.