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
this would be great. ive always been curious how to do this - i tried redirection but redirection rarely works out well :(
anyone can help us???????? :'(
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.
version 1.1.12 n i want it like the picture i made
And until you actually bother to answer the question I asked you, there is no way on Earth I can or will help you.
i want to eliminate the categories and boards and just display the topics on the index page
For the third and final time of asking, HOW MANY BOARDS DO YOU HAVE?!
ONE
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.
xxx.bulletflame.com (http://xxx.bulletflame.com)
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)
i aliminated one the movies the first one i eliminated
So it's board 1. Hooray, what could have been 4 posts became 10.
Find your top level index.php file.
// Fall through to the board index then...
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
// Fall through to the board index then...
$board = 1;
require_once($sourcedir . '/MessageIndex.php');
return 'MessageIndex';
thanks arantor. i didnt bother asking anymore since you were already pissed off 8) thanks for the help
thanks!
didnt work for me
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';
}
great it works thank you very much
when i try to post new topic it gives me an error has occurred message "The board you specified doesn't exist"
Before or after you write the message?
before writting the message, after i click on "new topic option" n i noticed the url is
http://xxx.bulletflame.com/index.php?action=post;board=.0
there is no .0 board and when i put =1.0 it works but the topics dont show in the index page
Yay for SMF 1.1 being more complex than I remember.
Remove the change you added from this thread.
Find this code in index.php:
// Load the current board's information.
loadBoard();
Before that, add:
// If we would go to the board index, let's make sure we actually find ourselves going inside the board instead.
if (empty($_REQUEST['action']))
$board = 1;
works perfect thank you how u learned all this codes?
I started learning the PHP language 8 years ago, as for knowing SMF, mostly just looking at the code and understanding it (having learned PHP)
cool, and can u help me with this other problem , take a look at the picture i want to hide it or change it
Remove this from Load.php:
// Build up the linktree.
$context['linktree'] = array_merge(
$context['linktree'],
array(array(
'url' => $scripturl . '#' . $board_info['cat']['id'],
'name' => $board_info['cat']['name']
)),
array_reverse($board_info['parent_boards']),
array(array(
'url' => $scripturl . '?board=' . $board . '.0',
'name' => $board_info['name']
))
);
i cant find no load.php file on my directory
It's in Sources/
okay it works and how do i change the page title?
Sources/MessageIndex.php
// 'Print' the header and board info.
$context['page_title'] = strip_tags($board_info['name']);
Presuming you want it changed to the forum name?
// 'Print' the header and board info.
$context['page_title'] = $GLOBALS['mbname'];
man ur the best thank you for all ur help
hey its me again, i want to know how to display the table where it tells you the number of post n members also shows u guest or members online take a look at my forum it doesnt have it
http://xxx.bulletflame.com
You'll have to move a large chunk of code from BoardIndex.php to MessageIndex.php and a large chunk from BoardIndex.template.php to MessageIndex.template.php. If I get time I'll document it here later.
ok thank you
how do i show topics if i use rc4? i use only 1 category and its pretty useless to see 1 category and would just like to see the topics instead
The same code should actually work.
ok thanks. will try it