Multiple Home Pages

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
josh.beck
Posts: 8
Joined: 21 Sep 2007, 01:43

Multiple Home Pages

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

What is your Mantis version?
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
josh.beck
Posts: 8
Joined: 21 Sep 2007, 01:43

Post by josh.beck »

Oops, sorry about that, I guess that would help wouldn't it?

1.1.0a4

Josh
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
josh.beck
Posts: 8
Joined: 21 Sep 2007, 01:43

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

It works for me (but you need to browse the page http://.../manits/ and already be logged).
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
josh.beck
Posts: 8
Joined: 21 Sep 2007, 01:43

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
josh.beck
Posts: 8
Joined: 21 Sep 2007, 01:43

Post by josh.beck »

not sure what you mean by the "good" page - sorry.

J
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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).
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
josh.beck
Posts: 8
Joined: 21 Sep 2007, 01:43

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
josh.beck
Posts: 8
Joined: 21 Sep 2007, 01:43

Post 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
marcolino7
Posts: 8
Joined: 14 Jun 2008, 12:24

Re: Multiple Home Pages

Post 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
Post Reply