Jump to content

JustinS

Members
  • Content count

    136
  • Joined

  • Last visited

2 Followers

Profile Information

  • Real Name
    Justin Sisson
  1. JustinS

    CKEditor install instructions wrong.

    Sounds good will do!
  2. JustinS

    CKEditor install instructions wrong.

    Oh my God I'm such a retard. That was it. LOL Copying these instructions for the next site so I don't derp again. Thanks a lot. You're always super helpful and the input you provide on threads here is greatly appreciated - not only by me I'm sure, many others as well. @@joli1811
  3. JustinS

    CKEditor install instructions wrong.

    Sure didn't, I had it in /admin only, someone told me that admin/ext is if you want your customers to be able to use it, is that wrong? I'll try to install again for like the 10th time with it in ext... think I've already tried though.
  4. JustinS

    CKEditor install instructions wrong.

    @@joli1811 Now I have it added, with ckeditor turned on in "my store" in the administration side and there's no error, but nothing is changed. It's still default. Here is my code. nothing changed in template_top.php: <?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 } ?> </head> and changes to html_output.php: //// // Output a form textarea field // The $wrap parameter is no longer used in the core xhtml template function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { global $HTTP_GET_VARS, $HTTP_POST_VARS; $field = '<textarea name="' . tep_output_string($name) . '" id="' . tep_output_string($name) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; 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>'; return $field; } Gosh I need to get this added so bad =X I'm out of ideas to make it work personally
  5. JustinS

    CKEditor install instructions wrong.

    @@joli1811 Ok I just tried it. I will link my changes. In template_top.php 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 } ?> </head> notice its right above the </head> Then in html_output.php changed: function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { global $HTTP_GET_VARS, $HTTP_POST_VARS; to: $field = '<textarea name="' . tep_output_string($name) . '" id="' . tep_output_string($name) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; { global $HTTP_GET_VARS, $HTTP_POST_VARS; Is that the correct way to add that in the html_output.php file? If so, I have an error when I go to my /admin and try to edit a product. it shows: Products Description: Fatal error: Call to undefined function tep_draw_textarea_field() in/home/content/example/example/html/mystore/admin/categories.php on line 573 I think I am adding it wrong in the template_top, when I replace the code with the original, I don't get any error. Also, on categories.php on line 573, the line only has a } on it. Thanks again.
  6. JustinS

    CKEditor install instructions wrong.

    With your way I don't have to mess with categories.php at all? I will try this when I get home from my day job, hope it works! Thanks as always joli you're awesome =D
  7. JustinS

    CKEditor install instructions wrong.

    Still haven't figured out how to code this to work with what I have =X
  8. JustinS

    CKEditor install instructions wrong.

    Hmm okay I think i found it, I added the <script type="text/javascript" src="ckeditor/ckeditor.js"></script> after <script type="text/javascript" src="includes/general.js"></script> And then I found what I'm supposed to look for here in categories.php: <td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td> If I replace it with tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),' class="ckeditor"'); It gives an error in my /admin/categories side. How can I integrate?
  9. JustinS

    CKEditor install instructions wrong.

    @@Chris This is the closest thing to the first code given: <script type="text/javascript" src="includes/general.js"></script> It's script type though instead of script language... The second piece it asks you to change is no where near anywhere in my admin/categories.php... it doesn't even have anything that has tep_draw_textarea_field in the entire file
  10. I'm just wanting to install CKEditor. I've had it before and ran in to this problem, and don't remember where I obtained the correct instructions for 2.3.1. Here's the instructions I have: Step 1 ------- Go to ckeditor.com and download the latest Editor Release (CK Editor, which has superseded FCK Editor)... _______ Step 2. ------- Unzip it all, then upload the fckeditor folder and all it's contents to your admin directory. _______ Step 3. ------- Amend /public_html/admin/includes/template_top.php __________ FIND THIS: ---------- <script language="javascript" src="includes/general.js"></script> _____________ ADD AFTER IT: ------------- <script type="text/javascript" src="ckeditor/ckeditor.js"></script> _______ Step 4. ------- Amend /public_html/admin/categories.php __________ FIND THIS: ---------- tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ___________ CHANGE FOR ----------- tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),' class="ckeditor"'); _______ Step 5. ------- Upload it and refresh the category (prodcut adding/editing) page. You should see the newly installed Editor. Enjoy! Neither of the codes it tells you to find to replace exist in either of those files. Anyone have the correct install for this? Addon is here: http://addons.oscommerce.com/info/7112
  11. JustinS

    USPS Addon, choices?

    Thanks a lot a.forever. Downloaded and going to install soon.
  12. JustinS

    USPS Addon, choices?

    im running 2.3.1
  13. JustinS

    USPS Addon, choices?

    Just wondering what the best USPS addon for using product weights to calculate shipping cost based on area/weight is? If someone could link me to it, it would be super amazing and I'd really appreciate very very much. Thank youuu a lot.
  14. JustinS

    [Contribution] CKEditor [wyswyg]

    I have 2.3.1. I can NOT figure out how to get this addon to work at all... One of the downloads has instructions... and then the "full" download doesn't give you any information whatsoever. How can I get this working with 2.3.1? Does anyone have any sort of instructions and know which one I need to download for it? Wasting so much time with this.
  15. What causes easy populate to not properly place products being added in the folders that are supposed to be created when uploading the easy populate file? When I upload the easy pop file with 700 products on it, it adds about 3 or so folders each time and places some of the products in them, but the rest are just created and dumped without being in any folder at all. Any help would be greatly appreciated. Thank you.
×