Jump to content
Sign in to follow this  
tomjmul

Support thread for the Image Magic contribution

Recommended Posts

Thanx, dj07! That was the fix to make everything work for me as well! Never got the gd library installed on my laptop, but my server has it, so all is good! :thumbsup: B)

Share this post


Link to post
Share on other sites

Can someone give me some help. I have installed it and have no errors but it doesn't seem to be working. All of my images have there original filenames. I followed the instructions as close as possible. :-)

 

PHP Version 4.3.9

Apache/2.0.52

GD Version bundled (2.0.28 compatible)

Mysql 4.1.20

Edited by natewlew

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Share this post


Link to post
Share on other sites

Hello, I just installed Image Magic 1.5 on my site and have followed the VERY EASY install directions to the T. I have not done anything with the configuration of the Image Magic in the Admin area yet. I tried my site and came up with the following error:

 

Fatal error: Call to undefined function tep_draw_separator() in /home/everyth5/public_html/includes/classes/boxes.php on line 117

 

Do I HAVE to change the settings in the Admin or is it operational the way it is? I just wanted to see what changes I would have to make first before I started monkeying with the default settings.

 

If not, then what is wrong with the code, is there a DEFINE missing somewhere? I haven't the foggiest idea where to look first.

 

This is my site.

 

This is the code from boxes.php:

 

 

QUOTE

<?php

