News:

Join the Facebook Fan Page.

Main Menu

just show topics?

Started by bulletflame, February 22, 2011, 12:25:23 AM

Previous topic - Next topic

bulletflame

is there a way to remove the category and boards and just show topics in the main page?

i made a picture with paint i want somethin like that here is only shows the post ,, no categories,, no boards

eyo

this would be great. ive always been curious how to do this - i tried redirection but redirection rarely works out well :(

bulletflame


Arantor

Once, just once, I'd love people to read the big sticky in this board that suggests a few things people can do in order to get help. Including being *specific* (I mean, do you only have the one board?) and what version of SMF.

bulletflame

version 1.1.12 n i want it like the picture i made

Arantor

And until you actually bother to answer the question I asked you, there is no way on Earth I can or will help you.

bulletflame

i want to eliminate the categories and boards and just display the topics on the index page

Arantor

For the third and final time of asking, HOW MANY BOARDS DO YOU HAVE?!


Arantor

Thank you, that's all you had to say before, when I first asked.

Now for another hard question, what's the link to that board *right now*? I need to know these things so I can give you the right code, I'm not asking just to waste your (and my) time.


Arantor

Right, so you have two boards despite telling me you only had one.

Before I lose the last vestiges of sanity, which one is it supposed to go into, and will the other one need to be available afterwards? Or are you going to get rid of one, and if so which one (because I need to know the board's id number, either 1 or 2)

bulletflame

i aliminated one the movies the first one i eliminated

Arantor

So it's board 1. Hooray, what could have been 4 posts became 10.

Find your top level index.php file.

Code (find) Select
// Fall through to the board index then...
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';


Code (replace) Select
// Fall through to the board index then...
$board = 1;
require_once($sourcedir . '/MessageIndex.php');
return 'MessageIndex';

eyo

thanks arantor. i didnt bother asking anymore since you were already pissed off  8) thanks for the help

bulletflame


bulletflame


Arantor

Quote from: eyo on February 22, 2011, 09:30:11 AM
thanks arantor. i didnt bother asking anymore since you were already pissed off  8) thanks for the help

I only get pissed when I have to ask the same question multiple times.

Quote from: bulletflame on February 22, 2011, 09:40:16 AM
didnt work for me

As a guide 'didn't work' is about as unuseful as it gets in terms of describing the problem. Fortunately I know what the problem is, I forgot something.

Also replace:

// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}


with

// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
$board = 1;
require_once($sourcedir . '/MessageIndex.php');
return 'MessageIndex';
}

bulletflame

great it works thank you very much

bulletflame

when i try to post new topic it gives me an error has occurred message "The board you specified doesn't exist"

Advertisement: