View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0022098||mantisbt||customization||public||2017-01-01 12:53||2017-04-17 17:22|
|Target Version||2.4.0||Fixed in Version|
|Summary||0022098: Setting bottom_include_page does not include specified file|
Option bottom_include_page to include a file at the bottom of each page is still available but does not work any longer.
|Tags||No tags attached.|
|related to||0022266||closed||vboctor||CVE-2017-7222: Sanitize window title|
|related to||0021113||assigned||syncguru||EVENT_LAYOUT_PAGE_HEADER no longer available|
|has duplicate||0022117||closed||atrol||Neither top_include_page not bottom_include_page used in v2.0|
|has duplicate||0022494||closed||vboctor||Custom footer and top data|
We had a discussion on this. We may end up deprecating such configuration option depending on the final solution that results from the discussion. Assigning to @syncguru since he will coordinate this discussion and the necessary work out of it.
The request has been triggered by a user in forum.
Keep also in mind that we use it on https://www.mantisbt.org/bugs
I am using $g_bottom_include_page to get our Name and Logo on the logon page
It is possible to get the logo in $g_window_title = 'TESTUMGEBUNG - <img src="/mantis_TEST/images/EBVLOGO_60.gif" height="35" " />';
That's all what we need - thank you for this great system! :)
but this is not beautifull ;)
@mahindra the ability add html in the window title as in 0022098:0055352 is a bug that we should fix. It also won't work because window title is also used in other scenarios like some of the email notifications.
Like SteveA, we use $g_top_include_page and $g_bottom_include_page to wrap a MantisBT installation into our website with a consistent banner, menu, and game server statuses across all pages and subdomains for navigation. We manage open source development of the Cyan Worlds' Myst Online (Uru) MMO. Without the custom header and footer, I cannot upgrade from 1.3 to 2.x+ and maintain visual integration. I don't understand how there can be any question about web products like this playing friendly with website integration.
This is our implementation of 1.3:
We used $g_top_include_page = '%absolute_path%/header.inc.php'; as project meta-navigation. Now what out of the box solution do we have for this purpose?
I see this task is assigned, but will restoring $g_top_include_page and $g_bottom_include_page definitely be on the roadmap? An existing feature for many years has been removed, so I'm naturally curious about why.
I guess a question after looking at your pull request from syncguru:
What happens if I apply it? Or in other words - why not?
That's easy: if these no longer work in Mantis, and we have no simple straight-through way to do so, then I'll stay on the old-that-will-be-vulnerable-but-still-since-it-works version
I need these to set up custom conditionnal CSS sheets, custom metas (like charset), custom JS to load, and brand headers.
@vbdoctor @syncguru How does this project defend eliminating support for a critical website integration feature that existed for years and the subsequent deafening silence about its restoration? There can be no question about web products like this playing friendly with website integration.
@vboctor See imperative note above. Adding this because I got your username wrong.
The continual pushing out to the next version for this fix is worrying - it suggests that this is not actually going to be fixed.
As others have noted it seems that this key bit of functionality (which is even used by the Mantis Team themselves) was dropped without any consideration of how Mantis is being used (I assume because it just didn't fit into how the new UI was designed ) . If the team are not going to re-implement this code (or another way of integrating mantis into other sites) then we're either left relying on the 1.3 code base or moving away from Mantis totally.
I think I'll do Mantis' team job here, but that's the way I "fixed" that issue. I used someone else's plugin as a base, and built up something without reading any doc (because nope, I didn't want to spend time reading docs while it was instant to do this before) [I'll rename the plugin btw... I'll let you guess the original name]:
1) Create a "MyKingCustomPlugin" directory in the "plugins" directory
Because they changed everything when it comes to custom CSS/JS/meta tags
4) Put your custom CSS and JS in dedicated files (because Content Security Policies may break your inline stuff), and NOT inside the plugins directiory (would have sound logical to put CSS/JS of a plugin inside that plugin's directory, but since it doesn't work out of the box like before, I've put it all in a "custom" directory inside the root folder of the server).
Maybe it will help some people.
|2017-01-01 12:53||atrol||New Issue|
|2017-01-02 23:03||vboctor||Assigned To||=> syncguru|
|2017-01-02 23:03||vboctor||Status||new => assigned|
|2017-01-02 23:05||vboctor||Note Added: 0054897|
|2017-01-03 02:54||atrol||Note Added: 0054899|
|2017-01-03 07:44||dregad||File Added: screenshot-my_view.png|
|2017-01-03 07:44||dregad||File Deleted: screenshot-my_view.png|
|2017-01-05 11:11||atrol||Relationship added||has duplicate 0022117|
|2017-01-05 13:35||SteveA||Note Added: 0054947|
|2017-01-25 14:32||mahindra||Note Added: 0055326|
|2017-01-26 17:52||mahindra||Note Added: 0055352|
|2017-01-26 18:22||mahindra||Note Added: 0055353|
|2017-01-26 21:50||vboctor||Note Added: 0055359|
|2017-01-26 21:50||vboctor||Relationship added||related to 0022266|
|2017-02-01 22:49||vboctor||Target Version||2.0.1 => 2.2.0|
|2017-02-10 00:52||JWPlatt||Note Added: 0055629|
|2017-02-17 03:41||vendeeglobe||Note Added: 0055715|
|2017-02-19 17:46||JWPlatt||Note Added: 0055722|
|2017-02-19 18:08||JWPlatt||Note Added: 0055723|
|2017-02-26 21:19||vboctor||Target Version||2.2.0 => 2.3.0|
|2017-03-07 22:02||vboctor||Relationship added||has duplicate 0022494|
|2017-04-01 00:20||vboctor||Target Version||2.3.0 => 2.4.0|
|2017-04-15 05:54||Xenos||Note Added: 0056557|
|2017-04-15 10:21||JWPlatt||Note Added: 0056562|
|2017-04-15 10:23||JWPlatt||Note Added: 0056564|
|2017-04-15 11:02||SteveA||Note Added: 0056566|
|2017-04-17 15:36||Xenos||Note Added: 0056602|
|2017-04-17 15:49||atrol||Note Edited: 0056602||View Revisions|
|2017-04-17 17:22||cproensa||Relationship added||related to 0021113|