Search found 5 matches

by simonhudin
Thu Nov 05, 2015 10:41 am
Forum: Webserver and configuration
Topic: Category sorting for API => JavaScript
Replies: 1
Views: 2266

Category sorting for API => JavaScript

Hi all, Just want to add a tip which might help someone using the API for front end. api.php?action=getCategories Above call returns catagories ordered by their ID and since moving categories around in the top level will effectively change their ID, the ordering will break for when looping through t...
by simonhudin
Mon Oct 05, 2015 3:56 pm
Forum: Webserver and configuration
Topic: Modify free text search *Solved
Replies: 6
Views: 7575

Re: Modify free text search

Worth mentioning that I noticed some inconstancy with the queries passed through PMF\Search\Database.php When you do a full text search, the query says FROM faqdata while when opening a FAQ entry, it says FROM faqdata AS fd Had to rebuild public function search($searchterm, $allLanguages = true) in ...
by simonhudin
Mon Oct 05, 2015 2:37 pm
Forum: Webserver and configuration
Topic: Modify free text search *Solved
Replies: 6
Views: 7575

Re: Modify free text search

Managed to iron out the workflow :D In PMF\Search\Database.php Working draft public function getJoinedTable() { //CUSTOM SEARCH JOINEDTABLE if(isset($_SESSION['bmlfaq'])){ $currentBrand = $_SESSION["bmlfaq"]; } elseif(isset($_COOKIE["bmlfaq"])){ $currentBrand = $_COOKIE["bmlfaq"]; } else{ $currentBr...
by simonhudin
Tue Sep 29, 2015 8:52 am
Forum: Webserver and configuration
Topic: Modify free text search *Solved
Replies: 6
Views: 7575

Re: Modify free text search

Hi, Might have expressed myself a bit weird. In PMF\Search.php, the function search() creates an object that contains the search query in various keys. It's not a SQL query string. So somewhere, I assume there is a function that takes the data in the keys and creates the complete SQL query string an...
by simonhudin
Mon Sep 28, 2015 8:42 am
Forum: Webserver and configuration
Topic: Modify free text search *Solved
Replies: 6
Views: 7575

Modify free text search *Solved

Hi, I am modifying phpMyFaq for a multi-brand version where multiple brands share a large portion of the FAQ but where certain FAQ's have to be hidden depending on certain parameters. I've added 3 custom tables to the phpMyFaq DB for Category -> Brand & FAQ -> Brand and all is set for Categories and...