Thread: FAQ Manager

Results 1 to 10 of 369

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    298
    Plugin Contributions
    0

    help question Re: FAQ Manager

    Im having a problem with fckeditor when i try to list a new category im getting this error.

    Warning: Missing argument 1 for FCKeditor::__construct(), called in /home/dscott19/public_html/dealz-r-us/admin/includes/modules/faq/collect_info.php on line 198 and defined in /home/dscott19/public_html/dealz-r-us/admin/includes/fckeditor_php5.php on line 42

    Fatal error: Call to undefined method FCKeditor::CreateFCKeditor() in /home/dscott19/public_html/dealz-r-us/admin/includes/modules/faq/collect_info.php on line 200

    Can anyone help me solve this problem.

    Thank you

  2. #2
    Join Date
    Apr 2005
    Posts
    298
    Plugin Contributions
    0

    Default Re: FAQ Manager

    I have resolved the problem for the with FCKeditor here is the solution for those having the problem find in admin/includes/modules/faq/collect_info.php.

    Find:

  3. #3
    Join Date
    Apr 2005
    Posts
    298
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Quote Originally Posted by dscott1966 View Post
    I have resolved the problem for the with FCKeditor here is the solution for those having the problem find in admin/includes/modules/faq/collect_info.php.

    Find:
    <?php if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") {
    // if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") require(DIR_WS_INCLUDES.'fckeditor.php');
    $oFCKeditor = new FCKeditor ;
    $oFCKeditor->Value = (isset($faqs_answer[$languages[$i]['id']])) ? stripslashes($faqs_answer[$languages[$i]['id']]) : zen_get_faqs_answer($pInfo->faqs_id, $languages[$i]['id']) ;
    $oFCKeditor->CreateFCKeditor( 'faqs_answer[' . $languages[$i]['id'] . ']', '99%', '230' ) ; //instanceName, width, height (px or %)
    } else { // using HTMLAREA or just raw "source"

    echo zen_draw_textarea_field('faqs_answer[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', (isset($faqs_answer[$languages[$i]['id']])) ? stripslashes($faqs_answer[$languages[$i]['id']]) : zen_get_faqs_answer($pInfo->faqs_id, $languages[$i]['id'])); //,'id="'.'faqs_description' . $languages[$i]['id'] . '"');

  4. #4
    Join Date
    Apr 2005
    Posts
    298
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Sorry for the double post here you go on how to fix the FCKeditor problem:

    Find in: admin/includes/modules/faq/collect_info.php

    <?php if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") {
    // if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") require(DIR_WS_INCLUDES.'fckeditor.php');
    $oFCKeditor = new FCKeditor ;
    $oFCKeditor->Value = (isset($faqs_answer[$languages[$i]['id']])) ? stripslashes($faqs_answer[$languages[$i]['id']]) : zen_get_faqs_answer($pInfo->faqs_id, $languages[$i]['id']) ;
    $oFCKeditor->CreateFCKeditor( 'faqs_answer[' . $languages[$i]['id'] . ']', '99%', '230' ) ; //instanceName, width, height (px or %)
    } else { // using HTMLAREA or just raw "source"

    echo zen_draw_textarea_field('faqs_answer[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', (isset($faqs_answer[$languages[$i]['id']])) ? stripslashes($faqs_answer[$languages[$i]['id']]) : zen_get_faqs_answer($pInfo->faqs_id, $languages[$i]['id'])); //,'id="'.'faqs_description' . $languages[$i]['id'] . '"');

    and replace with:

    <?php if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") {
    // if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") require(DIR_WS_INCLUDES.'fckeditor.php');
    $oFCKeditor = new FCKeditor ('products_description[' . $languages[$i]['id'] . ']') ; // problem sold
    $oFCKeditor->Value = (isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']) ;
    // $oFCKeditor->Create() ;
    $oFCKeditor->Width = '99%' ;
    $oFCKeditor->Height = '300' ;
    // $output = $oFCKeditor->CreateHtml() ; echo $output;
    $oFCKeditor->Create( 'products_description[' . $languages[$i]['id'] . ']' ) ; //instanceName, width, height (px or %)


    } else { // using HTMLAREA or just raw "source"

    echo zen_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', (isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id'])); //,'id="'.'products_description' . $languages[$i]['id'] . '"');
    } ?>

    There will be two places in the file that this code needs to placed. Hope this works for you.

  5. #5
    Join Date
    Nov 2005
    Posts
    51
    Plugin Contributions
    0

    Default Re: FAQ Manager

    thank you, the above FCKeditor fix works like charm~

  6. #6
    Join Date
    Apr 2005
    Posts
    298
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Quote Originally Posted by keenskin View Post
    thank you, the above FCKeditor fix works like charm~
    Your welcome

  7. #7
    Join Date
    Apr 2008
    Location
    London
    Posts
    25
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Little question.

    When I click to category from the side box it sending me to faq_all. Is it possible to change something to get category requred if you click to category but not all faq listings.

    Thank you

  8. #8
    Join Date
    May 2008
    Posts
    261
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Quote Originally Posted by dscott1966 View Post
    Sorry for the double post here you go on how to fix the FCKeditor problem:

    Find in: admin/includes/modules/faq/collect_info.php

    <?php if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") {
    // if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") require(DIR_WS_INCLUDES.'fckeditor.php');
    $oFCKeditor = new FCKeditor ;
    $oFCKeditor->Value = (isset($faqs_answer[$languages[$i]['id']])) ? stripslashes($faqs_answer[$languages[$i]['id']]) : zen_get_faqs_answer($pInfo->faqs_id, $languages[$i]['id']) ;
    $oFCKeditor->CreateFCKeditor( 'faqs_answer[' . $languages[$i]['id'] . ']', '99%', '230' ) ; //instanceName, width, height (px or %)
    } else { // using HTMLAREA or just raw "source"

    echo zen_draw_textarea_field('faqs_answer[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', (isset($faqs_answer[$languages[$i]['id']])) ? stripslashes($faqs_answer[$languages[$i]['id']]) : zen_get_faqs_answer($pInfo->faqs_id, $languages[$i]['id'])); //,'id="'.'faqs_description' . $languages[$i]['id'] . '"');

    and replace with:

    <?php if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") {
    // if (HTML_EDITOR_PREFERENCE=="FCKEDITOR") require(DIR_WS_INCLUDES.'fckeditor.php');
    $oFCKeditor = new FCKeditor ('products_description[' . $languages[$i]['id'] . ']') ; // problem sold
    $oFCKeditor->Value = (isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']) ;
    // $oFCKeditor->Create() ;
    $oFCKeditor->Width = '99%' ;
    $oFCKeditor->Height = '300' ;
    // $output = $oFCKeditor->CreateHtml() ; echo $output;
    $oFCKeditor->Create( 'products_description[' . $languages[$i]['id'] . ']' ) ; //instanceName, width, height (px or %)


    } else { // using HTMLAREA or just raw "source"

    echo zen_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', (isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id'])); //,'id="'.'products_description' . $languages[$i]['id'] . '"');
    } ?>

    There will be two places in the file that this code needs to placed. Hope this works for you.
    Hello, Dscoot,

    really appreciated for your update.
    tried your new code but unfortunately still not fix my problem.
    following is the error code. thank you very much. any suggestions?
    HTML Code:
    The requested URL /FCKeditor/fckeditor.html was not found on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

 

Similar Threads

  1. FAQ manager
    By louisapple in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 8 Apr 2009, 03:08 PM
  2. FAQ Manager error
    By tpascubarat in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Jan 2008, 12:48 PM
  3. FAQ Manager ?
    By winky3d in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 26 Jul 2007, 02:33 PM
  4. Faq Manager Character Limit
    By jaywhy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 May 2007, 05:28 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