1 Attachment(s)
Re: Getting Duplicate FAQs in front end!
Hi
I've been messing round with the FAQ manager...and have fixed a few things...
1) the duplicate displaying of FAQ's if you have mulit lingual entries... I added an AND to the select statements in the 3 files
tpl_faqs_all_default.php
tpl_faqs_new_default.php
tpl_faqs_default.php
Generally made the made the selecting of a categories from sidebox actually display the FAQ's for that category and not all of them. I know that it was redirected to the tpl_faqs_all_default.php page as a temp fix as the tpl_faqs_default.php wasn't working... So I've had a go at fixing it and it works for me. I'd like to change it more and get sub categories and their faqs displayed and have the faq titles indented to indicate the hierachy a bit,,, but not so much time right now.
There was a missing value defined in one of the langauge files also...
Anyway try it out.
Attachment 4519
Neil
Re: Getting Duplicate FAQs in front end!
Quote:
I was getting this also... and I found a fix... couldnt' see it mentioned anywhere else so here it is I changed both files tpl_faq_default.php and tpl_faq_all_default.php and replaced the $faqs_all_query_raw = ..... line of code with the one below....
$faqs_all_query_raw = "select f.*, fd.*, fcd.faq_categories_name from " . TABLE_FAQS . " f, " . TABLE_FAQS_DESCRIPTION . " fd, " . TABLE_FAQ_CATEGORIES_DESCRIPTION . " fcd, " . TABLE_FAQ_CATEGORIES . " fc " .
"where f.faqs_status = '1' and f.faqs_id = fd.faqs_id and fd.language_id = '" . (int)$_SESSION['languages_id'] . "' and f.master_faq_categories_id = fcd.faq_categories_id and f.master_faq_categories_id = fc.faq_categories_id and fc.faq_categories_status='1' and fcd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
$order_by;
I added the fcd.language_id = to avoid the duplicate rows being selected..
Neil
ndudman I tried your duplicate posting of FAQ fix, but I still get the same problem! Do you have anything else to try to fix the duplicate posting of asked questions?