TinyPortal

Development => Support => Topic started by: excumbed on November 17, 2005, 06:30:55 AM

Title: Forum on the fron page?
Post by: excumbed on November 17, 2005, 06:30:55 AM
Hi,

How to set TinyPortal to show the forum on my front? I mean that if sb types http://mysite.com he will see all forums, as before install TP. (Not only posts from ONE forum). In fact, it would be better for me to full disable 'home page' for now - only have forum page. Is it possible?

Thx in advance
Excumbed
Title: Re: Forum on the fron page?
Post by: bloc on November 17, 2005, 09:30:01 AM
Not currently...but I will add this option in the next release.
Title: Re: Forum on the fron page?
Post by: excumbed on November 17, 2005, 11:59:02 AM
Hmm... isn't it possible to do it... manually? I really need it :)
Title: Re: Forum on the fron page?
Post by: IchBin on November 17, 2005, 02:53:18 PM
Couldn't you just set the forum to display on the front page in the "front page settings" in TPAdmin? You can also set the sidebars to not display while in the forum. Is that what you're looking for?
Title: Re: Forum on the fron page?
Post by: IchBin on November 17, 2005, 02:54:26 PM
Nevermind, I forgot that it displays posts, and not the forum....
Title: Re: Forum on the fron page?
Post by: Franky500 on November 17, 2005, 06:44:19 PM
how about simply redirect to ur forum...
Title: Re: Forum on the fron page?
Post by: excumbed on November 17, 2005, 07:36:58 PM
you mean ie. by header() in php?
Title: Re: Forum on the fron page?
Post by: bloc on November 18, 2005, 12:58:25 AM
uhm. tried that earlier and it just got in a loop on some severs, resulting in a 500 error.

What i am going to do, is actually set the emtpy action value (that will just go to the frontpage) to either TP frontpage(which it is now) or to the SMf forum(before TP) based on what the setting is at. That way its ensured the desired action is made, and no redirect is needed.
Title: Re: Forum on the fron page?
Post by: excumbed on November 18, 2005, 05:41:17 AM
So how could I do it now, manually? Is it set in any file, so that I could change it?
Title: Re: Forum on the fron page?
Post by: feline on November 18, 2005, 11:41:06 AM
Hi,

create a .htaccess in your homedir to make a redirector:

RewriteEngine on
RewriteRule (.*).html$ /forum/index.php?action=forum


Fel
Title: Re: Forum on the fron page?
Post by: bloc on November 18, 2005, 04:28:55 PM
Its set in index.php..look for this code:
               // Action and board are both empty... BoardIndex!
                if (empty($board) && empty($topic))
                {
                        require_once($sourcedir . '/TPortal.php');
                        return 'TPortal';
                }


and set it to SMF normal state:
               // Action and board are both empty... BoardIndex!
                if (empty($board) && empty($topic))
                {
                        require_once($sourcedir . '/BoardIndex.php');
                        return 'BoardIndex';
                }


This will always show the forum first. The frontpage of TP can still be reached at index.php?action=tportal instead. So you might need to adjust any links for that.
Title: Re: Forum on the fron page?
Post by: excumbed on November 19, 2005, 11:38:26 AM
Hi

1. THX Bloc, it's working propertly :)

2. I don't want to create new topic so here:
My site is: http://hamachi.pl
Why when I'm clicking at arrow in the left top cornet (what should make the left panel invisible) nothing's done?
In Internet Ex. I'm getting such an error message (translated from Polish):
- Line: 74
- Error: There is no definition "current_leftbar".

What is wrong?
Title: Re: Forum on the fron page?
Post by: bloc on November 19, 2005, 12:22:51 PM
It seems some code is missing from the index.template - or left out by me. Is it a un-modified Mercury theme?
Title: Re: Forum on the fron page?
Post by: excumbed on November 19, 2005, 12:40:20 PM
Yes, directly downloaded from Your site (Mercury_TP) and installed by admin panel in SMF
Title: Re: Forum on the fron page?
Post by: excumbed on November 20, 2005, 01:10:20 PM
hm, any ideas?