cramli
Pioneers-
Posts
91 -
Joined
-
Last visited
Profile Information
-
Real Name
marc andre
-
Gender
Male
-
Location
Switzerland
Recent Profile Visitors
10,218 profile views
cramli's Achievements
-
[Contribution] iOSC - mobile version of OSC on your iPhone
cramli replied to bumbarash's topic in General Add-Ons Support
Dear Rainer I have installed the KissIT_image_thumbnailer_r9_1. Can they work together? I know you wrote that MAYBE it is not working, but somehow you have in the meantime made other experience. Thank you again Best regards Marc -
[Contribution] iOSC - mobile version of OSC on your iPhone
cramli replied to bumbarash's topic in General Add-Ons Support
Hello Rainer Thank you for your fast answer. To clarify what I have to do is: First Installing Mobile OSC 7.5.8r1_1, and then the addon mobile headertags? I am right? What I am not understanding is, This package will work and HTML5 validate "out of the box" only with unmodified OSCommerce shops My shop is modified so what I have to do?? Thank you and best regards Marc -
[Contribution] iOSC - mobile version of OSC on your iPhone
cramli replied to bumbarash's topic in General Add-Ons Support
Hello Rainer Is this contribution combatible when I have the addon: modular_seo_header_tags_1.4.6_min installed? Thank you and have a great day -
@@Rainer Sorry I forgot that I asked this once. Of corse I will try to fin the right forum. Thank you again for helping and it was very helpfull from your side. Best regards
-
@@Rainer I found the problem why in the source code it was twice. I had to remove <?php echo $oscTemplate->getBlocks('header_tags'); ?> in the template_top.php because I had it twice :(. But now the problem is, how I can manage that the additional pictures are a little bigger? Here the link : http://apromo.com.br/product_info.php/cPath/45/products_id/75/language/en Thank you
-
@@Rainer Something strange, in the source code after removing in the template_top.php these lines are still coming back?? :(
-
@@Rainer Could be the problem in my Stylesheet? Here a part of it: .contentContainer { padding-bottom: 50px; padding: 35px; } .contentContainer h2 { font-size: 16px; font-weight: normal; text-decoration: none; margin-bottom: 0; padding-bottom: 5px; } .contentText, .contentText table { font-size: 12px; line-height: 2.0; } .productListTable { padding: 5px; font-size: 11px; line-height: 1.5; } .productListTable tr.alt td { background-color: #ecf6fc; } .fieldKey { font-size: 11px; font-weight: bold; line-height: 1.5; width: 150px; } .fieldValue { font-size: 11px; line-height: 1.5; } // h1 { font-size: 20px; margin-bottom: 0; padding-bottom: 5px; } img { border: 0px; } table, p { font-size: 11px; line-height: 1.5; } #piGal { float: right; width: 250px; } #piGal img { max-width: 250px; height: auto; } #piGal ul.thumbs li img{height: 50px !important;}
-
@@Rainer Done. I made the changes so far but the pictures are still all the same size. Why or what I have to change again? Any idea how to resize the addidional pictures? Have a look here http://apromo.com.br/product_info.php/cPath/45/products_id/75/language/en Thank you for helping
-
@@Rainer The only problem I have now is, when I remove these 3 lines, then the themes is no more possible to change. I don't know why. I asked also in the support forum from the theme switcher, but no answer. Wha can I do now?
-
Hello there My problem is, after correct installing in the file ht_theme_switcher ( includes/modules/ header_tag/) I have to remove the following lines: $theme_text = '<script type="text/javascript" src="ext/jquery/jquery-' . $jquery_version . '.min.js"></script>' . PHP_EOL; $theme_text .= '<script type="text/javascript" src="ext/jquery/ui/jquery-ui-' . $jquery_ui_version . '.min.js"></script>' . PHP_EOL; $theme_text .= '<link rel="stylesheet" type="text/css" href="ext/jquery/ui/' . $theme_name . '/jquery-ui-' . $jquery_ui_version . '.min.css" />' . PHP_EOL; to make the theme switcher working. When I leave them, the add pictures in the product page are all the same size, no small pictures. Fine, this works but when I try to change the theme, nothing happend. I made all the steps as per description. Where could be that mistake? Thank you for helping
-
Thank you, this is the version I allready have and also installed. Maybe I will go back with all the steps (upgrading 2.3.3.4 to 2.3.4) and do a new installation, inclusiv the files and with the comment you told me. What you mean?
-
Done, it's ok. But now when I change the theme, nothing happen.
-
This is the th_theme_switcher.php: <?php /* $Id: ht_theme_switcher.php 1.4.3 20140513 Kymation $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2014 osCommerce Released under the GNU General Public License */ class ht_theme_switcher { public $code; public $group; public $title; public $description; public $sort_order; public $enabled = false; public $version = '1.4.3'; //// // Class constructor to set values at instantiation function ht_theme_switcher() { $this->code = get_class( $this ); $this->group = basename( dirname( __FILE__ ) ); $this->title = MODULE_HEADER_TAGS_THEME_SWITCHER_TITLE; $this->description = MODULE_HEADER_TAGS_THEME_SWITCHER_DESCRIPTION; if ( defined('MODULE_HEADER_TAGS_THEME_SWITCHER_STATUS') ) { $this->sort_order = MODULE_HEADER_TAGS_THEME_SWITCHER_SORT_ORDER; $this->enabled = (MODULE_HEADER_TAGS_THEME_SWITCHER_STATUS == 'True'); } } //// // Produce the module output: A set of header tags public function execute() { global $oscTemplate; $jquery_version = '1.11.1'; if( MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_VERSION != '' ) { $jquery_version = MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_VERSION; } $jquery_ui_version = '1.10.4'; if( MODULE_HEADER_TAGS_THEME_SWITCHER_THEME != '' ) { $jquery_ui_version = MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_VERSION; } $theme_name = 'redmond'; if( MODULE_HEADER_TAGS_THEME_SWITCHER_THEME != '' ) { $theme_name = MODULE_HEADER_TAGS_THEME_SWITCHER_THEME; } $theme_text = '<script type="text/javascript" src="ext/jquery/jquery-' . $jquery_version . '.min.js"></script>' . PHP_EOL; $theme_text .= '<script type="text/javascript" src="ext/jquery/ui/jquery-ui-' . $jquery_ui_version . '.min.js"></script>' . PHP_EOL; $theme_text .= '<link rel="stylesheet" type="text/css" href="ext/jquery/ui/' . $theme_name . '/jquery-ui-' . $jquery_ui_version . '.min.css" />' . PHP_EOL; $oscTemplate->addBlock( $theme_text, $this->group ); } //// // Check whether the module is enabled public function isEnabled() { return $this->enabled; } //// // Check the module's status public function check() { return defined( 'MODULE_HEADER_TAGS_THEME_SWITCHER_STATUS' ); } //// // Install the module and check for correct installation of related files/directories public function install() { // Fix the module loading order to avoid jQuery conflicts $this->load_header_tags_first(); // Standard configuration install tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added ) values ( 'Version: " . $this->version . "', 'MODULE_HEADER_TAGS_THEME_SWITCHER_VERSION', '', '', '6', '0', '', 'tep_cfg_do_nothing(', 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 ('Enable Theme Switcher', 'MODULE_HEADER_TAGS_THEME_SWITCHER_STATUS', 'True', 'Do you want to be able to select a theme here?', '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_THEME_SWITCHER_SORT_ORDER', '1', 'Sort order of display. Lowest is displayed first.', '6', '2', now())" ); tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Jquery Version', 'MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_VERSION', '1.11.1', 'The version number of your Jquery module (e.g. 1.7.2).', '6', '3', now())" ); tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Jquery UI Version', 'MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_VERSION', '1.10.4', 'The version number of your Jquery UI module (e.g. 1.8.21).', '6', '4', 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 ('Theme', 'MODULE_HEADER_TAGS_THEME_SWITCHER_THEME', 'redmond', 'Select the theme that you want to use.', '6', '5', 'tep_cfg_pull_down_themes(', now())" ); // Special functions to check for missing files and version conflicts tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added ) values ( '', 'MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_TEST', '', '', '6', '7', 'tep_jquery_check', 'tep_cfg_do_nothing(', now() ) "); tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added ) values ( '', 'MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_TEST', '', '', '6', '8', 'tep_jquery_ui_check', 'tep_cfg_do_nothing(', now() ) "); tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added ) values ( '', 'MODULE_HEADER_TAGS_THEME_SWITCHER_THEME_TEST', '', '', '6', '9', 'tep_theme_check', 'tep_cfg_do_nothing(', now() ) "); tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added ) values ( '', 'MODULE_HEADER_TAGS_THEME_SWITCHER_THEME_VERSION_TEST', '', '', '6', '10', 'tep_theme_version_check', 'tep_cfg_do_nothing(', now() ) "); tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added ) values ( '', 'MODULE_HEADER_TAGS_THEME_SWITCHER_TEMPLATE_TOP_MODIFIED', '', '', '6', '11', 'tep_template_top_check', 'tep_cfg_do_nothing(', now() ) "); tep_db_query( "insert into " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added ) values ( '', 'MODULE_HEADER_TAGS_THEME_SWITCHER_LANGUAGE_FILE_TEST', '', '', '6', '12', 'tep_language_file_check', 'tep_cfg_do_nothing(', now() ) "); } //// // Uninstall the module public function remove() { tep_db_query( "delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } //// // Generate the keys array of constant names public function keys() { $keys = array(); $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_VERSION'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_STATUS'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_SORT_ORDER'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_VERSION'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_VERSION'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_THEME'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_TEST'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_TEST'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_THEME_TEST'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_THEME_VERSION_TEST'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_TEMPLATE_TOP_MODIFIED'; $keys[] = 'MODULE_HEADER_TAGS_THEME_SWITCHER_LANGUAGE_FILE_TEST'; return $keys; } //// // Force the header tags to load first, so the jQuery and jQuery UI code is available // to other scripts that load in the head section private function load_header_tags_first() { // If header_tags is not the first item on the list if( substr( TEMPLATE_BLOCK_GROUPS, 0, 11 ) != 'header_tags' ) { // Remove header_tags from wherever it is in the list $template_block_groups = str_replace( ';header_tags', '', TEMPLATE_BLOCK_GROUPS ); // And add header_tags back onto the front of the list $template_block_groups = 'header_tags;' . $template_block_groups; $sql_data_array = array( 'configuration_value' => $template_block_groups ); // Update the database with the fixed string tep_db_perform( TABLE_CONFIGURATION, $sql_data_array, 'update', "configuration_key = 'TEMPLATE_BLOCK_GROUPS'" ); } // if( substr } // function _load_header_tags_first } // end class ///////////////////////////////////////////////////////////////////////////////////////////////// // // The following are functions, not class methods // ///////////////////////////////////////////////////////////////////////////////////////////////// //// // Multi-level array sort function (From the PHP manual) if (!function_exists('array_msort')) { function array_msort( $array, $cols ) { $colarr = array (); foreach ($cols as $col => $order) { $colarr[$col] = array (); foreach ($array as $k => $row) { $colarr[$col]['_' . $k] = strtolower($row[$col]); } } $params = array (); foreach ($cols as $col => $order) { $params[] = & $colarr[$col]; $order = (array) $order; foreach ($order as $order_element) { //pass by reference, as required by php 5.3 $params[] = & $order_element; } } call_user_func_array('array_multisort', $params); $ret = array (); $keys = array (); $first = true; foreach ($colarr as $col => $arr) { foreach ($arr as $k => $v) { if ($first) { $keys[$k] = substr($k, 1); } $k = $keys[$k]; if (!isset ($ret[$k])) { $ret[$k] = $array[$k]; } $ret[$k][$col] = $array[$k][$col]; } $first = false; } return $ret; } // function array_msort } // if (!function_exists //// // Get a list of the files or directories in a directory if (!function_exists('tep_get_directory_list')) { function tep_get_directory_list( $directory, $file = true, $exclude = array() ) { $d = dir( $directory ); $list = array (); while ($entry = $d->read()) { if ($file == true) { // We want a list of files, not directories $parts_array = explode('.', $entry); // There may be more than one dot, so find the last one $last = count( $parts_array ) - 1; $extension = $parts_array[$last]; // Don't add files or directories that we don't want if( $entry != '.' && $entry != '..' && $entry != '.htaccess' && $extension != 'php') { if( !is_dir( $directory . "/" . $entry ) ) { $list[] = $entry; } } } else { // We want the directories and not the files if (is_dir($directory . "/" . $entry) && $entry != '.' && $entry != '..') { // && $entry != 'i18n' if (count($exclude) == 0 || !in_array($entry, $exclude)) { $list[] = array ( 'id' => $entry, 'text' => $entry ); } } } } // while ($entry $d->close(); return $list; } } //// // Generate a pulldown menu of the available themes if (!function_exists('tep_cfg_pull_down_themes')) { function tep_cfg_pull_down_themes( $theme_name, $key = '' ) { $themes_array = array (); $theme_directory = DIR_FS_CATALOG . 'ext/jquery/ui'; if (file_exists( $theme_directory ) && is_dir( $theme_directory ) ) { $name = ( ( $key ) ? 'configuration[' . $key . ']' : 'configuration_value' ); $exclude = array( 'i18n' ); $themes_array = tep_get_directory_list( $theme_directory, false, $exclude ); $themes_array = array_msort( $themes_array, array( 'id' => SORT_ASC ) ); $themes_array = array_values( $themes_array ); sort( $themes_array ); } return tep_draw_pull_down_menu( $name, $themes_array, $theme_name ); } } //// // Check whether the selected theme's directory exists if( !function_exists( 'tep_theme_check' ) ) { function tep_theme_check() { // The theme directory is hard-coded in the rest of osC, so... $theme_directory = DIR_FS_CATALOG . 'ext/jquery/ui'; if( file_exists( $theme_directory ) && is_dir( $theme_directory ) ) { // Exclude directories that are not themes $exclude = array( 'i18n' ); // Get an array of all of the theme directories $themes_array = tep_get_directory_list( $theme_directory, false, $exclude ); // Step through the themes and check for a match with the selected theme foreach( $themes_array as $theme ) { if( $theme['text'] == MODULE_HEADER_TAGS_THEME_SWITCHER_THEME ) { //The theme folder exists, so return success and quit return tep_image( DIR_WS_ICONS . 'tick.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_THEME_FOUND . '</span>'; break; } } } // if( file_exists // The theme was not found, so return an error message return tep_image( DIR_WS_ICONS . 'cross.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold; color:red;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_THEME_MISSING . '</span>'; } // function theme_check } // if( !function_exists //// // Check whether the selected jQuery file exists if( !function_exists( 'tep_jquery_check' ) ) { function tep_jquery_check() { // The jQuery directory is hard-coded in the rest of osC, so... $jquery_directory = DIR_FS_CATALOG . 'ext/jquery/'; if( file_exists( $jquery_directory ) && is_dir( $jquery_directory ) ) { // Get an array of all of the files in the directory $jquery_array = tep_get_directory_list( $jquery_directory ); // Step through the array and check for a match with the selected jQuery version foreach( $jquery_array as $jquery_file ) { if( $jquery_file == 'jquery-' . MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_VERSION . '.min.js' ) { //The jQuery file exists, so return success and quit return tep_image( DIR_WS_ICONS . 'tick.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_FOUND . '</span>'; break; } } } // if( file_exists // The jQuery file was not found, so return an error message return tep_image( DIR_WS_ICONS . 'cross.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold; color:red;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_MISSING . '</span>'; } // function tep_theme_check } // if( !function_exists //// // Check whether the selected jQuery UI file exists if( !function_exists( 'tep_jquery_ui_check' ) ) { function tep_jquery_ui_check() { // The jQuery UI directory is hard-coded in the rest of osC, so... $jquery_ui_directory = DIR_FS_CATALOG . 'ext/jquery/ui/'; if( file_exists( $jquery_ui_directory ) && is_dir( $jquery_ui_directory ) ) { // Get an array of all of the files in the directory $jquery_ui_array = tep_get_directory_list( $jquery_ui_directory ); // Step through the array and check for a match with the selected jQuery version foreach( $jquery_ui_array as $jquery_ui_file ) { if( $jquery_ui_file == 'jquery-ui-' . MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_VERSION . '.min.js' ) { //The jQuery file exists, so return success and quit return tep_image( DIR_WS_ICONS . 'tick.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_FOUND . '</span>'; break; } } } // if( file_exists // The jQuery file was not found, so return an error message return tep_image( DIR_WS_ICONS . 'cross.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold; color:red;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_MISSING . '</span>' . $jquery_directory; } // function theme_check } // if( !function_exists //// // Check whether the selected theme CSS file exists if( !function_exists( 'tep_theme_version_check' ) ) { function tep_theme_version_check() { // The jQuery UI directory is hard-coded in the rest of osC, so... $theme_directory = DIR_FS_CATALOG . 'ext/jquery/ui/' . MODULE_HEADER_TAGS_THEME_SWITCHER_THEME; if( file_exists( $theme_directory ) && is_dir( $theme_directory ) ) { // Get an array of all of the files in the theme directory $themes_array = tep_get_directory_list( $theme_directory ); // Step through the files and check for a match with the selected version of the CSS file foreach( $themes_array as $theme_css ) { if( $theme_css == 'jquery-ui-' . MODULE_HEADER_TAGS_THEME_SWITCHER_JQUERY_UI_VERSION . '.min.css' ) { //The correct version exists, so return success and quit return tep_image( DIR_WS_ICONS . 'tick.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_THEME_VERSION_FOUND . '</span>'; break; } } } // if( file_exists // The jQuery file was not found, so return an error message return tep_image( DIR_WS_ICONS . 'cross.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold; color:red;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_THEME_VERSION_MISSING . '</span>' . $jquery_directory; } // function theme_check } // if( !function_exists //// // Check whether includes/template_top.php has been modified/replaced if( !function_exists( 'tep_template_top_check' ) ) { function tep_template_top_check() { $filename = DIR_FS_CATALOG . DIR_WS_INCLUDES . 'template_top.php'; if( file_exists( $filename ) ) { // Read the file into an array, one line per element $file_array = file( $filename ); // Step through the files and check for a match with the selected version of the CSS file foreach ($file_array as $line) { // Check if the line matches one of the lines that should be removed if( trim( $line ) == '<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" />' || trim( $line ) == '<script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script>' || trim( $line ) == '<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script>' ) { // One or more lines exist, so return error and quit return tep_image( DIR_WS_ICONS . 'cross.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold; color:red;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_TEMPLATE_TOP_NOT_MODIFIED . '</span>' . $jquery_directory; break; } } } else { // The file was not found, so return an error return tep_image( DIR_WS_ICONS . 'cross.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold; color:red;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_TEMPLATE_TOP_NOT_MODIFIED . '</span>' . $jquery_directory; } // if( file_exists // The lines were not found in the file, so return a success message return tep_image( DIR_WS_ICONS . 'tick.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_TEMPLATE_TOP . '</span>'; } // function theme_check } // if( !function_exists MODULE_HEADER_TAGS_THEME_SWITCHER_TEMPLATE_TOP_MODIFIED //// // Check whether the language file for this module exists // We should only need to check the Admin language, so that is hardwired as $language if( !function_exists( 'tep_language_file_check' ) ) { function tep_language_file_check() { global $language; $language_file = DIR_FS_CATALOG . DIR_WS_LANGUAGES . $language . '/modules/header_tags/ht_theme_switcher.php'; if( file_exists( $language_file ) && is_file( $language_file ) ) { return tep_image( DIR_WS_ICONS . 'tick.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_LANGUAGE_FILE_FOUND . '</span>'; break; } // if( file_exists // The language file was not found, so return an error message return tep_image( DIR_WS_ICONS . 'cross.gif', '', '16', '16', 'style="vertical-align:middle;"' ) . ' <span style="vertical-align:middle; font-weight:bold; color:red;">' . MODULE_HEADER_TAGS_THEME_SWITCHER_LANGUAGE_FILE_MISSING . '</span>' . $jquery_directory; } // function tep_language_file_check } // if( !function_exists //// // Function to prevent boxes showing for the output-only test functions if( !function_exists( 'tep_cfg_do_nothing' ) ) { function tep_cfg_do_nothing() { return ''; } } //// // This should already exist in admin/includes/functions/general.php, but seems to be missing in some copies if( !function_exists( 'tep_get_languages' ) ) { function tep_get_languages() { $languages_query = tep_db_query("select languages_id, name, code, image, directory from " . TABLE_LANGUAGES . " order by sort_order"); while ($languages = tep_db_fetch_array($languages_query)) { $languages_array[] = array('id' => $languages['languages_id'], 'name' => $languages['name'], 'code' => $languages['code'], 'image' => $languages['image'], 'directory' => $languages['directory']); } return $languages_array; } } ?>
-
I found the problem: includes/modules/header_tags/ht_theme_switcher.php. I turned off, now the pictures are resized. But still if I will use the theme switcher, what is the problem ? And also can you indicate me, where I can resize the small images?
-
@@Rainer I will do so. But one thing I have to ask you; I was looking in the files from a virgin OSC 2.3.4 and there in the admin/includes/modules/ I can not find the module- heater_tag.php. Is that right so?