Hello guys, I'm searching a reliable not to expensive ASP.NET & PHP iPage hosting service.?

Click Here To View All Answers...

First off, Hello guys, I'm searching a reliable not to expensive ASP.NET & PHP iPage hosting service.? Looking forward for any answer or 2. Another quick question... Hi,.

I've added an image for each of my categories through the admin panel where you create a "new category". Well I don't really like the look of that anymore and I'd like to just delete the picture altogher. How can I do this since there is no remove option? Just delete the picture and set "Image required" to false under admin/config/images. But if I do that then I erase the picture of the product so I'm stuck..

Thanks for your help..

Comments (4)

That's a good question. I'm not sure what is the right answer to your question. I'll do some investigation and get back to you if I got an good answer. You should email the people at iPage as they probably could assist you..

Comment #1

OK last night I decided to hack in something to actually do this... but unfortunately I have the category descritption contribution installed so I can just post the page... But if anyone wants to hack it in this is basically what I did:..

Comment #2



Around line 37 find:.

Case 'update_category':.

And add this below it:.

//Category Image Removal.

If ( ($HTTP_POST_VARS['edit_x']) || ($HTTP_POST_VARS['edit_y']) ) {.

         $HTTP_GET_VARS['action'] = 'edit_category_ACD';.

       } else {.

   if ($HTTP_POST_VARS['delete_catimage'] == 'yes') {.


               if ($HTTP_POST_VARS['categories_image'] == $HTTP_POST_VARS['categories_previous_image']) {.

                   $HTTP_POST_VARS['categories_image'] = 'none';.


   if ($HTTP_POST_VARS['unlink_catimage'] == 'yes') {.

   if ($HTTP_POST_VARS['categories_image'] == $HTTP_POST_VARS['categories_previous_image']) {.

                   $HTTP_POST_VARS['categories_image'] = 'none';.

         }}} // may have to remove one if you have other contributions like category description.

And now for the fun part: with the category description installed I went to:.


Area and worked this in:.

<td class="main"><?php echo TEXT_EDIT_CATEGORIES_IMAGE; ?>.

<br><?php if (($HTTP_GET_VARS['cID']) && $cInfo->categories_image != 'none') {echo tep_draw_separator('pixel_trans.gif', '5', '5')tep_draw_checkbox_field('unlink_catimage', 'yes', false)'<small><b>Remove</b> Image from Category?</small>'; ?><br><?php echo tep_draw_separator('pixel_trans.gif', '5', '5')tep_draw_checkbox_field('delete_catimage', 'yes', false)'<small><b>Delete</b> image from Server?</small>'; }?></td><td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15')'&nbsp;'tep_draw_file_field('categories_image')'<br>'tep_draw_separator('pixel_trans.gif', '24', '15')'&nbsp;'$cInfo->categories_imagetep_draw_hidden_field('categories_previous_image', $cInfo->categories_image); ?></td>.

But I know that wont work on a clean install - but yuou might be able to make it work for you. - Good luck and use it at your own risk - AND BACKUP FIRST!..

Comment #3

Why didnt you just comment out the line that displays the image?.

That would have been far simpler..

But nice work on the code you posted..

Comment #4

Beacuse that does not allow you to remove just one Category Image. It would hide all of them..

I did so that my clients can remove them - I thought it was something that should be able to be done from the admin area..

Thanks - could be ugly code - I am no programmer just a hacker.


This post has been edited by.


: 28 June 2004, 08:56..

Comment #5

This question was taken from a support group/message board and re-posted here so others can learn from it.