Page 1 of 2 12 LastLast
Results 1 to 10 of 130

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default FAQ Module [Support]

    Since there isn't really a proper support thread for the FAQ Module, I thought I'd start one I've updated the mod to be compatible with Zen Cart v1.5 and because I'm not fabulous with code, there are most likely going to be issues with it. If you have issues, I'll try my best to fix 'em - just let me know.

  2. #2
    Join Date
    Sep 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: FAQ Module [Support]

    I get this error:

    Code:
    PHP Fatal error:  Call to undefined function  zen_start_featured_faqs() in /includes/init_includes/init_faq.php on line 103
    It looks defined in includes/functions/featured_faqs.php which exists on my site, but not sure if or how that page is being included. Ideas? Thanks!

  3. #3
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default Re: FAQ Module [Support]

    Quote Originally Posted by adamells View Post
    I get this error:

    Code:
    PHP Fatal error:  Call to undefined function  zen_start_featured_faqs() in /includes/init_includes/init_faq.php on line 103
    It looks defined in includes/functions/featured_faqs.php which exists on my site, but not sure if or how that page is being included. Ideas? Thanks!
    Whoops! On includes/init_includes/init_faq.php, at the very bottom right above
    PHP Code:
      zen_start_featured_faqs();
      
    zen_expire_featured_faqs(); 
    add require(DIR_WS_FUNCTIONS . 'featured_faqs.php'); so that the whole block looks like
    PHP Code:
      require(DIR_WS_FUNCTIONS 'featured_faqs.php');
      
    zen_start_featured_faqs();
      
    zen_expire_featured_faqs(); 
    I forgot to add the call to incude featured_faq.php.

  4. #4
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default Re: FAQ Module [Support]

    And I just found another error - this time in the admin when you try to add a faq. When you try to add a faq, the faq will be added, but you'll end up with a white screen instead of being redirected back to the faq category.

    To fix it, go to admin/includes/modules/faq/update_info.php and remove this block of code
    PHP Code:
    /* Re-Post all POST'ed variables */
          
    reset($_POST);
          while (list(
    $key$value) = each($_POST)) {
            if (!
    is_array($_POST[$key])) {
              echo 
    zen_draw_hidden_field($keyhtmlspecialchars(stripslashes($value)));
            }
          }

          
    $languages zen_get_languages();
          for (
    $i=0$n=sizeof($languages); $i<$n$i++) {
            echo 
    zen_draw_hidden_field('faqs_name[' $languages[$i]['id'] . ']'htmlspecialchars(stripslashes($faqs_name[$languages[$i]['id']])));
            echo 
    zen_draw_hidden_field('faqs_answer[' $languages[$i]['id'] . ']'htmlspecialchars(stripslashes($faqs_answer[$languages[$i]['id']])));
            } 
    I'll submit an updated working version tonight.

  5. #5
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default Re: FAQ Module [Support]

    A working FAQ Module fileset has been submitted.

    Updates include bugfixes to admin/includes/modules/faq/update_faq.php and includes/init_includes/init_faq.php as well as changing the file name includes/languages/english/extra_definitions/faq_categories.php to faq_manager.php and adding a definition for a FAQ link.

    I also included instructions on how to add a link to your FAQs.

  6. #6
    Join Date
    Sep 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: FAQ Module [Support]

    Quote Originally Posted by kamelion0927 View Post
    A working FAQ Module fileset has been submitted.

    I also included instructions on how to add a link to your FAQs.
    I made the changes posted in this thread and fixed the issue straightaway. Thank you for your fast work!
    I do not see an updated module for download, do they need to be approved by a moderator before they show up?

    I'm not sure how to make the FAQ actually show up - I turned on the Layout Box and successfully created a few categories and articles but nothing appears on the site. I assume I'm missing something that's in your updated instructions...

  7. #7
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default Re: FAQ Module [Support]

    Quote Originally Posted by adamells View Post
    I made the changes posted in this thread and fixed the issue straightaway. Thank you for your fast work!
    I do not see an updated module for download, do they need to be approved by a moderator before they show up?

    I'm not sure how to make the FAQ actually show up - I turned on the Layout Box and successfully created a few categories and articles but nothing appears on the site. I assume I'm missing something that's in your updated instructions...
    All mods and mod updates have to be approved before they are available for download - it hasn't been taking very long for the mods to be approved so the update should be available soon.

    Turning on the faq category sidebox only makes the sidebox visable - to see the faq page you need to add a link to it by adding the code below to either your header, footer, information sidebox or wherever you want the link.

    PHP Code:
    <a href="<?php echo zen_href_link(FILENAME_FAQS'''NONSSL'); ?>"><?php echo BOX_INFORMATION_FAQS?>
    You will also need to add

    PHP Code:
    define('BOX_INFORMATION_FAQS''FAQs'); 
    to includes/languages/english/extra_definitions/faq_categories.php.

    That link will take you to yoursite.com/index.php?main_page=faqs_all which is where you'll see your faqs.

    I hope that makes sense...

    If you want a working example of the remodeled FAQ Module, I have it working on burningbutterfly.com. In the footer of that site, click on the "Help Center" link.
    Last edited by kamelion0927; 27 Sep 2012 at 04:25 AM.

  8. #8
    Join Date
    May 2008
    Location
    Amarillo, TX
    Posts
    40
    Plugin Contributions
    0

    Default Re: FAQ Module [Support]

    Hi, I just installed this module on Zen Cart 1.5.5 since there did not appear to be any modifications to core files, but I noticed one problem. I added my first questions using the CKEditor and saved it, but when I view the question on the website it is showing me the HTML coding syntax like <u>, <p>, <li>, etc. I turned off the HTML editor and it still does it. Do you have any idea how to fix this? I really would like to use this module! Thanks in advance.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: FAQ Module [Support]

    It's probably because the v155 sanitizer is likely treating those fields as risky because the plugin hasn't told it which fields it's willing to trust.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: FAQ Module [Support]

    I've updated the plugin to v2.4 which now includes /your_admin_folder/includes/extra_datafiles/faq_manager_sanitizer.php to let it work with ZC v1.5.5
    Last edited by DrByte; 3 Mar 2017 at 06:45 PM.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. FAQ Module
    By raunharman in forum General Questions
    Replies: 2
    Last Post: 3 Sep 2009, 07:36 AM
  2. FAQ Manager Module Support *need help*
    By hamspots in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 31 Jan 2009, 04:30 PM
  3. FAQ Module
    By lizar5- in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Sep 2007, 10:44 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR