Jump to content

AtouchToomuch

Members
  • Content count

    4
  • Joined

  • Last visited

Everything posted by AtouchToomuch

  1. AtouchToomuch

    Header Tags SEO

    Solved. As suspected, the added code to the /admin/includes/template_top.php from the newest CKEditor contribution forces ALL text areas to utilize the WYSIWYG editor, and overides the configuration options defined in the Header Tags SEO contribution. The solution is to add only two lines from the CKEditor contribution to the template_top.php file just before the </head> tag: <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/ckeditor.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/adapters/jquery.js'); ?>"></script> and NOT to add the function definition called for by the CKEditor install instructions. The complete modified catalog/admin/includes/template_top.php file follows: - Ed <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License MODIFIED FOR BOTH CKEditor AND Header Tags SEO contributions */ ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="robots" content="noindex,nofollow"> <title><?php echo TITLE; ?></title> <base href="<?php echo HTTP_SERVER . DIR_WS_ADMIN; ?>" /> <!--[if IE]><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]--> <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.6.css'); ?>"> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.4.2.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.6.min.js'); ?>"></script> <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/i18n/jquery.ui.datepicker-' . JQUERY_DATEPICKER_I18N_CODE . '.js'); ?>"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script type="text/javascript" src="includes/general.js"></script> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/ckeditor.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/adapters/jquery.js'); ?>"></script> </head> <body> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <?php if (tep_session_is_registered('admin')) { include(DIR_WS_INCLUDES . 'column_left.php'); } else { ?> <style> #contentText { margin-left: 0; } </style> <?php } ?> <div id="contentText">
  2. AtouchToomuch

    Header Tags SEO

    You wrote (6051) "I haven't tried CKEditor with 2.3 and Header tags but I can't see why it would be different than in a different version. A textarea can only use the editor if the code for that textarea has been changed and Header tags doesn't have that code in all of the boxes. So you've either made a mistake or this is something different about your version of CKeditor that is causing it. I suggest replacing your categories.php file with the included one, enabling the editor option and see if it works correctly. if it does, then the problem is in that file." Using the included categories.php made no change in the behavior of the program . . but in checking further it seems as though the CKEditor implementation methodology changed with this version. In particular, in the <body> section of admin/includes/template_top.php (following the HT SEO code) the following code gets added: <?php if (!defined('USE_CKEDITOR_ADMIN_TEXTAREA')) { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, set_function) values ('', 'Use CKEditor', 'USE_CKEDITOR_ADMIN_TEXTAREA','true','Use CKEditor for WYSIWYG editing of textarea fields in admin',1,99,now(),'tep_cfg_select_option(array(\'true\', \'false\'),' )"); define ('USE_CKEDITOR_ADMIN_TEXTAREA','true'); } if (USE_CKEDITOR_ADMIN_TEXTAREA == "true") { ?> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/ckeditor.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/adapters/jquery.js'); ?>"></script> <script type="text/javascript"> $(function() { var $editors = $('textarea'); if ($editors.length) { $editors.each(function() { var editorID = $(this).attr("id"); var instance = CKEDITOR.instances[editorID]; if (instance) { CKEDITOR.remove(instance); } CKEDITOR.replace(editorID); }); } }); </script> <?php } ?> Although I am by no means proficient in php, I believe this added section supersedes the configuration options defined in the HT SEO sections and forces the use of CKEditor if it is enabled in it's configuration option. Having said that, I'm at a loss to determine how to proceed from here.... The actual problem I'm dealing with is that when CKEditor is allowed to manage the tags, it includes some HTML formatting codes in the tag, resulting in lines like: <meta name="Description" content="Fantasy Outfits - - _p_Head Detective sexy cop costume_/p_" > Any assistance you could offer would be appreciated. Thanks, Ed
  3. AtouchToomuch

    Header Tags SEO

    I had a similar issue, it turned out to be a error in my catgegories.php file from where I pasted in a change. I found it easily by doing a text search (using a program called effective file search) of all files looking for ?>?> It found it right away!
  4. AtouchToomuch

    Header Tags SEO

    HELP (Please). I'm running OSc 2.3.1 with both HT SEO and CKEditor. The objective is to disable CKEditor for Meta tags (in product add/edit) but leave it active for product descriptions. When I set HT SEO Editor Type as "No Editor", all text boxes on the page use the CKEditor. When I set HT SEO Editor Type as "CKEditor", I have NO text boxes of any kind. As the page begins to load, I can see the top text box briefly flash, and quickly disappear. I've checked the categories.php many times, but to no avail. Any assistance or thoughts would be greatly appreciated. Thanks, Ed
×