Latest News: (loading..)

katapofatico

Members
  • Content count

    63
  • Joined

  • Last visited

  • Days Won

    3

katapofatico last won the day on February 9

katapofatico had the most liked content!

3 Followers

About katapofatico

Profile Information

  • Real Name
    Marcos
  • Gender
    Male
  • Location
    Madrid

Recent Profile Visitors

4,371 profile views
  1. @piernas Did you finished and published your module? I'm looking for something like it. :) Thanks!
  2. PHP Warning: file_put_contents(../maintenance.php): failed to open stream: Forbidden access in ...includes/modules/header_tags_amantis/ht_store_mode.php on line 166 Ok, I know it's a permissions problem. But I've never known what level of permissions to grant on this situations :( What's the minimum (most conservative and secure) chmod numbers to allow writting .htaccess from ht_store_mode.php? Can you guide me please? Thanks!
  3. @@raiwa Installing the content module, on URL ...admin/modules.php?set=header_tags&module=ht_store_mode Notice: Use of undefined constant MODULE_HEADER_TAGS_STORE_MODE_MESSAGE_ - assumed 'MODULE_HEADER_TAGS_STORE_MODE_MESSAGE_' in .../includes/modules/header_tags/ht_store_mode.php on line 201 $KeysArray[] = MODULE_HEADER_TAGS_STORE_MODE_MESSAGE_ . $key; Fixed: $KeysArray[] = 'MODULE_HEADER_TAGS_STORE_MODE_MESSAGE_' . $key;
  4. Thanks, Dan and Phill :) I have not a good idea about the branches development status and meaning: I work only on gBurton/oscBS and the parent projects are a mistery to me (I miss a simple diagram explaining it). Therefore, thanks @@Dan Cole for your link to 2.3 branch: I will post my commit there.
  5. @@burt mentioned oscommerce "official 2.3.5" version here, but I don't find any information about it. Anybody can guide me to it? Any link? Thanks!
  6. Excuse me, it looks a simple developer confusion. The addon is correct, only the last file is a mistake.
  7. There's a fake addon: http://addons.oscommerce.com/info/9501 Is there any control about it?
  8. The addon description says: Instructions are included for using the ThemeRoller tool to download stock themes and design new ones. It includes a method that allows you to design WYSIWYG on your own store pages @@kymation Please, where can we see these features?
  9. There's a new file on addons site, uploaded by @@beauty_Bar, versioned as theme_switcher_1.5.3_1 but it hasn't any differences to previous version theme_switcher_1.5.3 by @@kymation. Maybe an error?
  10. @@burt I don't know if is convenient to tag this as "solved" or something like this.
  11. Thanks @@mattjt83 for your attempts and @@burt for the solution: it's was my fault: simply bad markup of <script> element!. Thanks! :thumbsup:
  12. This is not the problem: current page is correctly detected, the first import works. Thanks anyway :) Yes, I have been playing with this variable, and the problem continue :(
  13. @@mattjt83 Thanks for help: I didn't check your idea!... but it doesn't works :( My code whith your idea is here: <?php class ht_template_top_general { var $code = 'ht_template_top_general'; var $group = 'header_tags'; var $title; var $description; var $sort_order; var $enabled = false; function ht_template_top_general() { $this->title = MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_TITLE; $this->description = MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_DESCRIPTION; if (defined('MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_STATUS')) { $this->sort_order = MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_SORT_ORDER; $this->enabled = (MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_STATUS == 'True'); } } function execute() { global $PHP_SELF, $oscTemplate; switch ($PHP_SELF) { case FILENAME_CHECKOUT_SHIPPING_ADDRESS: { $validationJs = '<script type="text/javascript" src="amantis/ext/modules/validation/jquery.validate.min.js" />'; $validationJs .= '<script type="text/javascript" src="amantis/ext/modules/validation/localization/messages_es.min.js" />'; $oscTemplate->addBlock($validationJs, $this->group); } } } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_STATUS'); } 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 ('Ajustes generales de Amantis sobre la plantilla', 'MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_STATUS', 'True', 'Ajustes generales de Amantis sobre la plantilla', '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', 'MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_STATUS', 'MODULE_HEADER_TAGS_TEMPLATE_TOP_GENERAL_SORT_ORDER'); } }
  14. I'm developing a header tag module in order to include jquery validation plugin. I use Firefox browser. My first attempt works well ... private function _includeValidation() { $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/jquery.validate.min.js" />', $this->group); // $this->group = 'header_tags' } ... but when I try to include another script... private function _includeValidation() { $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/jquery.validate.min.js" />', $this->group); $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/localization/messages_es.min.js" />', $this->group); } ... the browser only load the first one: jquery.validate.min.js ATTEMPTS 1) If I switch the loading order... private function _includeValidation() { $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/localization/messages_es.min.js" />', $this->group); $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/jquery.validate.min.js" />', $this->group); } ... the browser only load the first one: messages_es.min.js 2) I see that core modules sometimes include a breakline separator, then I try applying it... private function _includeValidation() { $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/jquery.validate.min.js" />' . PHP_EOL, $this->group); $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/localization/messages_es.min.js" />' . PHP_EOL, $this->group); } ... the browser only load the first one: jquery.validate.min.js 3) Using "\n" instead of PHP_EOL, as other modules... private function _includeValidation() { $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/jquery.validate.min.js" />' . "\n", $this->group); $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/localization/messages_es.min.js" />' . "\n", $this->group); } ... the browser only load the first one: jquery.validate.min.js 4) Importing another JS file: private function _includeValidation() { $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/jquery.validate.min.js" />', $this->group); $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/jquery.scrollTo.min.js" />', $this->group); } ... the browser only load the first one: jquery.validate.min.js 5) Using the jquery version associated to the query Validation 1.15. I disabled jquery import on template_top and then ... private function _includeValidation() { $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/lib/jquery.js" />', $this->group); $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/jquery.validate.min.js" />', $this->group); } ... the browser only load the first one: jquery.js 6) Import each JS file from distinct modules: 6.A ) Importing jquery.validate.min.js on ht_noscript.php core module... function execute() { global $oscTemplate; $oscTemplate->addBlock('<noscript><div class="no-script"><div class="no-script-inner">' . tep_output_string(MODULE_HEADER_TAGS_NOSCRIPT_TEXT) . '</div></div></noscript>', $this->group); $oscTemplate->addBlock('<style>.no-script { border: 1px solid #ddd; border-width: 0 0 1px; background: #ffff90; font: 14px verdana; line-height: 2; text-align: center; color: #2f2f2f; } .no-script .no-script-inner { margin: 0 auto; padding: 5px; } .no-script p { margin: 0; }</style>', $this->group); // My hack: $oscTemplate->addBlock('<script type="text/javascript" src="amantis/ext/modules/validation/jquery.validate.min.js" />', $this->group); } 6.B ) ... and importing validation language file on my module: private function _includeValidation() { $oscTemplate->addBlock('<script type="text/javascript" src="ext/modules/validation/localization/messages_es.min.js" />', $this->group); } ... ¡and this works! Experiments lead to me to consider that the problem is in my header tag module file, but it's made from another core header tag module, and it's simple... Has anyone encountered anything like this? Any clue, path will be so appreciated: I'm very frustrated, hours debugging :( Thanks! :pray:
  15. @@Tsimi I have uploaded my header tag module here: http://addons.oscommerce.com/info/9470