News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

just show topics?

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

Previous topic - Next topic

Arantor

Before or after you write the message?

bulletflame

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

Arantor

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;

bulletflame

works perfect thank you how u learned all this codes?

Arantor

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)

bulletflame

cool, and can u help me with this other problem , take a look at the picture i want to hide it or change it

Arantor

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']
))
);

bulletflame

i cant find no load.php file on my directory

Arantor


bulletflame

okay it works and how do i change the page title?

Arantor

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'];

bulletflame

man ur the best thank you for all ur help

bulletflame

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

Arantor

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.

bulletflame


eyo

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

Arantor

The same code should actually work.

eyo


Advertisement: