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

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 11:55:42 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 167
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 122
  • Total: 123
  • @rjen

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.

danolie

I see int he TPadmin section the ability to choose which board it takes messages from, but is there a way for the front page to actually show the entire forum?? (just like it shows when you click "forum" at the top)

Because I have several different boards on my forum, I'd like for them all to show up and allow the user to select which one they want to use, as opposed to just picking messages out of one...

Thanks for all your work on this!!!

Dan O

PS... if there's a way to do this that I missed, please let me know. :-D

Bjørn

That i haven't though about...there is currently always the frontpage at first entry..but some may just want the forum with blocks.

An settings to go straight to forum instead of frontpage could be beneficial.

danolie

Also, it woudl be nice to have in the settings some different optiosn for the middle section of the home page. For example:

What to show on frontpage:

Instead of the current:

Only forum
Both forum and articles - sorted on date
Only articles
Single page/article


Have something like:

Main forum index page
Most recent TOPICS (forum only)
Most recent POSTS (forum only)
Most recent articles (articles only)
Most recent TOPICS & Articles (Sorted by date)
Most recent POSTS & Articles (Sorted by date)
Single Page/Article

More options like this for customizing the main page would be great!

Dan O

Bjørn

"Recent topics" is already done in the block "recent topics". I don't think its necessary to have it twice.

The "forum" option actually just show from a single board - typically a news/annoncement board. Showing recent posts from ALL boards could be done, but too already is covered just by typing index.php?action=recent. It has more information there and will just look nicer. If you have a lot of recent posts, the articles would just "dissappear" back in the pages quickly, making it kind of useless to have mixed anyhow. A news board on the other hand usually have fewer posts, making it ideal to be mixed in with articles.

The option of going straight to the forum/boardindex is something I will add though.

JoshB

You could use a HTTP redirect on the front page, If the querystring variable action equals nothing, then change the url for the home button to have a useless action=front or any string that you want.

Bjørn

uhm, the mod has already modified the querystring to go to ?action=tportal automatically  - if nothing is declared. In SMF original that goes to the Boardindex, so in order for that to still work, the string ?action=forum is needed to go there.

I dont think a redirect is necessary then..or did I misunderstand what you meant?

JoshB

If there is no querystring it goes to the tinyportal front page, not the boardindex

Nokonium

Sorry about the bump, but I think it I need to append this to this thread and not start another one.

Where is the query string refered to? Is it in the (root) index.php?

I am trying to help someone load the forum index page with side bars.

Bogus

Hello ;D

Hmm ... I have install the Tinyportal over the packagemanager and come no Errors, but I see not a funktion in the admin for the Tinyportal ;D I think, I have tomatoes on my eyes  ;)

How I can do to see the tinyportal ?

And my second question is, where is the languagefiles, I come from germany or give the this files to download here ?

thx for help ;D

Nokonium

You should (in default at least) see two admin buttons, Admin & TP Admin. The Admin is your regular SMF admin button and the TP Amin controls the Portal functions.

HTH

Bogus

I see no this button

http://www.webscriptboard.de/index.php

Can I install the portal manuell ?

Edit:

Can I style the portal how of this website http://www.essential-freebies.de/board/portal.php ? When yes, how I can did ? ;D

Thxnks for help ;D

Bjørn

Look also for german language in this thread:

http://www.tinyportal.net/smf/index.php?topic=270.0


The look of the portal is decided by the theme..so you have to make such a theme first.


Nokonium

Quote from: nokonium on July 07, 2005, 06:02:18 PM

Where is the query string refered to? Is it in the (root) index.php?

I am trying to help someone load the forum index page with side bars.

I've looked in index.php and found this

require_once($sourcedir . '/QueryString.php');

In QueryString.php it appears to be calling it from the server,


// Get the correct query string.  It may be in an environment variable...
if (!isset($_SERVER['QUERY_STRING']))
$_SERVER['QUERY_STRING'] = getenv('QUERY_STRING');


I've searched the database but I do not get a match for QUERY_STRING

I'm getting the distinct impression I am completely out of my tree  :uglystupid2:

Bjørn

Do you mean to load the forum index along with sidebar in TP?

I am not sure what you seek, but TP stores the query in $context['TPortal']['querystring'] and SMF does the same in...I am not sure ;D, but at least you can always read $_SERVER['QUERY_STRING'] , just check if it IS set up with anything, like the code :
if (isset($_SERVER['QUERY_STRING']))
      $my_querystring = $_SERVER['QUERY_STRING'];

Nokonium

Quote from: Bloc on March 01, 2005, 10:00:05 AM
uhm, the mod has already modified the querystring to go to ?action=tportal automaticallyÃÆ'ââ,¬Å¡Ãƒâ€šÃ,  - if nothing is declared. In SMF original that goes to the Boardindex, so in order for that to still work, the string ?action=forum is needed to go there.
Quote from: hobo jim on March 03, 2005, 02:11:33 AM
If there is no querystring it goes to the tinyportal front page, not the boardindex

I found the above by searching.

I am trying to work out what I have to change and where, to load TP with the forum index page instead of showing a single forum. Is it possible to add it to the array where you currently select which forum?

Oh I must add that this is for a TP based on the Classic theme and 1.0.5.

Bjørn

uhm..still don't see what you mean...to show the forum WITh sidebars on pure index.php? ..and not the portal frontpage?

Nokonium

If you click the forum button it loads the forum index into the portal, within the TPAdmin you can select if you want it to do so with or without the sidebars.

What I am trying to get is the forum in the portal, with either or both sidebars, as the start up view. I can do it with the bookmark, but I want to make it the default portal view.

Like this http://nokonium.co.uk/Fiddlers-Elbow/index.php?action=forum

Bjørn

I see.

Well, it can be done, but you need to change a few things. First, in Load.php you need to change back to always start with boardindex instead of Tinyportal, then add an extra "action" (like action=portal) to actually go to the TinyPortal frontpage. Because now it does that when there is nothing in the action value.

I am looking at making this an option, but haven't found a simple solution - yet.

Nokonium


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