Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2013
    Location
    United States
    Posts
    88
    Plugin Contributions
    0

    Default textarea fields problem

    Dear all zen brothers.....

    after install Ck editor. in all textarea converted graphic edit system.. even Meta tag too....

    in (meta tag title) coz this field with zen_draw_input_field....

    i want remove graphic edit system from my Meta Tag Keywords:

    my question is how can edit .... zen_draw_textarea_field to zen_draw_input_field..

    here is two php code....

    Code:
      <tr>
                <td class="main"valign="top"><?php echo TEXT_META_TAGS_TITLE; ?>&nbsp;</td>
                <td class="main">
                  <?php echo zen_draw_input_field('metatags_title[' . $languages[$i]['id'] . ']', htmlspecialchars(isset($metatags_title[$languages[$i]['id']]) ? stripslashes($metatags_title[$languages[$i]['id']]) : zen_get_metatags_title($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_META_TAGS_PRODUCTS_DESCRIPTION, 'metatags_title', '150', false)); //,'id="'.'metatags_title' . $languages[$i]['id'] . '"');?>
                </td>
              </tr>
    Code:
    <tr>
                <td class="main"valign="top"><?php echo TEXT_META_TAGS_KEYWORDS; ?>&nbsp;</td>
                <td class="main">
                  <?php echo zen_draw_textarea_field('metatags_keywords[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', htmlspecialchars((isset($metatags_keywords[$languages[$i]['id']])) ? stripslashes($metatags_keywords[$languages[$i]['id']]) : zen_get_metatags_keywords($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)); //,'id="'.'metatags_keywords' . $languages[$i]['id'] . '"'); ?>
                </td>
              </tr>
    Click image for larger version. 

Name:	zn.jpg 
Views:	222 
Size:	30.6 KB 
ID:	13991

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ck editor Problem

    So, is this a question or a solution? It looks like you have figured out how to disable the ckeditor by changing the text area to an input field, otherwise I thought there were some other methods to disable options on various pages and fields.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Oct 2013
    Location
    United States
    Posts
    88
    Plugin Contributions
    0

    Default Re: Ck editor Problem

    i can't figured out ..if you share some other methods. it will be appreciated

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ck editor Problem

    Quote Originally Posted by crixus View Post
    i can't figured out ..if you share some other methods. it will be appreciated
    Changing the command from zen_draw_textarea_field to zen_draw_input_field didn't work?

    Otherwise, while in the editor if you select the source button, everything is entered without extra html characters.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Apr 2014
    Location
    Bronx, New York, United States
    Posts
    83
    Plugin Contributions
    0

    Default Re: Ck editor Problem

    i got same


    problem here

  6. #6
    Join Date
    Oct 2013
    Location
    United States
    Posts
    88
    Plugin Contributions
    0

    Default Re: Ck editor Problem

    Quote Originally Posted by mc12345678 View Post
    Changing the command from zen_draw_textarea_field to zen_draw_input_field didn't work?

    Otherwise, while in the editor if you select the source button, everything is entered without extra html characters.
    ya i did......... but field are too small... can't make it large... please take a look with pic..

    Code:
    <?php echo zen_draw_input_field('metatags_keywords[' . $languages[$i]['id'] . ']', (isset($metatags_keywords[$languages[$i]['id']])) ? stripslashes($metatags_keywords[$languages[$i]['id']]) : zen_get_metatags_keywords($pInfo->products_id, $languages[$i]['id']),'id="ekeyBann" onKeyUp="toCount(\'ekeyBann\',\'keyBann\',\'{CHAR} characters left\',874);"'); //,'id="'.'metatags_keywords' . $languages[$i]['id'] . '"'); ?>
    Click image for larger version. 

Name:	zn2.jpg 
Views:	104 
Size:	8.1 KB 
ID:	13992

  7. #7
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ck editor Problem

    Quote Originally Posted by crixus View Post
    ya i did......... but field are too small... can't make it large... please take a look with pic..

    Code:
    <?php echo zen_draw_input_field('metatags_keywords[' . $languages[$i]['id'] . ']', (isset($metatags_keywords[$languages[$i]['id']])) ? stripslashes($metatags_keywords[$languages[$i]['id']]) : zen_get_metatags_keywords($pInfo->products_id, $languages[$i]['id']),'id="ekeyBann" onKeyUp="toCount(\'ekeyBann\',\'keyBann\',\'{CHAR} characters left\',874);"'); //,'id="'.'metatags_keywords' . $languages[$i]['id'] . '"'); ?>
    Click image for larger version. 

Name:	zn2.jpg 
Views:	104 
Size:	8.1 KB 
ID:	13992
    In the area that has: 'id="ekeyBann" onKeyUp="toCount(\'ekeyBann\',\'keyBann\',\'{CHAR} characters left\',874)

    Need to tell the input field how many columns and rows that you want the field to have. I didn't look into the code that creates the field, but under standard html if you have: size="x" then the input field will have a single row of text that is visible to the size of the value of. X in number of characters. There are other examples on the internet,but in this configuration, basically there is one row of data being entered. I thought I saw a wrap around option, that would allow the field to be shown as multiple lines, but really only be one line of text wrapperd around the screen.

    So in that area could enter 'size="20" id="ekeyBann" onKeyUp="toCount(\'ekeyBann\',\'keyBann\',\'{CHAR} characters left\',874)
    And should have a text input field with 20 characters. For an example. Otherwise suggest looking into how to disable ckeditor on that one page. It's possible, but I don't recall how at the moment. May need to wrap the javascript in the header so thatit looks at the current page and if it is this page to not load it. But I thought ckeditor had more controls in the setup than that.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Oct 2013
    Location
    United States
    Posts
    88
    Plugin Contributions
    0

    Default Re: Ck editor Problem

    Quote Originally Posted by mc12345678 View Post
    In the area that has: 'id="ekeyBann" onKeyUp="toCount(\'ekeyBann\',\'keyBann\',\'{CHAR} characters left\',874)

    Need to tell the input field how many columns and rows that you want the field to have. I didn't look into the code that creates the field, but under standard html if you have: size="x" then the input field will have a single row of text that is visible to the size of the value of. X in number of characters. There are other examples on the internet,but in this configuration, basically there is one row of data being entered. I thought I saw a wrap around option, that would allow the field to be shown as multiple lines, but really only be one line of text wrapperd around the screen.

    So in that area could enter 'size="20" id="ekeyBann" onKeyUp="toCount(\'ekeyBann\',\'keyBann\',\'{CHAR} characters left\',874)
    And should have a text input field with 20 characters. For an example. Otherwise suggest looking into how to disable ckeditor on that one page. It's possible, but I don't recall how at the moment. May need to wrap the javascript in the header so thatit looks at the current page and if it is this page to not load it. But I thought ckeditor had more controls in the setup than that.
    BOss its work....... Thanks a lot and get ready for coffee :)....

    Brother one more question.... this page is.. modules/product/collect_info_metatags.php ... its update and work fine.. i would like to no ... should i need to that change on other page? mean directory? or its ok?

  9. #9
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ck editor Problem

    Quote Originally Posted by crixus View Post
    BOss its work....... Thanks a lot and get ready for coffee :)....

    Brother one more question.... this page is.. modules/product/collect_info_metatags.php ... its update and work fine.. i would like to no ... should i need to that change on other page? mean directory? or its ok?
    Would need to do the same thing for each product type (ie. Document, document product, etc.) If that is what you are asking. But don't just copy the file(s), make the change(s) to each individual file necessary. By default install there are usually 5 product types, each has it's own directory like what you identified. Some may use a default file, while others have an override.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Problem adding <textarea> to ezpages
    By pjb923 in forum Basic Configuration
    Replies: 3
    Last Post: 20 Oct 2008, 06:51 PM
  2. Login Box Fields Problem
    By lhhgbh in forum Addon Templates
    Replies: 1
    Last Post: 18 Jan 2007, 02:13 AM
  3. problem with tell-a-friend page in IE - textarea overlap
    By tbrides in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Dec 2006, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg