Customizing SMF > SMF Coding Discussion
Displaying a single board only.
(1/1)
nz_liam:
Hi,
I’m trying to make SMF display only one board, i.e. no categories. Basically I want the single board do display on the main (index) page fully expanded with all threads showing, and have no visible categories or board descriptions.
I have been having a play with the default template, and was just wondering if there were any tips you guys could point out to me.
Regards
Liam :)
whiterabbit:
hmm.. so strange why do you want to limit the powerful SMF to be just sth. like that ???
I don't know ... how much you know PHP? there're many ways to do that.
The easiest one :P if you just wanna see how's it going.
Open index.php
Search for:
--- Code: --- elseif (empty($_REQUEST['action']))
{
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
--- End code ---
then add this code after that
--- Code: ---redirectexit("?board=1.0",false);
--- End code ---
;) you might wanna chang your mind latter
Navigation
[0] Message Index
Go to full version