Jump to content

Templer

Members
  • Content count

    36
  • Joined

  • Last visited

Profile Information

  • Real Name
    Michael
  1. Templer

    Official PayPal IPN Support Thread

    Simon I edit the file as you suggested and YES !!! the IPN works, however the customer gets the following error on completion of the transaction and are left not knowing the transaction has been successful. ''Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/xxxx/mystore.com/includes/modules/payment/paypal_ipn.php:1) in /hsphere/local/home/xxxx/mystore.com/includes/functions/general.php on line 33 Any suggestions? I am so close !!! Thanks in advance Templer
  2. Templer

    [Contribution] TinyMCE Anywhere

    Hi all I am getting the following error message when I select ACA- Categories in admin. >>>Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /hsphere/local/home/goslas/themagiccompany.co.uk/admin/includes/functions/compatibility.php:18) in /hsphere/local/home/goslas/themagiccompany.co.uk/admin/includes/functions/compatibility.php on line 18<<< function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } Any advice greatly appreciated. Thanks
  3. Templer

    [Contribution] TinyMCE Anywhere

    Hi I think I found the correct one. I have installed the file and edited the files along with updating the sql. I am not getting this error when I select catalog in admin Parse error: parse error, unexpected T_CASE in /hsphere/local/home/goslas/xxxx.co.uk/admin/categories.php on line 173 173 if (USE_CACHE == 'true') { 174 tep_reset_cache_block('categories'); 175 tep_reset_cache_block('also_purchased'); 176 } I am also getting the following error in ACA for categories Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /hsphere/local/home/goslas/themagiccompany.co.uk/admin/includes/functions/compatibility.php:18) in /hsphere/local/home/goslas/themagiccompany.co.uk/admin/includes/functions/compatibility.php on line 18 Any help would be gratefully appreciated Sorry im a newbie !! Michael
  4. Templer

    [Contribution] TinyMCE Anywhere

    Thanks for the advice, unfortunately there are several category description contributions and I could not find the one which needed me to copy a file. Would you be so kind as to paste a link for me. Thanks Michael
  5. Templer

    [Contribution] TinyMCE Anywhere

    This is the information from the category_description.php for the above problem. <?php /* $Id: category_description.php,v 2.2 2006/04/28 Rigadin 22:26:32 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2005 osCommerce Released under the GNU General Public License * ACA2 category module for Category Description v1.9 by Rigadin (rigadin@osc-help.net) */ include (DIR_WS_FUNCTIONS.'categories_description.php'); // Includes some functions needed for this contribution class category_description { var $code, $title, $description, $sort_order, $enabled, $is_image_handler, $cInfo; // class constructor function category_description() { $this->code = 'category_description'; $this->title = MODULE_ACACAT_CATDESC_TEXT_TITLE; $this->description = MODULE_ACACAT_CATDESC_TEXT_DESCRIPTION . ' (module v2.2)'; $this->sort_order = MODULE_ACACAT_CATDESC_SORT_ORDER; $this->enabled = (ALLOW_CATEGORY_DESCRIPTIONS == 'true'); $this->is_image_handler=false; $this->cInfo = new objectInfo(array('categories_heading_title' =>'')); } // class contructor end function set_image_handler (&$handler) { //Returns own name if want to take care of saving images. Otherwise returns $handler. Called only if module enabled $handler=$this->code; } function check_action($actions){ global $HTTP_POST_VARS; //This happens when going from category preview (if used) back to edit: if (isset($HTTP_POST_VARS['cedit_x']) || isset($HTTP_POST_VARS['cedit_y'])){ $actions['action'] = 'edit_category_ACD'; $actions['display_file']='categories_edit.php'; $actions['action_class']=''; $actions['action_method']=''; // If category description is used, send to full page editor instead of right panel } elseif ((($actions['action']=='new_category')OR ($actions['action']=='edit_category'))) { $actions['action']=$actions['action'].'_ACD'; $actions['display_file']='categories_edit.php'; $actions['action_class']=''; $actions['action_method']=''; } elseif ($actions['action']=='new_category_preview') { $actions['display_file']='categories_preview.php'; $actions['action_class']=''; $actions['action_method']=''; if (($this->is_image_handler)AND($HTTP_POST_VARS)) { // Take care of image if necessary $categories_image = new upload($this->code.'__categories_image'); echo 'UPLOAD'; $categories_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($categories_image->parse() && $categories_image->save()) { $HTTP_POST_VARS[$this->code]['categories_image'] = $categories_image->filename; } else { $HTTP_POST_VARS[$this->code]['categories_image'] = $HTTP_POST_VARS[$this->code]['categories_previous_image']; } } } return $actions; } function insert_table_categories_description (&$sql_data_array, $languages_id) { // This function returns an array with variables to insert into TABLE_CATEGORIES_DESCRIPTION $sql_data_array['categories_heading_title'] = $this->cInfo->categories_heading_title[$languages_id]; $sql_data_array['categories_description'] = $this->cInfo->categories_description[$languages_id]; } function update_table_categories_description (&$sql_data_array, $languages_id) { $sql_data_array['categories_heading_title'] = $this->cInfo->categories_heading_title[$languages_id]; $sql_data_array['categories_description'] = $this->cInfo->categories_description[$languages_id]; } function after_update ($categories_id) { if (isset($this->cInfo->categories_image) && tep_not_null($this->cInfo->categories_image)){ if ($this->cInfo->categories_image == 'none') $save_image = ''; else $save_image = $this->cInfo->categories_image; tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . $save_image . "' where categories_id = '" . (int)$categories_id . "'"); } } function load_db_values ($categories_id) { $arr=array(); $categories_query = tep_db_query("SELECT categories_image FROM " . TABLE_CATEGORIES ." WHERE categories_id = '" . (int)$categories_id . "'"); $categories = tep_db_fetch_array($categories_query); $this->cInfo->objectInfo($categories); $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $languages_id = $languages[$i]['id']; // Load product parameters from database, called when editing a product $category_query = tep_db_query("SELECT categories_description, categories_heading_title FROM " . TABLE_CATEGORIES_DESCRIPTION . " WHERE categories_id = '" . (int)$categories_id . "' and language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); $arr['categories_description'][$languages_id]=$category['categories_description']; $arr['categories_heading_title'][$languages_id]=$category['categories_heading_title']; } // End for each language $this->cInfo->objectInfo($arr); } function load_post_values ($post) { global $HTTP_POST_VARS; // Should use $post passed as parameter!! // The $post contains only post values for this module // cInfo is an array [field name]=value, for not language-specific parameters // [field name][language id]=value for language-specific parameters $this->cInfo->objectInfo ($post); } function repost_values () { // Repost all values that are not arrays foreach ($this->cInfo as $key=>$val) { if (!is_array($val)) { echo tep_draw_hidden_field($this->code .'['.$key.']', stripslashes($val))."\n"; } // end if } // end for for each pInfo $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { echo tep_draw_hidden_field($this->code .'[categories_heading_title][' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($this->cInfo->categories_heading_title[$languages[$i]['id']])))."\n"; echo tep_draw_hidden_field($this->code .'[categories_description][' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($this->cInfo->categories_description[$languages[$i]['id']])))."\n"; } } // end function function display_edit(&$contents){ // Displayed in the right panel $category_inputs_string = ''; $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { if ($i==0) $title=TEXT_EDIT_CATEGORIES_HEADING_TITLE; else $title=''; $category_inputs_string = tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field($this->code.'[categories_heading_title][' . $languages[$i]['id'] . ']', $this->cInfo->categories_heading_title[$languages[$i]['id']]); $contents[] = array('text' => $title.'<BR>'.$category_inputs_string); }//end foreach language for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $languages_id=$languages[$i]['id']; if ($i == 0) $title= TEXT_EDIT_CATEGORIES_DESCRIPTION; else $title=''; $m=' <table border="0" cellspacing="0" cellpadding="0">'."\n"; $m.=' <tr>'."\n"; $m.=' <td class="main" valign="top">' .tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']).' </td>'."\n"; $m.=' <td class="main">' .tep_draw_textarea_field($this->code.'[categories_description][' . $languages[$i]['id'] . ']', 'soft', '70', '15', $this->cInfo->categories_description[$languages[$i]['id']] ).'</td>'."\n"; $m.=' </tr>'."\n"; $m.=' </table>'."\n"; $contents []= array ('text' => $title.'<BR>'.$m); }//end foreach language if ($this->is_image_handler) { $contents['image'] = array('text' => TEXT_EDIT_CATEGORIES_IMAGE . '<BR>' . tep_draw_file_field('categories_image').'<BR>'.$this->cInfo->categories_image .' '. tep_draw_hidden_field($this->code.'[categories_previous_image]', $this->cInfo->categories_image)); } }//end method function display_preview(&$contents, $languages) { // Only when preview is shown on a full page $contents []= array('text'=>$this->cInfo->categories_description[$languages['id']], 'params' => 'class="main"'); } //===================================== // Functions for modules administration //===================================== function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'ALLOW_CATEGORY_DESCRIPTIONS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Category Description', 'ALLOW_CATEGORY_DESCRIPTIONS', 'true', 'Do you use Category Description? ', '6', '1', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of process.', 'MODULE_ACACAT_CATDESC_SORT_ORDER', '1', 'Sort order of process. Lowest is processed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('ALLOW_CATEGORY_DESCRIPTIONS', 'MODULE_ACACAT_CATDESC_SORT_ORDER'); } } //class end ?>
  6. Templer

    [Contribution] TinyMCE Anywhere

    Hi all I have just installed this and I am getting the following error messages in ASA categories but so far no error messages in products: I am a novice to osCommerce and would be VERY grateful if someone can spare the time to help me resolve this. I am sure I am just doing something really stupid. Thank you Mick Warning: main(includes/functions/categories_description.php): failed to open stream: No such file or directory in /hsphere/local/home/goslas/xxxx.co.uk/admin/includes/modules/categories/category_description.php on line 14 Warning: main(includes/functions/categories_description.php): failed to open stream: No such file or directory in /hsphere/local/home/goslas/xxxx.co.uk/admin/includes/modules/categories/category_description.php on line 14 Warning: main(includes/functions/categories_description.php): failed to open stream: No such file or directory in /hsphere/local/home/goslas/xxxx.co.uk/admin/includes/modules/categories/category_description.php on line 14 Warning: main(): Failed opening 'includes/functions/categories_description.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/share/pear') in /hsphere/local/home/goslas/xxxx.co.uk/admin/includes/modules/categories/category_description.php on line 14 Category Description 1 Htmlarea 1.7 Javascript for categories Jpsy image uploader 3 TinyMCE for category description 5 Header Tags Controller 1 Module Directory: /hsphere/local/home/goslas/xxxxx.co.uk/admin/includes/modules/categories/ Htmlarea 1.7 Wysywyg Editor for category description Htmlarea 1.7 Editor for category description (module v2.0) Enable Html Area 1.7 True Sort order of process. 3
×