BANG_vbulletin3_import27616
New Member
Code:
$newforumcache = $vbulletin->db->query_read("
SELECT forum.*" . (VB_AREA != 'Upgrade' ? ", NOT ISNULL(podcast.forumid) AS podcast" : "") . "
FROM " . TABLE_PREFIX . "forum AS forum
" . (VB_AREA != 'Upgrade' ? "LEFT JOIN " . TABLE_PREFIX . "podcast AS podcast ON (forum.forumid = podcast.forumid AND podcast.enabled = 1)" : "") . "
[b]ORDER BY displaytitle[/b]
I'm looking for something like
<if condition="$forumid == '1'">ORDER BY title</if>
} else {
ORDER BY displayorder
O_O i dunno like I said I'm a total newb with php
Can someone write this for me or is there any other way to set the default sort field for subforums? Been looking around all day...
Thanks for any help.