IT doesn't work for me
http://forum.ngx.sm/misc.php?s=&action=faq&page=3#HTML
No matter what I do, i always get the same window with all the questions, I can't see the answers, etc...
My misc.php code is:
Code:
// FAQ EDIT HACK
if ($action=="faq") {
$templatesused = "faq_title,faq_head,faq_entry";
include("./global.php");
if(isset($page)){$sql = "WHERE faqid='$page'";}
$query = "SELECT faqid,title FROM faq $sql ORDER BY showorder";
$faqs=$DB_site->query($query);
while ($faq=$DB_site->fetch_array($faqs)) {
if (isset($page))
{$title = " > <a href='misc.php?s=$session[sessionhash]&action=faq&page=$faq[faqid]'>$faq[title]</a>";
}
$questions=$DB_site->query("SELECT entryid,title,faqid FROM faqentries WHERE faqid='$faq[faqid]' ORDER BY showorder");
while ($question=$DB_site->fetch_array($questions)) {
eval ("\$faqtitles .= \"".gettemplate("faq_title")."\";");
}
eval ("\$faqhead .= \"".gettemplate("faq_head")."\";");
unset ($faqtitles);
}
if (isset($page)) {
$entries=$DB_site->query("SELECT * FROM faqentries WHERE faqid='$page' ORDER BY showorder");
while($entry=$DB_site->fetch_array($entries)){
$entry[text] = bbcodeparse2($entry[text],$entry[dohtml],$entry[dobbcode],$entry[dosmilies],$entry[dobbcode]);
eval ("\$faqentries .= \"".gettemplate("faq_entry")."\";");
}
}
eval("dooutput(\"".gettemplate("faq")."\");");
}
AS you can I applied bira's hack, but still doesnt work... can someone help please?