Page 1 of 1

Multiple Home Pages

Posted: 21 Sep 2007, 01:49
by josh.beck
Hey All,

Just installed today and man what an awesome piece of software.

Hey I want to have my anonymous users go to the main_page.php when they log in, and the registered folks go to my_view_page.php when they log in.

Ive tried a bunch of different combinations, thinking they should work but I'm not having any luck so far.

Can someone point me in the right direction.

Thanks.

Josh

Posted: 21 Sep 2007, 06:46
by deboutv
What is your Mantis version?

Posted: 21 Sep 2007, 13:23
by josh.beck
Oops, sorry about that, I guess that would help wouldn't it?

1.1.0a4

Josh

Posted: 21 Sep 2007, 13:51
by deboutv
Ok, go in the Manage page then Manage configuration. At the end of the page you can set a configuration variable for a specific user/project. The configuration variable name is default_home_page.

Posted: 21 Sep 2007, 14:07
by josh.beck
Okay I tried that here are my settings below:

guest
All Projects
default_home_page
string
'main_page.php'

But it doesn't work for logged in members - they go to main_page.php as well. I have the $g_default_home_page variable set to 'my_view_page.php' in config_inc.php

What am I missing?

Josh

Posted: 21 Sep 2007, 14:15
by deboutv
It works for me (but you need to browse the page http://.../manits/ and already be logged).

Posted: 21 Sep 2007, 14:22
by josh.beck
What I meant to say was that it doesn't work for registered members - the guest member goes to main page as desired, but myself for instance, when I log in I go to main page as well - which should be my_view_page

Thanks for the help.

Josh

Posted: 21 Sep 2007, 14:22
by deboutv
It is not possible to go to the "good" page after a login, this is a bug. You can report it in the bugtracker, I'll publish a patch to solve this issue in the bug.

Posted: 21 Sep 2007, 14:24
by josh.beck
not sure what you mean by the "good" page - sorry.

J

Posted: 21 Sep 2007, 14:26
by deboutv
The "good" page is the one you configured (for you it is my_view_page.php and for guests it is main_page.php).

Posted: 21 Sep 2007, 15:06
by josh.beck
Ok - bug posted and monitored.

Thanks.

BTW any chance you can help me with this:

http://www.mantisbt.org/forums//viewtopic.php?t=3907

Appreciate it :D

Josh

Posted: 21 Sep 2007, 15:24
by deboutv
josh.beck wrote:Ok - bug posted and monitored.
I added a patch.
Thanks.

BTW any chance you can help me with this:

http://www.mantisbt.org/forums//viewtopic.php?t=3907

Appreciate it :D

Josh
I don't know what is the manual module.

Posted: 21 Sep 2007, 15:34
by josh.beck
Cool thanks.

The manual module is the tool used to create the Mantis Manual - it's located in the CVS - it's pretty cool if you need documentation - I'm just wondering if there's anyone that's used it or can help me set it up so I can do multiple projects within one file.

Thanks again.

Josh

Re: Multiple Home Pages

Posted: 14 Jun 2008, 12:29
by marcolino7
Hi,
I'm using version 1.1.1 and seem that I have a same problem.
This is my settings:

in config_default_inc.php i have this parameter:

Code: Select all

$g_default_home_page = 'main_page.php';
so all user will be redirect to 'main_page.php' after login.

I want that my user will be redirect to view_all_bug_page.php' so i created a configuration repoort parameter:

Code: Select all

marcolino7
All Project  
default_home_page  
string  
'view_all_bug_page.php'
but after login also my user will be redirect to 'main_page.php' .

Whats wrong?

Thanks