Forums and Subforums on the subpage.
#4
Well, how do you see? My current query:
$query = $db->query("
	SELECT f.*
	FROM ".TABLE_PREFIX."forums f
	WHERE f.active != 0 AND f.fid IN('1','4','5')
	ORDER BY pid, disporder
");
Where:
  • 1 - parent / category.
  • 4 - Forum first / child.
  • 5 - Forum second / child 2.
You think
WHERE [...] f.pid IN('1','OTHER_ID_CATEGORY')
?
If I use this code, it displays my forums, but not 'in the form subforum'.
Each separately.
Template:
<div class="col">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong><br />{$subforums}
</div>
[Image: 553e3c3a5e103.png]
MyForum & MyForum - parents.
Test & Subforum - Subforum/child parents.

Reply


Messages In This Thread
Forums and Subforums on the subpage. - by Snake_ - 2015-04-23, 03:55 PM
RE: Forums and Subforums on the subpage. - by Snake_ - 2015-04-27, 12:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)