/*

$Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

 

class tableBox {

var $table_border = '0';

var $table_width = '100%';

var $table_cellspacing = '0';

var $table_cellpadding = '2';

var $table_parameters = '';

var $table_row_parameters = '';

var $table_data_parameters = '';

 

// class constructor

function tableBox($contents, $direct_output = false) {

$tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"';

if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters;

$tableBox_string .= '>' . "\n";

 

for ($i=0, $n=sizeof($contents); $i<$n; $i++) {

if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n";

$tableBox_string .= ' <tr';

if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters;

if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params'];

$tableBox_string .= '>' . "\n";

 

if (isset($contents[$i][0]) && is_array($contents[$i][0])) {

for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) {

if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {

$tableBox_string .= ' <td';

if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i][$x]['align']) . '"';

if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {

$tableBox_string .= ' ' . $contents[$i][$x]['params'];

} elseif (tep_not_null($this->table_data_parameters)) {

$tableBox_string .= ' ' . $this->table_data_parameters;

}

$tableBox_string .= '>';

if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];

$tableBox_string .= $contents[$i][$x]['text'];

if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';

$tableBox_string .= '</td>' . "\n";

}

}

} else {

$tableBox_string .= ' <td';

if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"';

if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {

$tableBox_string .= ' ' . $contents[$i]['params'];

} elseif (tep_not_null($this->table_data_parameters)) {

$tableBox_string .= ' ' . $this->table_data_parameters;

}

$tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n";

}

 

$tableBox_string .= ' </tr>' . "\n";

if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n";

}

 

$tableBox_string .= '</table>' . "\n";

 

if ($direct_output == true) echo $tableBox_string;

 

return $tableBox_string;

}

}

 

class infoBox extends tableBox {

function infoBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->infoBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="infoBox"';

$this->tableBox($info_box_contents, true);

}

 

function infoBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="infoBoxContents"';

$info_box_contents = array();

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

for ($i=0, $n=sizeof($contents); $i<$n; $i++) {

$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),

'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),

'params' => 'class="boxText"',

'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class infoBoxHeading extends tableBox {

function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="infoBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

class contentBox extends tableBox {

function contentBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->contentBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="infoBox"';

$this->tableBox($info_box_contents, true);

}

 

function contentBoxContents($contents) {

$this->table_cellpadding = '4';

$this->table_parameters = 'class="infoBoxContents"';

return $this->tableBox($contents);

}

}

 

class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif')),

array('params' => 'height="14" class="infoBoxHeading" width="100%"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif')));

 

$this->tableBox($info_box_contents, true);

}

}

 

class errorBox extends tableBox {

function errorBox($contents) {

$this->table_data_parameters = 'class="errorBox"';

$this->tableBox($contents, true);

}

}

 

class productListingBox extends tableBox {

function productListingBox($contents) {

$this->table_parameters = 'class="productListing"';

$this->tableBox($contents, true);

}

}

?>

 

 

The red code is line 117

thanks in advance for your help.

Share this post


Link to post
Share on other sites

Never mind all. I got the site working with the help of DJ

 

Thank you DJ ;)

 

Hello, I just installed Image Magic 1.5 on my site and have followed the VERY EASY install directions to the T. I have not done anything with the configuration of the Image Magic in the Admin area yet. I tried my site and came up with the following error:

 

Fatal error: Call to undefined function tep_draw_separator() in /home/everyth5/public_html/includes/classes/boxes.php on line 117

 

Do I HAVE to change the settings in the Admin or is it operational the way it is? I just wanted to see what changes I would have to make first before I started monkeying with the default settings.

 

If not, then what is wrong with the code, is there a DEFINE missing somewhere? I haven't the foggiest idea where to look first.

 

This is my site.

 

This is the code from boxes.php:

QUOTE

<?php

/*

$Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

 

class tableBox {

var $table_border = '0';

var $table_width = '100%';

var $table_cellspacing = '0';

var $table_cellpadding = '2';

var $table_parameters = '';

var $table_row_parameters = '';

var $table_data_parameters = '';

 

// class constructor

function tableBox($contents, $direct_output = false) {

$tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"';

if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters;

$tableBox_string .= '>' . "\n";

 

for ($i=0, $n=sizeof($contents); $i<$n; $i++) {

if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n";

$tableBox_string .= ' <tr';

if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters;

if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params'];

$tableBox_string .= '>' . "\n";

 

if (isset($contents[$i][0]) && is_array($contents[$i][0])) {

for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) {

if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {

$tableBox_string .= ' <td';

if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i][$x]['align']) . '"';

if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {

$tableBox_string .= ' ' . $contents[$i][$x]['params'];

} elseif (tep_not_null($this->table_data_parameters)) {

$tableBox_string .= ' ' . $this->table_data_parameters;

}

$tableBox_string .= '>';

if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];

$tableBox_string .= $contents[$i][$x]['text'];

if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';

$tableBox_string .= '</td>' . "\n";

}

}

} else {

$tableBox_string .= ' <td';

if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"';

if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {

$tableBox_string .= ' ' . $contents[$i]['params'];

} elseif (tep_not_null($this->table_data_parameters)) {

$tableBox_string .= ' ' . $this->table_data_parameters;

}

$tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n";

}

 

$tableBox_string .= ' </tr>' . "\n";

if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n";

}

 

$tableBox_string .= '</table>' . "\n";

 

if ($direct_output == true) echo $tableBox_string;

 

return $tableBox_string;

}

}

 

class infoBox extends tableBox {

function infoBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->infoBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="infoBox"';

$this->tableBox($info_box_contents, true);

}

 

function infoBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="infoBoxContents"';

$info_box_contents = array();

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

for ($i=0, $n=sizeof($contents); $i<$n; $i++) {

$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),

'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),

'params' => 'class="boxText"',

'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class infoBoxHeading extends tableBox {

function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="infoBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

class contentBox extends tableBox {

function contentBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->contentBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="infoBox"';

$this->tableBox($info_box_contents, true);

}

 

function contentBoxContents($contents) {

$this->table_cellpadding = '4';

$this->table_parameters = 'class="infoBoxContents"';

return $this->tableBox($contents);

}

}

 

class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif')),

array('params' => 'height="14" class="infoBoxHeading" width="100%"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/new_orange_corner.gif')));

 

$this->tableBox($info_box_contents, true);

}

}

 

class errorBox extends tableBox {

function errorBox($contents) {

$this->table_data_parameters = 'class="errorBox"';

$this->tableBox($contents, true);

}

}

 

class productListingBox extends tableBox {

function productListingBox($contents) {

$this->table_parameters = 'class="productListing"';

$this->tableBox($contents, true);

}

}

?>

The red code is line 117

thanks in advance for your help.

Share this post


Link to post
Share on other sites

Well thanks to DJ07 I was able to get my site back up, and the pictures came up a little faster on the pages ( but not much faster). But when I tried to view one of the Click to enlarge options, it takes FOREVER to load the picture.

 

Any suggestions? This is My Website.

 

Thanks

Share this post


Link to post
Share on other sites

Sorry if I miffed you a little Tom. I HAVE been reading these THIRTY SIX pages of this thread, I did read the readme file, and I do believe that I downloaded the most recent version, I did searches for my problem ( click to enlarge taking too long ) and have found nothing. Is there something you can suggest?

 

 

 

 

This is the support thread for the 'Image Magic' contribution.

If you are having difficulties installing or using this contribution, your first port of call should be the readme file contained within the package or available online in its most recent form:

here

 

Next, you should make sure you have the most up-to-date version of the contribution.

 

And lastly, read this thread to see if someone else has solved the issue.

 

If you are still having problems, then feel free to post here.

Share this post


Link to post
Share on other sites

Hi,

how does this contrib work with a remote image directory?

 

I spent days on finding a solution for this problem:

 

The images of my shop are on a different server and i am not allowed to store them on my server. But i am allowed to link to the images.

 

I use EP and Image Magik.

 

Example Shop:

http://www.myshop.com

 

Example image URL (in EP)

http://www.myimages.com/image001.jpg

 

So the resulting image URL looks like:

http://www.myshop.com/imagemagic.php?img=h...;h=60&page=

 

Result:

Warning: filemtime(): Stat failed for http://www.myimages.com/image001.jpg (errno=2 - No such file or directory)

 

 

But i need an URL like this:

http://www.myshop.com/imagemagic.php?img=h...om/image001.jpg

This works, but the width and heigth is not changed.

 

Any help appreciated

erdm?nnchen

Share this post


Link to post
Share on other sites

I seem to run into trouble after:

Step #6 - In :

/catalog/includes/functions/html_output.php

 

replace the entire tep_image() function with

 

After I replace the code with the temp image functions my site quits working.

 

Could someone please post exactly what needs to be replaced in the:

/catalog/includes/functions/html_output.php

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Share this post


Link to post
Share on other sites

Thanks for the praise gentlemen and glad I could help.

 

Unfortunately as I have said before, although I wrote image magic with the primary goal of making it easy to install, there are certain tachnical requirements which vary widely across servers and, due to the low-level nature of this contribution are factors in making it work as designed.

 

The two that immediately spring to mind are:

 

File permissions - Image magic, unlike most contributions uses the server file system in order to maintain a cache of images it has built. This brings to bear all the implications of PHP safe mode settings and directory permissions.

 

GD Library - this is where things can get really sticky. Some users will find no GD installed at all, or that the GD version is below what is required. Also certain associated features of GD such as freetype support which allows for the text watermaking may be disabled or gif support is not built in etc.

 

In short, all of this is why I do the installations and fixes. Altough $60.00 does buy a few beers at the weekend, the main reason is to help users who wouldn't otherwise benefit from image magic due to a lack of technical skills.

 

As you can see, the more committed my time is, the less I can come here to help. And even when I do, I find that I have to get into a back and forth dialogue, which I REALLY don't have time for. The easiest solution is for me to provide the service and just get on with fixing whatever is wrong for what many would consider a negligable fee for a programmer.

 

Tom

 

P.S Tell you what is really annoying: Massive reams of posted code, when a small snippet might suffice. And then to compound it, when people reply to that message including all of the original code. I think it really detracts from the readability of this thread and makes it very difficult to follow a sub-thread within it.

Edited by tomjmul

OSC Image Magic

On-the-fly thumbnails, watermarks and image processing

Share this post


Link to post
Share on other sites
I second what Scotty says. Tom did the guaranteed install for me and it was 100%. He also did a load of other PHP modifications I needed and was absoutely spot on.

 

It's too hot in the UK right now to be tearing your hair out over broken code. Just pay Tom the money and go and have a nice cool pint somewhere in the shade.

 

B)

 

Andrew

 

Before I forget, thanks to Andrew and his client who paid for the development, Image Magic will have nice new feature, which I for one really like.

 

Before, where you had to set only a width or height, whilst leaving i/m to work the other and so keep proportionality, now you can set both. This will mean that you can always have your images at a uniform size, which should look alot less scraggy where lots of product/category images were displayed together on a single page.

 

Image magic will still keep the correct image proportions by using a little bit of geometry and surrounding the image either to the sides or top and bottom (depending upon it's width to height ratio) with a colour of your choosing.

 

I will be releasing the new version over the weekend when I get a chance to integrate it fully and update the readme.

 

Tom


OSC Image Magic

On-the-fly thumbnails, watermarks and image processing

Share this post


Link to post
Share on other sites

I have installed I/M and it seems to be working for the product information pictures on the various pages. But when I click to enlarge I still get the bigger than screen sized picture. I have even used IrfanView 3.98 to make my images smaller and edited all my photos in the Admin thinking that if the image size was originally smaller, so would the popup. But I am still getting HUGE click to enlarge images.

 

I have also searched these support pages for any references I could find, but to no avail. Do I have to install the Resize Photos Contribution in conjunction with I/M?

 

Hope someone can help me. I have been working on this problem for close to 12 hours.:S

 

This is My Webpage.

Share this post


Link to post
Share on other sites
Thanks for the praise gentlemen and glad I could help.

 

Unfortunately as I have said before, although I wrote image magic with the primary goal of making it easy to install, there are certain tachnical requirements which vary widely across servers and, due to the low-level nature of this contribution are factors in making it work as designed.

 

The two that immediately spring to mind are:

 

File permissions - Image magic, unlike most contributions uses the server file system in order to maintain a cache of images it has built. This brings to bear all the implications of PHP safe mode settings and directory permissions.

 

GD Library - this is where things can get really sticky. Some users will find no GD installed at all, or that the GD version is below what is required. Also certain associated features of GD such as freetype support which allows for the text watermaking may be disabled or gif support is not built in etc.

 

In short, all of this is why I do the installations and fixes. Altough $60.00 does buy a few beers at the weekend, the main reason is to help users who wouldn't otherwise benefit from image magic due to a lack of technical skills.

 

As you can see, the more committed my time is, the less I can come here to help. And even when I do, I find that I have to get into a back and forth dialogue, which I REALLY don't have time for. The easiest solution is for me to provide the service and just get on with fixing whatever is wrong for what many would consider a negligable fee for a programmer.

 

Tom

 

P.S Tell you what is really annoying: Massive reams of posted code, when a small snippet might suffice. And then to compound it, when people reply to that message including all of the original code. I think it really detracts from the readability of this thread and makes it very difficult to follow a sub-thread within it.

 

 

Tom i myself trully appreciate the contribution , but the reason i posted the whole code was because i spent a full day trying to get the contribution to work when it really would be 15 minutes with a good README.

After all this is supposed to be free...Isn`t it?........So why not to put a clear walk thru so people can better understand how to do things.....Or is it meant to be difficult to undersatnd ????maybe for a little $60.00

 

No offence but if you wanna profit from your product isn`t it enough to ask for donations.??

 

Again i am very thankful for your work and looking to help others was the reason i posted where to put what.

Share this post


Link to post
Share on other sites
Well thanks to DJ07 I was able to get my site back up, and the pictures came up a little faster on the pages ( but not much faster). But when I tried to view one of the Click to enlarge options, it takes FOREVER to load the picture.

 

Any suggestions? This is My Website.

 

Thanks

 

 

I did check your site and pictures loaded fine.I belive the first time you see the image it takes longer because it still not catched but after it just cached and load faster.I belive that`s what i noticed in my site.

Share this post


Link to post
Share on other sites

Thanks again DJ. I just noticed that after I installed the ImageMagic module, I thought that it should resize my "Click to Enlarge" pictures to fit on the screen. I am still ending up with oversized pictures, even after I resized prior to uploading through the Admin. Do you know a way to make the popup's smaller????

 

Thanks again, and yes, I agree with you with the prior post. This IS suppose to be a free site. I do appreciate that it took alot of work to make the module and I am thankful for the hard work.

Share this post


Link to post
Share on other sites
Thanks again DJ. I just noticed that after I installed the ImageMagic module, I thought that it should resize my "Click to Enlarge" pictures to fit on the screen. I am still ending up with oversized pictures, even after I resized prior to uploading through the Admin. Do you know a way to make the popup's smaller????

 

Thanks again, and yes, I agree with you with the prior post. This IS suppose to be a free site. I do appreciate that it took alot of work to make the module and I am thankful for the hard work.

 

Yes I am having the same problem. I have been thru all 36 pages here, and all over the general support site. I have uninstalled and reinstalled, resized the pics, everything I can thinnk of.. Can I simply just add scroll bars to the pop up image? If so, does anyone know how I can do that? Thanks for the great contrib. I love this. I realize your busy, but if anyone can help, Please let me know..

Thank you.


It's not a beer gut, it's padding for my rock hard abs!

Share this post


Link to post
Share on other sites

Hi John. Yes you can add scrollbars simply by going to catalog/product_info.php about line 29 and you will see something like this:

 

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=50,height=50,screenX=100,screenY=100,top=0,l

eft=0')

 

Change the red print to scrollbars=yes.

 

However I would like to ask if anyone can help me with my popup problem. I have resized most of my pictures to 640X480 and when I use "Click to Enlarge" I am still getting larger than screen popups. Even after ImageMagic is installed.

 

Thanks in advance.

Share this post


Link to post
Share on other sites
Hi John. Yes you can add scrollbars simply by going to catalog/product_info.php about line 29 and you will see something like this:

Change the red print to scrollbars=yes.

 

However I would like to ask if anyone can help me with my popup problem. I have resized most of my pictures to 640X480 and when I use "Click to Enlarge" I am still getting larger than screen popups. Even after ImageMagic is installed.

 

Thanks in advance.

 

Thank you very much. I feel like a dumbass now.. but that is what everyone is here for. I have been going over code after code, and couldn't find the word scrollbar anywhere. I had my head so far into it i must have missed this. THANK YOU SO MUCH. (course now I have no hair left! I should have posted days ago!)

Thank you again.

 

I have a problem with the admin part of imagemagic, when I try to use the dropdown menus for fonts or watermarks, it faults. Not a big problem at this point because most of the pics are licsened from a company, but might need it later. everything else works, (Thanks to everyth5, and the rest of the people here). But if in your wanderings you happend to see someone else with a fix for this. let me know..

I am still going thru the posts for this pictular problem.

Thanks again----again


It's not a beer gut, it's padding for my rock hard abs!

Share this post


Link to post
Share on other sites

For anyone who is confused about what the entire tep_image() function is (me).

 

 

The code below is the "entire tep_image() function" in the html_output.php.

////

// The HTML image wrapper function

function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {

if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

return false;

}

 

// alt is added to the img tag even if it is null to prevent browsers from outputting

// the image filename as default

$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

 

if (tep_not_null($alt)) {

$image .= ' title=" ' . tep_output_string($alt) . ' "';

}

 

if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {

if ($image_size = @getimagesize($src)) {

if (empty($width) && tep_not_null($height)) {

$ratio = $height / $image_size[1];

$width = $image_size[0] * $ratio;

} elseif (tep_not_null($width) && empty($height)) {

$ratio = $width / $image_size[0];

$height = $image_size[1] * $ratio;

} elseif (empty($width) && empty($height)) {

$width = $image_size[0];

$height = $image_size[1];

}

} elseif (IMAGE_REQUIRED == 'false') {

return false;

}

}

 

if (tep_not_null($width) && tep_not_null($height)) {

$image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';

}

 

if (tep_not_null($parameters)) $image .= ' ' . $parameters;

 

$image .= '>';

 

return $image;

}

 

By the way, I love the contribution! :thumbsup:


Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Share this post


Link to post
Share on other sites

Hi all !

 

Thanks again for that contrib. It works great for me but my apache error log file is full of warnings and notices:

 

PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by values ...

PHP Notice: Undefined variable: page_prefix in /var/www/html/catalog/imagemagic.php on line 168

PHP Notice: Undefined variable: thumbail_size in /var/www/html/catalog/imagemagic.php on line 66

 

I have upgraded today to the latestest version of Image Magic (tried 1.14 and 1.15 version) but the warnings are still there.

 

My config:

 

Linux (CentOS v4.3)

gd 2.0.28

apache 2.0.52 with vhosts

php v5.0.4

mysql 4.1.20

 

Thanks a lot

 

Guillaume

Share this post


Link to post
Share on other sites

Hello, again..

I am still haveing the problem with the admin part of the imagemagic, most of the functions work, but when I go to the dropdown menu for fonts or watermarks, i get

Fatal error: Call to undefined function: tep_cfg_pull_down_installed_fonts()

Can anyone help me with this? This is a brand new install, the only contrib i have added is I/M 1.5 and just can't get this work, everything else is fine.. just this..

Thanks again in advance.


It's not a beer gut, it's padding for my rock hard abs!

Share this post


Link to post
Share on other sites

Ok, I just had to read a little better, I the drop down menus for watermark and text to stop faulting..

But now when the drop down comes down, there is nothing in the selections..

It has the menu, but nothing to select, the fonts are there, and the watermarks are there, in the directory

but I can't get them to load to the menu so I can select them.

Sorry for my lack of knowledge with php. And thanks again in advance...

John

Edited by Allensbayou

It's not a beer gut, it's padding for my rock hard abs!

Share this post


Link to post
Share on other sites

Got it all working... thank god for this forum, and lot's and lot's of coffee...


It's not a beer gut, it's padding for my rock hard abs!

Share this post


Link to post
Share on other sites

I, for one, love this contribution. I finally got the hang of installing it. Mostly, because of the help here on the forum. But the directions weren?t to difficult for me. I just had to actually READ them CLOSLEY and that got most of my stuff working. After that I just had to search thru the pages, (UGH!), and I finally got the answers I needed. With a special thanks to everyth5. For anyone else just starting this image magic thingy, start with the instructions, then the forum. That helped me. A lot.

 

Thanks again to all the people here.


It's not a beer gut, it's padding for my rock hard abs!

Share this post


Link to post
Share on other sites

Hi John. lol. I am glad that I could help someone. I am totally new to this PHP stuff and am struggling to get my site up over the next 2 weeks. I have been at it over one month now and things are starting to focus for me.

 

I just wish I could help myself regarding my popup images though. I have installed I/M, resized my images manually, re-FTP'd them to my site, and when I "Click To Enlarge" them, THEY STILL COME UP MORE THAN SCREEN SIZE.

 

This is My Webpage. If anyone can give me some advice regarding getting the size down, I would appreciate it.

 

This is the only problem I am now having with I/M.

 

Thanks in advance for the help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×