TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 22, 2024, 05:31:36 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,197
  • Total Topics: 21,221
  • Online today: 226
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 179
  • Total: 179

Option to have the whole forum shown on the 1st page?? (along with the blocks)

Started by danolie, February 23, 2005, 11:10:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nokonium

I've been fiddling but I cannot even get to first base. Load.php doesn't have an action=TPortal or similar. Closest (I think) I can find are these;

        // Start the linktree off empty..not quite, have to insert forum
        $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));


// Build up the linktree (adding TPortal forum index)
                $context['linktree'] = array_merge(
                        $context['linktree'],
                        array(array(
                                'url' => $scripturl . '?action=forum#' . $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']
))

Bjørn

Yes..I am sorry, I misguded you. Its the index.php in the root of the forum you need to look at. Basically if you change these lines:
                // Action and board are both empty... BoardIndex!
                if (empty($board) && empty($topic))
                {
                        require_once($sourcedir . '/TPortal.php');
                        return 'TPortal';
                }
                // Topic is empty, and action is empty.... MessageIndex!
                elseif (empty($topic))
                {
                        require_once($sourcedir . '/MessageIndex.php');
                        return 'MessageIndex';
                }
                // Board is not empty... topic is not empty... action is empty.. Display!
                else
                {
                        require_once($sourcedir . '/Display.php');
                        return 'Display';
                }
        }


To its original ones:
                // Action and board are both empty... BoardIndex!
                if (empty($board) && empty($topic))
                {
                        require_once($sourcedir . '/BoardIndex.php');
                        return 'BoardIndex';
                }
                // Topic is empty, and action is empty.... MessageIndex!
                elseif (empty($topic))
                {
                        require_once($sourcedir . '/MessageIndex.php');
                        return 'MessageIndex';
                }
                // Board is not empty... topic is not empty... action is empty.. Display!
                else
                {
                        require_once($sourcedir . '/Display.php');
                        return 'Display';
                }
        }


AND a entry in the action-array, like:
                'portal' => array('TPortal.php', 'TPortal'),


You should have the forum appear when index.php is executed, and the TP frontpage ONLY when index.php?action=portal is executed. of course, showing articles would require action=portal in addtion to page=20 for example...so you see its a bit hard to really make it work properly, since I started doing TP as the first thing executed..and there is no need for action=portal then.

Bjørn

The Load.php part is - as you found - just in to get the linktree part to show correctly.

Nokonium


11994

Quote from: Bloc on July 09, 2005, 11:22:51 PM
AND a entry in the action-array, like:
                'portal' => array('TPortal.php', 'TPortal'),


hi,
sorry i'm n00b :D
where i have to put this code?

G6Cad


agridoc

11994, this topic is over one year oldÃ,  :o

Now, with TP 0.8.6, if you want just your forum to be displayed when entering the site

Go to Manage Settings -> Frontpage settings and on
What to show on frontpage: select Only forum

Click send and you are doneÃ,  ;)
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF