View Thread
 Print Thread
Version 9 with php 7
daimonbok
I have a somewhat simple question (I Hope) and no one has been able to answer it over at the main site.....

I use the faq extensively now for youtube videos and nothing is in alphabetical order......I sort the DB itself and it's still out of wack on the site. It's frustrating to me to say the least Shock
 
NetriX
Would you like categories and/or all faq items?

It should be a simple fix.
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
daimonbok
Netrix, it's the categories that are driving me crazy, which is simple to do JawDrop !!! Any help would be appreciated...
 
NetriX
Edit your faq.php file to reflect the following:

Quote

$result = dbquery("SELECT faq_cat_id, faq_cat_name, faq_cat_description FROM ".DB_FAQ_CATS." ORDER BY faq_cat_name ASC");


See if that helps.
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
daimonbok
This is faq.php amended....It doesn't look right with the above code...



/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: faq/faq.php
| Author: PHP-Fusion Development Team
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once file_exists('maincore.php') ? 'maincore.php' : __DIR__."/../../maincore.php";
if (!db_exists(DB_FAQS)) {
    redirect(BASEDIR."error.php?code=404");
}
$result = dbquery("SELECT faq_cat_id, faq_cat_name, faq_cat_description FROM ".DB_FAQ_CATS." ORDER BY faq_cat_name ASC");
require_once THEMES."templates/header.php";
require_once INCLUDES."infusions_include.php";
require_once FAQ_CLASS."autoloader.php";
require_once INFUSIONS."faq/templates/faq.php";
\PHPFusion\FAQ\FaqServer::Faq()->display_faq();
require_once THEMES."templates/footer.php";


Uploaded it, it didn't error out or crash, but didn't work. There are 2 faq.php's. One in main infusion dir and the other in english....hope I edited the correct one.
 
NetriX
My fault for not realizing you needed it for v9, I based mine off v7. Give me some time to look at the code and I'll address.

Currently at work. Working W/PC

Thanks
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
daimonbok
Ok, thanks again Netrix...I'll also take a look at the files and see if it fits anywhere...
 
Jump to Forum
Similar Threads
Thread Forum Replies Last Post
downloads.php remove version, comments, ratings General Chat 4 09-04-2016 00:52
Stylo simple version to Gillette Themes Support 12 01-13-2016 15:23
Php Fusion BR. Error creating table version translated into Portuguese in Brazil. General Support 3 06-23-2013 13:01