Jump to content

HTML in Catergory Description possible


Recommended Posts

I'm not usually one to ask for help however having done numerous searches on this site with people having the same problems of needing to use HTML in Category Description but no solution being found, could someone please create a mod or hack to enable this feature.

If this is not possible a workaround would be to create a CMS page and allow redirects to replace the clicked on page.

simple page
http://www.japanesecraftseu.co.uk/mise/category.php?id_category=5

needed page

[update - cms corrupted throughout entire website so page no longer exists, however the gist is the still the same]



I have tried using my cpanel however if I try to do this all pages redirect to
http://www.japanesecraftseu.co.uk/mise/category.php?id_category=5


I would appreciate any help in this.

Link to comment
Share on other sites

I added this code to AdminCategories.php and then WYSIWYG Editor (TinyMc) show up. But the problem, each times i click save button, only text is saved, not the html code. Can someone help me to solve this problem. Thank you.

// TinyMCE
       echo '
           [removed][removed]
           [removed]
               tinyMCE_GZ.init({
                   plugins : "contextmenu, directionality, media, paste, preview, safari",
                   themes : "advanced",
                   languages : "'.((!file_exists(PS_ADMIN_DIR.'/../js/tinymce/jscripts/tiny_mce/langs/'.$iso.'.js')) ? 'en' : $iso).'",
                   disk_cache : false,
                   debug : false
               });
           [removed]
           [removed]
               tinyMCE.init({
                   mode : "textareas",
                   plugins : "contextmenu, directionality, media, paste, preview, safari",
                   theme : "advanced",
                   language : "'.((!file_exists(PS_ADMIN_DIR.'/../js/tinymce/jscripts/tiny_mce/langs/'.$iso.'.js')) ? 'en' : $iso).'",
                   elements : "nourlconvert",
                   convert_urls : false,
                   theme_advanced_buttons1 : "bold, italic, underline, fontselect, fontsizeselect",
                   theme_advanced_buttons2 : "forecolor, backcolor, separator, justifyleft, justifycenter, justifyright, justifyfull, separator, bullist, numlist, separator, undo, redo, separator, link, unlink, separator, code",
                   theme_advanced_buttons3 : "",
                   theme_advanced_toolbar_location : "top",
                   theme_advanced_toolbar_align : "left",
                   theme_advanced_buttons3_add : "ltr,rtl,pastetext,pasteword,selectall",
                   theme_advanced_buttons1_add : "media,preview",
                   paste_create_paragraphs : false,
                   paste_create_linebreaks : false,
                   paste_use_dialog : true,
                   paste_auto_cleanup_on_paste : true,
                   paste_convert_middot_lists : false,
                   paste_unindented_list_class : "unindentedList",
                   paste_convert_headers_to_strong : true,
                   plugin_preview_width : "500",
                   plugin_preview_height : "600",
                   extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
               });';        
       echo '[removed]';

Link to comment
Share on other sites

  • 6 months later...
  • 1 month later...
  • 1 year later...
  • 2 weeks later...
×
×
  • Create New...