hide link for Road Map and Change Log for everyone

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
DaVinci
Posts: 95
Joined: 13 Apr 2007, 07:39

hide link for Road Map and Change Log for everyone

Post by DaVinci »

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?
SneakyWho_am_i
Posts: 13
Joined: 14 May 2008, 01:20

Re: hide link for Road Map and Change Log for everyone

Post by SneakyWho_am_i »

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;
DaVinci
Posts: 95
Joined: 13 Apr 2007, 07:39

Re: hide link for Road Map and Change Log for everyone

Post by DaVinci »

thats what i thought first but the ink is still visiable..
SneakyWho_am_i
Posts: 13
Joined: 14 May 2008, 01:20

Re: hide link for Road Map and Change Log for everyone

Post by SneakyWho_am_i »

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

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>';
				}
With 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>';
				}
*/
DaVinci
Posts: 95
Joined: 13 Apr 2007, 07:39

Re: hide link for Road Map and Change Log for everyone

Post by DaVinci »

thanks sneaky..that worked..
Post Reply