MyBB Ideas

The MyBB Ideas site allows users to suggest new features and changes in MyBB and the MyBB Group to easily review them to decide what direction MyBB should head in. Search existing ideas.

filtering query in forumdisplay

2 votes

Submitted by luke83, 13th March 2007, 4:23:33 PM

i know.. u can say it could be done with a little plugin that change some code line.. but i wolud post this idea 'cause i think it is usefull... it could be usefullto other..

so..

in forumdisplay.php we have a query to take topics in a forum directory.

in my forum we have "overwrite" some forum to act like a collection of films, video.. so we "link" a record of thread table in the db with relative record in the specific table that contains the "special" fields for film, video ect...

so...

if i would like to order by "film genre" or "film director" i have to "overwrite" the sql that take the threads in the db table. At the moment we have to add a code row to create a plugin "hook"..

in the 1.4 could be a default hook to filter the query in forum display so we can "personalize" ordering or filtering of the thread.

i think it could be very usefull and "clean" to extend the forum to a powerfull "object" container.

Post a Comment

Before you can post a comment you must be a registered member of the MyBB Community Forums.

If you already have an account, log-in to it to post a comment or if you don't register a new account.