i want to hide link for Road Map and Change Log for everyone including administrators as we dont use the functionality that require these links..
where can i go to disable/hide these two links?
hide link for Road Map and Change Log for everyone
Moderators: Developer, Contributor
-
- Posts: 13
- Joined: 14 May 2008, 01:20
Re: hide link for Road Map and Change Log for everyone
Off the top of my head, I would guess that you could turn those things off by dropping something like this into config_inc.php
Code: Select all
$g_roadmap_view_threshold = OFF;
$g_changelog_view_threshold = OFF;
Re: hide link for Road Map and Change Log for everyone
thats what i thought first but the ink is still visiable..
-
- Posts: 13
- Joined: 14 May 2008, 01:20
Re: hide link for Road Map and Change Log for everyone
There is a hook thing for it in /mantis/core/html_api.php on lines 533 - 541 inclusive, in the function print_menu()
This is probably not the recommended way to do it but I bet you could kill it by replacing this
With this
This is probably not the recommended way to do it but I bet you could kill it by replacing this
Code: Select all
# Changelog Page
if ( access_has_project_level( config_get( 'view_changelog_threshold' ) ) ) {
$t_menu_options[] = '<a href="changelog_page.php">' . lang_get( 'changelog_link' ) . '</a>';
}
# Roadmap Page
if ( access_has_project_level( config_get( 'roadmap_view_threshold' ) ) ) {
$t_menu_options[] = '<a href="roadmap_page.php">' . lang_get( 'roadmap_link' ) . '</a>';
}
Code: Select all
/*
# Changelog Page
if ( access_has_project_level( config_get( 'view_changelog_threshold' ) ) ) {
$t_menu_options[] = '<a href="changelog_page.php">' . lang_get( 'changelog_link' ) . '</a>';
}
# Roadmap Page
if ( access_has_project_level( config_get( 'roadmap_view_threshold' ) ) ) {
$t_menu_options[] = '<a href="roadmap_page.php">' . lang_get( 'roadmap_link' ) . '</a>';
}
*/
Re: hide link for Road Map and Change Log for everyone
thanks sneaky..that worked..