New Zenner
- Join Date:
- Dec 2008
- Posts:
- 97
- Plugin Contributions:
- 0
FAQ Manager
BTW is there away to get the FAQ manager to show in the site map
Views: 88,845
New Zenner
BTW is there away to get the FAQ manager to show in the site map
New Zenner
I installed this on a test server and have waded through the pages to correct some errors. Phew!
But, there are more and I have some questions that seem to repeat without answer:
Thanks
New Zenner
michaelhl:
The changes in application_top.php have as a result, that the text on main page is shown also on every main-category page. This is not what I want. How can we solve this problem. For this time i comment out the changes in application_top and deactivate the FAQ-Sidebox.
I was having the problem with my main page text showing on the category pages as well and I made this change so that I could still use the FAQ Manager SideBox
II changed the variable
$show_welcome to $show_faq_welcome
for all of the FAQ file instances and it seems to be working. I will continue to test this change and would love for anyone else experiencing this issue to test it as well.
Zen Follower
I have an issue where the navigation shows up twice above each of the FAQ's pages:
Home > Frequently Asked Questions > I can’t find my child’s name. What should I do?
Home > Frequently Asked Questions > I can’t find my child’s name. What should I do?
Is there a way to fix this issue as well?
Totally Zenned
jasmel:
I have an issue where the navigation shows up twice above each of the FAQ's pages:
Home > Frequently Asked Questions > I can’t find my child’s name. What should I do?
Home > Frequently Asked Questions > I can’t find my child’s name. What should I do?
Is there a way to fix this issue as well?
That answer is one page back. :cool:
http://www.zen-cart.com/forum/showpost.php?p=681963&postcount=276
Zen Follower
jettrue:
That answer is one page back. :cool:
Thanks! :cry:
New Zenner
gezuvor:
I installed this on a test server and have waded through the pages to correct some errors. Phew!
But, there are more and I have some questions that seem to repeat without answer:
- How can the sort box be removed? I want all pages to sort by category.
- Regardless of the category I click, all FAQ are displayed in some random order. No point in having categories if they are useless...
Thanks
I am also having this problem. It does not matter which category I click on the faqs come up in the same order. Does anyone know how to fix this?
Thanks
Zen Follower
Zen Follower
OK,
I found that this fixed my problem;
http://www.zen-cart.com/forum/showthread.php?p=378357#post378357
Cheers,
Peter.
New Zenner
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | [url]http://www.zen-cart.com/index.php[/url] |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | [url]http://www.zen-cart.com/license/2_0.txt[/url]. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: faq_manager.php 001 2005-05-05 [email protected]
//
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
for ($i=0;$i<sizeof($box_faq_categories_array);$i++) {
switch(true) {
// to make a specific faq_category stand out define a new class in the stylesheet example: A.faq_category-holiday
// uncomment the select below and set the fcPath=3 to the fcPath= your_faq_categories_id
// many variations of this can be done
// case ($box_faq_categories_array[$i]['path'] == 'fcPath=3'):
// $new_style = 'faq_category-holiday';
// break;
case ($box_faq_categories_array[$i]['top'] == 'true'):
$new_style = 'category-top';
break;
case ($box_faq_categories_array[$i]['has_sub_cat']):
$new_style = 'category-subs';
break;
default:
$new_style = 'category-products';
}
if (zen_get_faq_types_to_faq_category($box_faq_categories_array[$i]['path']) == '3' or ($box_faq_categories_array[$i]['top'] != 'true' and SHOW_FAQ_CATEGORIES_SUBFAQ_CATEGORIES_ALWAYS != 1)) {
// skip it this is for the document box
} else {
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_FAQS, $box_faq_categories_array[$i]['path']) . '">';
if ($box_faq_categories_array[$i]['current']) {
if ($box_faq_categories_array[$i]['has_sub_cat']) {
$content .= '<span class="category-subs-parent">' . $box_faq_categories_array[$i]['name'] . '</span>';
} else {
$content .= '<span class="category-subs-selected">' . $box_faq_categories_array[$i]['name'] . '</span>';
}
} else {
$content .= $box_faq_categories_array[$i]['name'];
}
if ($box_faq_categories_array[$i]['has_sub_cat']) {
$content .= FAQ_CATEGORIES_SEPARATOR;
}
$content .= '</a>';
if (SHOW_FAQ_COUNTS == 'true') {
if ((FAQ_CATEGORIES_COUNT_ZERO == '1' and $box_faq_categories_array[$i]['count'] == 0) or $box_faq_categories_array[$i]['count'] >= 1) {
$content .= FAQ_CATEGORIES_COUNT_PREFIX . $box_faq_categories_array[$i]['count'] . FAQ_CATEGORIES_COUNT_SUFFIX;
}
}
$content .= '<br />';
}
}
if (SHOW_FAQ_CATEGORIES_BOX_FAQS_NEW == 'true' or SHOW_FAQ_CATEGORIES_BOX_FEATURED_FAQS == 'true' or SHOW_FAQ_CATEGORIES_BOX_FAQS_ALL == 'true') {
// display a separator between faq_categories and links
if (SHOW_FAQ_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<br />' . zen_draw_separator('pixel_silver.gif') . '<br />';
}
if (SHOW_FAQ_CATEGORIES_BOX_FAQS_NEW == 'true') {
switch (true) {
case (SHOW_NEW_FAQS_LIMIT == '0'):
$display_faq_limit = '';
break;
case (SHOW_NEW_FAQS_LIMIT == '1'):
$display_faq_limit = " and date_format(p.faqs_date_added, '%Y%m') >= date_format(now(), '%Y%m')";
break;
case (SHOW_NEW_FAQS_LIMIT == '30'):
$$display_faq_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 30';
break;
case (SHOW_NEW_FAQS_LIMIT == '60'):
$display_faq_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 60';
break;
case (SHOW_NEW_FAQS_LIMIT == '90'):
$display_faq_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 90';
break;
case (SHOW_NEW_FAQS_LIMIT == '120'):
$display_faq_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 120';
break;
}
$show_this = $db->Execute("select p.faqs_id
from " . TABLE_FAQS . " p
where p.faqs_status = '1' " . $display_faq_limit . " limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_FAQS_NEW) . '">' . FAQ_CATEGORIES_BOX_HEADING_WHATS_NEW . '</a>' . '<br />';
}
}
if (SHOW_FAQ_CATEGORIES_BOX_FAQS_ALL == 'true') {
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_FAQS_ALL) . '">' . FAQ_CATEGORIES_BOX_HEADING_FAQS_ALL . '</a>';
}
}
$content .= '</div>' . "\n";
?>[PHP]
```\[/PHP]
New Zenner
Been reading this thread and wondered if there is a fully working v of this anywhere with the code cleaned up and working?
Thanks
Zen Follower
MB1:
i just started using this mod but i realized quickly that if you choose a catagory/subcatagory you still see all the faqs this is kindof a pain is there a fix for this?
Ditto. I read through this thread but didn't find any concrete step or suggestion to fix this.
Is there a fix for this problem?
Zen Follower
beasleybub:
It looks like faq manager has a bunch of bugs.
I just chose to scrap using it. "Much easier":yes:
I agree. It looks like a replica of the Products database/sidebox (compare tpl_faq_cateogries.php to tpl_cateogries.php and see what I mean). Except that this replica is buggy (displays all categories regardless of the category you click on).
I decided to scrapt it, too. Instead I will see whether the FAQ Page add-on can suffice.
New Zenner
when I had more time for certain shared. to see if right for you on my page is an example of how this module
http://www.zencart.vel.pl
MrowkaZ
Zen Follower
mrowkaz:
when I had more time for certain shared. to see if right for you on my page is an example of how this module
http://www.zencart.vel.pl
MrowkaZ
Yes, I like the fact that when I click on a FAQ category (on your web site) I receive the FAQs listed only in that category. How did you manage to fix that bug?
New Zenner
This error is not only unfinished module - This module should not. And what is on my side is only test version - as the age of sharing at ZenCart Store :)
MrowkaZ
Zen Follower
mrowkaz:
when I had more time for certain shared. to see if right for you on my page is an example of how this module
mrowkaz:
This error is not only unfinished module - This module should not. And what is on my side is only test version - as the age of sharing at ZenCart Store :)
You are using an online translation service, right? :wink:
(sorry, I didn't understand what you were trying to say)
New Zenner
yes :)
somehow I do not have time for it to learn English, I understand perfectly what you're saying to me:)
Best regads
MrowkaZ
New Zenner
MrowkaZ you seem to have this module working very well.
Can you explain how you did this and has anyone else managed to get the categories showing when you click on them rather than all the categories showing?
This is a great module I would love to have it working a little better on my site.
Thanks
Paul
New Zenner
Fields marked required must be completed.
Tell staff why this post should be reviewed.