WordPress.org

Ready to get started?Download WordPress

Forums

125

FAQ Plugin (129 posts)

  1. ksorbo
    Member
    Posted 8 years ago #

    Does anyone know of a FAQ plugin? I would think it would retain questions in a database and then display them in a page. Also it would have sidebar tags to list FAQ categories.

  2. Michael Bishop

    Posted 8 years ago #

    Why not just set up category FAQ, with subcategories then put your Q&A as posts. Then all you need to do is filter out the FAQ category from the rest of your posts. Which can be done with a query_posts in your home/index.php

  3. ksorbo
    Member
    Posted 8 years ago #

    Thanks for the idea! I assume I could create a sidebar box with heading FAQ and then list the subcategory titles as items within the box.

    I follow you until you get to the index.php. What type of modifications would I have to make to the index.php page? I know how to modify sidebar and the loop in index, but I am not sure what type of modifications would be needed. If I make modifications to my main loop to facilitate my special FAQ query, what will happen to the display of index when displaying the other categories?

    Also, putting answered questions as posts would mean that they would slip down by date, right? So would it be possible to order the posts within a subcategory by something other than date?

  4. Truth
    Member
    Posted 8 years ago #

    I was hoping for a FAQ plugin, any coders here interested to make this plugin? :)

  5. lisavollrath
    Member
    Posted 8 years ago #

    I've also been shopping for a FAQ plugin!

  6. VaamYob
    Member
    Posted 8 years ago #

    I guess I'll just have to write one.

  7. lisavollrath
    Member
    Posted 8 years ago #

    That's what I like about this community. If enough people express interest in something, someone steps up and writes a plugin for it.

  8. jimatwork
    Member
    Posted 8 years ago #

    A little searching found this other thread --- http://wordpress.org/support/topic/43482?replies=3. I would say why not set up new Category as was suggested above. Writing a plugin is not always the solution. But if someone volunteers, great! And thanks.

  9. VaamYob
    Member
    Posted 8 years ago #

    http://www.xyooj.com/blog/frequently-answered-questions

    It's designed to support searching, wordpress categories, view counts, ratings, submitter name/email/URL/IP etc. However, that hasn't been implemented yet. I may get around to it one of these days.

  10. jwurster
    Member
    Posted 8 years ago #

    VaamYob: You are a wiz! Thanks for your help.

  11. VaamYob
    Member
    Posted 8 years ago #

    Now records the user who submitted the question's ip address and asks for their name/email/website.

  12. jwurster
    Member
    Posted 8 years ago #

    I just downloaded and activated. When I went to edit a Page, I got this error:
    Warning: Invalid argument supplied for foreach() in /home/jimw3141/public_html/wordpress/wp-content/plugins/faq/faq.php on line 125

    I also get this error in every post and every page.

    I even added an faq but this didn't help.

  13. VaamYob
    Member
    Posted 8 years ago #

    My server is undergoing a DOS attack right now. I'll look into it when the server comes back online.

  14. VaamYob
    Member
    Posted 8 years ago #

    Updated, please get latest.

    FAQ Plugin

    http://www.xyooj.com/blog/frequently-answered-questions

  15. Truth
    Member
    Posted 8 years ago #

    Got the latest one from your site, but it's still having the same error as just now, the one jwurster has.

  16. VaamYob
    Member
    Posted 8 years ago #

    You may have beaten me to the punch and gotten the zip file before I updated it, please get the latest and try again.

  17. Truth
    Member
    Posted 8 years ago #

    Tried that already, just redownload the new one and uploaded. still having this error

    Warning: Invalid argument supplied for foreach() in /home/huaian/public_html/liberta/wordpress/wp-content/plugins/faq/faq.php on line 125

    ???

    my line 125 is

    foreach ($qas as $qa) {

  18. ksorbo
    Member
    Posted 8 years ago #

    Great plugin!

    Suggestions / Questions:
    1. Perhaps the admin should be under Manage rather than options
    2. Is there any way or reordering the questions?
    3. I assume that the answers must be written in html. I.e., if you put in enters in the answerbox, they don't show up in the FAQ page.
    4. Eventually, it would be nice to have the individual questions categorized so you could put different questions under category headings
    5. Or, the ability to specifiy a category in the page tag, so one could have one page for each FAQ category.

    Yah, I know, beggars shouldn't be choosers!, but it never hurts to ask!

  19. jwurster
    Member
    Posted 8 years ago #

    I've seen this error before. It has to do with the php version. The solution that I just made was to change
    $qas = faq_get_qa(1);
    to $qas = array(faq_get_qa(1));
    That eliminated the errors.

  20. Truth
    Member
    Posted 8 years ago #

    Right, that did it. I tried it on a test page but the questions and answers are not showing up although I approved it already...

    http://liberta.espoireve.com/testpage/

  21. VaamYob
    Member
    Posted 8 years ago #

    Do you have caching turned on ?

  22. Truth
    Member
    Posted 8 years ago #

    Erm, no idea? Where to turn it on or off?

  23. VaamYob
    Member
    Posted 8 years ago #

    Truth,
    Can you get the latest version of the plugin and try again please ?

    jwurster,
    Integration with wordpress categories is planned.
    Once the plugin has more features, I plan on making FAQ a top level menu item, with others (i.e. pending questions etc) as sub-menu items
    The answers are html, that's the most flexible format.
    The questions are text, that's the safest format.

  24. jwurster
    Member
    Posted 8 years ago #

    VaamYob: I guess it's not clear to me what is supposed to happen. Are you supposed to see all the FAQs on your page with the dialog to enter a new FAQ?

  25. VaamYob
    Member
    Posted 8 years ago #

    yes, the users should see a list of aproved questions and answers, with the ability to add more.
    I tried your fix and it got rid of the error, but it also broke functionality. jwurster, please get the latest zip file.

  26. Truth
    Member
    Posted 8 years ago #

    Right, thanks.. it's working now :)

    Got a slight question..

    I wanted to use this to render the title

    <?php echo ImageHeadline_render( 'Ask A Question' ); ?>

    in replace of this

    $retVal .='<div class="faq_ask"><span class="faq_label">Ask a Question:</span> ';

    But it resulted in an error, is there any way to do it?

    Thank you :)

  27. jwurster
    Member
    Posted 8 years ago #

    I got the latest version and no errors. However, I still don't see my FAQ. But I think I know why. When I added the q&a, I did not check off the Approved box. So, there is no way for me to modify it to approve it. Your plugin is only displaying approved faq's, right?

  28. jwurster
    Member
    Posted 8 years ago #

    One more problem. When I tried to add a faq from my page, I got the error:

    WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' '2006-02-03 16:30:10', '99.99.999.99', 0)' at line 1]
    INSERT INTO wp_faq_questions (question, question_author, question_author_email, question_author_url, question_author_user_id, question_date, question_author_ip, question_approved) values ('What is your favorite plugin?', 'willy', 'willy@carpet.net', 'www.willy.com', , '2006-02-03 16:30:10', '68.80.162.72', 0)

  29. Truth
    Member
    Posted 8 years ago #

    another thing, when I click on submit qn, it shows
    "Thank you for asking.
    Once the admin has approved your question, it will show up in the FAQ.
    Click here to return to the FAQ"

    but on a blank white page without the layout etc. how can I make the header and footer show up as well? thanks

  30. carnold
    Member
    Posted 8 years ago #

    Hey! I have downloaded your plugin but having some difficulty getting it installed. Here is the error after activation:
    Warning: main(../wp-content/plugins/faq/faq.php): failed to open stream: No such file or directory in /srv/www/htdocs/wp-admin/faq/faq_admin.php on line 18

    Fatal error: main(): Failed opening required '../wp-content/plugins/faq/faq.php' (include_path='.:') in /srv/www/htdocs/wp-admin/faq/faq_admin.php on line 18

    Here is the file paths:/wp-admin/faq/faq_admin.php
    /wp-content/plugins/faq/faq.php
    /wp-content/plugins/faq/faq_ask.php
    I have chmod'ed permissions on all the files. The plugin shows up in the admin panel and will activate but when nav'ing to "options"->FAQ, i get the above error. Thanks for any help.

    Chris

125

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags