Page 1 of 13 12311 ... LastLast
Results 1 to 10 of 130
  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
    Sep 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: FAQ Module [Support]

    Very helpful, I made a sidebar link to the FAQ section and then the categories appear. Starting to populate articles now. I'll watch for the update but I'm up and running. Thanks again for your work, not just with me but updating the module... it does seem to do exactly what want.

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

    Default Re: FAQ Module [Support]

    Glad I could help

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

    Default Re: FAQ Module [Support]

    If you want to adjust your faq metatags so that the faq question is the title and the faq answer is the description, add

    PHP Code:
      //BOF FAQ Metatags
        
    case (strstr($_GET['main_page'], 'faq_info')):
        
    $sql"select pd.faqs_name, p.faqs_id, pd.faqs_answer
                                  from " 
    TABLE_FAQS " p, " TABLE_FAQS_DESCRIPTION " pd
                                  where p.faqs_id = '" 
    . (int)$_GET['faqs_id'] . "'
                                  and p.faqs_id = pd.faqs_id
                                  and pd.language_id = '" 
    . (int)$_SESSION['languages_id'] . "'";
        
    $faq_info_metatags $db->Execute($sql);
        
    $meta_faqs_name $faq_info_metatags->fields['faqs_name'];
        
    $meta_faqs_name zen_clean_html($meta_faqs_name);
        
    $meta_faqs_answer zen_truncate_paragraph(strip_tags(stripslashes($faq_info_metatags->fields['faqs_answer'])), MAX_META_TAG_DESCRIPTION_LENGTH);
        
    $meta_faqs_answer zen_clean_html($meta_faqs_answer);

        
    define('META_TAG_TITLE'str_replace('"','',$meta_faqs_name PRIMARY_SECTION TITLE TAGLINE));
        
    define('META_TAG_DESCRIPTION'str_replace('"',''$meta_faqs_answer ' '));
        
    define('META_TAG_KEYWORDS'str_replace('"','',$meta_faqs_name METATAGS_DIVIDER KEYWORDS));
        break;
        
    //EOF FAQ Metatags 
    to includes/modules/YOUR_TEMPLATE/meta_tags.php just above the line

    PHP Code:
    // meta tags override due to 404, missing products_id, cPath or other EOF issues 

 

 
Page 1 of 13 12311 ... 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