Jump to content

varanka

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Aldiyan

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. varanka

    Article Manager v1.0

    Dear All, I'm working with Article Manager V 1.57 to be install on OSC 2.3.1, admin side are working well in OSC 2.3.1 after i have change source code. The problem is i don't have any idea to change source code on boxes front side. Any suggestion??? I'm stuck in build catalog/includes/modules/boxes/bm_articles.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class bm_articles { var $code = 'bm_articles'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_articles() { $this->title = MODULE_BOXES_ARTICLES_TITLE; $this->description = MODULE_BOXES_ARTICLES_DESCRIPTION; if ( defined('MODULE_BOXES_ARTICLES_STATUS') ) { $this->sort_order = MODULE_BOXES_ARTICLES_SORT_ORDER; $this->enabled = (MODULE_BOXES_ARTICLES_STATUS == 'True'); $this->group = ((MODULE_BOXES_ARTICLES_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function execute() { global $oscTemplate; //THIS IS SPACE TO SHOW BOXES IN FRONTPAGE, it must be articles.php in catalog/include/boxes/ from OSC 2.2, but i'dont have any idea to change this... $oscTemplate->addBlock($data, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_ARTICLES_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 ('Enable Articles Module', 'MODULE_BOXES_ARTICLES_STATUS', 'True', 'Do you want to add the module to your shop?', '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, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_ARTICLES_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', 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_BOXES_ARTICLES_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_BOXES_ARTICLES_STATUS', 'MODULE_BOXES_ARTICLES_CONTENT_PLACEMENT', 'MODULE_BOXES_ARTICLES_SORT_ORDER'); } } ?>
×