SLiCK_303, on 04 October 2011 - 07:43 PM, said:
Thanks! do you recommend any other similar contribution?
Posted 16 October 2011 - 02:10 AM
Posted 16 December 2011 - 03:16 PM
Posted 17 December 2011 - 08:13 PM
wolfapache, on 16 December 2011 - 03:16 PM, said:
Posted 18 December 2011 - 06:26 AM
Posted 18 December 2011 - 06:33 AM
Posted 21 December 2011 - 12:18 PM
Posted 21 December 2011 - 12:56 PM
click2shop, on 21 December 2011 - 12:18 PM, said:
Posted 21 December 2011 - 01:36 PM
click2shop, on 21 December 2011 - 12:56 PM, said:
Edited by click2shop, 21 December 2011 - 01:41 PM.
Posted 01 January 2012 - 09:19 PM
SLiCK_303, on 16 October 2011 - 02:10 AM, said:
Posted 06 January 2012 - 01:49 PM
Posted 06 January 2012 - 06:47 PM
click2shop, on 21 December 2011 - 01:36 PM, said:
click2shop, on 21 December 2011 - 12:56 PM, said:
Posted 18 January 2012 - 08:31 AM
giostark, on 23 January 2009 - 06:41 PM, said:
Posted 19 January 2012 - 12:03 PM
Edited by s_pauley, 19 January 2012 - 12:07 PM.
Posted 20 January 2012 - 02:59 PM
click2shop, on 20 January 2012 - 02:05 PM, said:
/// ckeditor output
function tep_draw_textarea_ckeditor($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
global $HTTP_GET_VARS, $HTTP_POST_VARS;
$field = '<textarea name="' . tep_output_string($name) . '" style="width:' . tep_output_string($width) . 'px;height:' . tep_output_string($width) . 'px" rows="10" cols="10" '; if (tep_not_null($parameters)) $field .= ' ' . $parameters;
$field .= '>'; if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {
if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {
$field .= tep_output_string_protected(stripslashes($HTTP_GET_VARS[$name]));
} elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {
$field .= tep_output_string_protected(stripslashes($HTTP_POST_VARS[$name]));
}
} elseif (tep_not_null($text)) {
$field .= tep_output_string_protected($text);
}
$field .= '</textarea>';
$field .= '<script type="text/javascript">
CKEDITOR.replace( \''.tep_output_string($name).'\',
{
filebrowserBrowseUrl : \''.DIR_WS_ADMIN.'ckeditor/filemanager/index.php?editor=ckeditor\',
filebrowserImageBrowseUrl : \''.DIR_WS_ADMIN.'ckeditor/filemanager/index.php?editor=ckeditor&filter=image\',
filebrowserFlashBrowseUrl : \''.DIR_WS_ADMIN.'ckeditor/filemanager/index.php?editor=ckeditor&filter=flash\',
});
</script>';
return $field;
}
Edited by bassmaga, 20 January 2012 - 03:02 PM.
Posted 28 February 2012 - 11:46 AM
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
class hm_user_menu {
var $code = 'hm_user_menu';
var $group = 'boxes';
var $title;
var $description;
var $sort_order;
var $enabled = false;
function hm_user_menu() {
$this->title = MODULE_BOXES_USER_MENU_TITLE;
$this->description = MODULE_BOXES_USER_MENU_DESCRIPTION;
if ( defined('MODULE_BOXES_USER_MENU_STATUS') ) {
$this->sort_order = MODULE_BOXES_USER_MENU_SORT_ORDER;
$this->enabled = (MODULE_BOXES_USER_MENU_STATUS == 'True');
$this->group = 'box_header_user_menu';
}
}
function execute() {
global $oscTemplate, $button_act, $tab_sel;
if (($tab_sel == tep_href_link(FILENAME_CREATE_ACCOUNT))
|| ($tab_sel == tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS))
|| ($tab_sel == tep_href_link(FILENAME_ACCOUNT))
|| ($tab_sel == tep_href_link(FILENAME_ACCOUNT_PASSWORD))
|| ($tab_sel == tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS))
|| ($tab_sel == tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS))
|| ($tab_sel == tep_href_link(FILENAME_ACCOUNT_HISTORY))
|| ($tab_sel == tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO))
|| ($tab_sel == tep_href_link(FILENAME_ACCOUNT_EDIT))
|| ($tab_sel == tep_href_link(FILENAME_ADVANCED_SEARCH)))
{
$button_act2 = " act";
}
if (($tab_sel == tep_href_link(FILENAME_LOGIN))
|| ($tab_sel == tep_href_link(FILENAME_LOGOFF))
){
$button_act1 = " act";
}
if ($tab_sel == tep_href_link(FILENAME_SHIPPING))
{
$button_act3 = " act";
}
if (tep_session_is_registered('customer_id')) {
$login_link = tep_href_link('logoff.php');
$login_title= MODULE_BOXES_USER_MENU_BOX_TITLE_LOGOFF;
} else{
$login_link = tep_href_link('login.php');
$login_title= MODULE_BOXES_USER_MENU_BOX_TITLE_LOGIN;
}
if (tep_session_is_registered('customer_id')) {
$acc_link = tep_href_link('account.php');
$acc_title= MODULE_BOXES_USER_MENU_BOX_MY_ACCOUNT;
} else{
$acc_link = tep_href_link('create_account.php');
$acc_title= MODULE_BOXES_USER_MENU_BOX_CREATE_ACCOUNT;
}
$data = '<ul class="user_menu">'.
'<li class="'.$button_act3.'"><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">'.tep_draw_button_header_top().'<span>'.MODULE_BOXES_USER_MENU_BOX_ADVANCED_SEARCH.'</span>'.tep_draw_button_header_bottom().'</a></li>'.
'<li class="'.$button_act3.'"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">'.tep_draw_button_header_top().'<span>'.MODULE_BOXES_USER_MENU_BOX_SHIPPING.'</span>'.tep_draw_button_header_bottom().'</a></li>'.
'<li class="'.$button_act2.'"><a href="' .$acc_link. '">'.tep_draw_button_header_top().'<span>'.$acc_title.'</span>'.tep_draw_button_header_bottom().'</a></li>'.
'<li class="'.$button_act1.'"><a href="'.$login_link.'">'.tep_draw_button_header_top().'<span>'.$login_title.'</span>'.tep_draw_button_header_bottom().'</a></li>'.
'</ul>';
$oscTemplate->addBlock($data, $this->group);
}
function isEnabled() {
return $this->enabled;
}
function check() {
return defined('MODULE_BOXES_USER_MENU_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 Information Module', 'MODULE_BOXES_USER_MENU_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_USER_MENU_CONTENT_PLACEMENT', 'Header Block', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Header Block\'), ', 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_USER_MENU_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_USER_MENU_STATUS', 'MODULE_BOXES_USER_MENU_CONTENT_PLACEMENT', 'MODULE_BOXES_USER_MENU_SORT_ORDER');
}
}
?>
Posted 28 February 2012 - 01:33 PM
Posted 04 April 2012 - 06:26 PM
Posted 04 April 2012 - 06:48 PM
C) In catalog/includes/modules/bm_information.php
Quote