Page 1 of 3 123 LastLast
Results 1 to 10 of 130

Hybrid View

  1. #1
    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 

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

    Default Re: FAQ Module [Support]

    Where you added:"DIR_WS_FUNCTIONS" to read: require(DIR_WS_FUNCTIONS . 'featured_faqs.php');
    zen_start_featured_faqs();
    zen_expire_featured_faqs();

    Then you changed to this in version 2.1 to read:
    require(DIR_WS_CLASSES . 'faq_category_tree.php');

    require(DIR_WS_CLASSES . 'featued_faqs.php');
    zen_start_featured_faqs();
    Add a r to "featued_faqs.php to read "featured_faqs.php"
    zen_expire_featured_faqs();
    This should get you back up and running .. This file is located at includes/init_includes/init_faq.php

  3. #3
    Join Date
    Sep 2012
    Posts
    7
    Plugin Contributions
    0

    Idea or Suggestion Re: FAQ Module [Support]

    Also "DIR_WS_CLASSES" should be changed to: "DIR_WS_FUNCTIONS" to read:


    require(DIR_WS_FUNCTIONS . 'featured_faqs.php');
    zen_start_featured_faqs();
    zen_expire_featured_faqs();

    I made the changes to this file and FAQ 2.1 is up and running!!! Praise the Lord!

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

    Default Re: FAQ Module [Support]

    And yet another issue (I will get these all worked out one day, I promise :). In includes/init_includes/init_faq.php, remove this block of code located on/about line 18 so that your category page will work

    PHP Code:
    /**
     * process all $_GET terms
     */
      
    $strictReplace '[<>\']';
      
    $unStrictReplace '[<>]';
      if (isset(
    $_GET) && count($_GET) > 0) {
        foreach(
    $_GET as $key=>$value){
          if(
    is_array($value)){
            foreach(
    $value as $key2 => $val2){
              if (
    $key2 == 'keyword') {
                
    $_GET[$key][$key2] = preg_replace('/'.$unStrictReplace.'/'''$val2);
              } else {
                
    $_GET[$key][$key2] = preg_replace('/'.$strictReplace.'/'''$val2);
              }
              unset(
    $GLOBALS[$key]);
            }
          } else {
            if (
    $key == 'keyword') {
              
    $_GET[$key] = preg_replace('/'.$unStrictReplace.'/'''$value);
            } else {
              
    $_GET[$key] = preg_replace('/'.$strictReplace.'/'''$value);
            }
            unset(
    $GLOBALS[$key]);
          }
        }
      } 
    All that code in the FAQ Module does is duplicate what Zen Cart is already set up to do.

    I'm going to do some more testing on a brand new install to make sure there aren't any further issues then I'll submit an update to the module so that it works out of the box.

  5. #5
    Join Date
    Sep 2012
    Posts
    7
    Plugin Contributions
    0

    Idea or Suggestion Re: FAQ Module [Support]

    I have edited the code per the last post - "includes/init_includes/init_faq.php". But I still have a problem with the main FAQ page. I have the "faqs_all" link under my Customer Support in the main nav bar. When the faq page loads, it says:

    Frequently Asked Questions

    There are no FAQs available at this time - please check back later.
    .

    In the previous version the "title header and default text and a "Ask a Question" was all on the same page, but not so now. Is there something that I don't have set-up or do you have any suggustions?
    Also in my Admin, the FAQ Manager is no where to be found. In the Layout Boxes Controller its there as a sidebox, but not under Extras as per the instructions. I've verified the entries in the database and they all seem to be there. And checked all the install files in the Admin directory within the html/ home directory on my host. I have a horizontal nav bar menu (tb_sempre) flavor /template by Brandon Turpin. So sidebox is out ... If you have any suggestions on how to get this working, please let me know. If I could assist you in any way, email me... THx

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

    Default Re: FAQ Module [Support]

    Quote Originally Posted by dmchljhnsn View Post
    I have edited the code per the last post - "includes/init_includes/init_faq.php". But I still have a problem with the main FAQ page. I have the "faqs_all" link under my Customer Support in the main nav bar. When the faq page loads, it says:

    Frequently Asked Questions

    There are no FAQs available at this time - please check back later.
    .

    In the previous version the "title header and default text and a "Ask a Question" was all on the same page, but not so now. Is there something that I don't have set-up or do you have any suggustions?
    Also in my Admin, the FAQ Manager is no where to be found. In the Layout Boxes Controller its there as a sidebox, but not under Extras as per the instructions. I've verified the entries in the database and they all seem to be there. And checked all the install files in the Admin directory within the html/ home directory on my host. I have a horizontal nav bar menu (tb_sempre) flavor /template by Brandon Turpin. So sidebox is out ... If you have any suggestions on how to get this working, please let me know. If I could assist you in any way, email me... THx
    Only your faq categories and faqs will show on the faqs all page - I removed ask a question for now because there were so many problems with it on the last release. It should be easy enough to update and add back in, but it will probably need to be restructured so that it's safe enough to use.

  7. #7
    Join Date
    Sep 2012
    Posts
    7
    Plugin Contributions
    0

    Default Re: FAQ Module [Support]

    ok --- why do think the FAQ Manager Module is not showing up in the Admin control panel under EXTRAS? Have you got it working on the test server? I am thinking about reinstalling zen cart and then doing the updates, then install FAQ again. Have you uploaded anything yet since the Sept 26 update? Thx for your efforts... I'm sure you get alot of apprication from the rest of the Zen Cart community! Thx again---

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

    Default Re: FAQ Module [Support]

    Quote Originally Posted by dmchljhnsn View Post
    ok --- why do think the FAQ Manager Module is not showing up in the Admin control panel under EXTRAS? Have you got it working on the test server? I am thinking about reinstalling zen cart and then doing the updates, then install FAQ again. Have you uploaded anything yet since the Sept 26 update? Thx for your efforts... I'm sure you get alot of apprication from the rest of the Zen Cart community! Thx again---
    Tis working on both my test server (a totally vanilla version of zen cart) and the almost live site I'm working on - the only thing that isn't working currently (if you've made all of the changes mentioned in previous posts) is subcategories - but because the mod uses the faqs all page instead of a clone of the category/product listing, it make sense that the subcategories aren't working properly.

    This time around, I'm thinking about pulling the subcategory function from the mod entirely - you'll still be able to create categories and faqs, just not subcategories. It will make the mod a lot easier to use and install.

  9. #9
    Join Date
    May 2011
    Location
    DELHI,INDIA
    Posts
    43
    Plugin Contributions
    1

    Default Re: FAQ Module [Support]

    Nice plugin Does this plugin work on version 1.39h

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

    Default Re: FAQ Module [Support]

    Quote Originally Posted by raj3396 View Post
    Nice plugin Does this plugin work on version 1.39h
    Not as is - it's formatted for 1.5. I have an earlier version installed on a 1.39h store but I believe I had to make quite a few modifications to it. I'm in the middle of "remodeling" this version. If you can give me a couple of days, I'll install it on my 1.39h store, see if it works and let you know.

 

 
Page 1 of 3 123 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

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