Mantis Logo
Mantis Manual
Manual
Configuration

Database
Path
Webserver
Version
Email
Language
Display
Time
JpGraph
Date
News
Default Preferences
Summary
Bugnote
File Upload
HTML
Authentication
Status Settings
Filters
Misc
Colors
Cookies
Database Tables
Speed Optimisation
Reminders
Bug History
Sponsorship
Source Control Integration
Custom Fields
My View Settings
Relationships
System Logging


Partner Links


HTML
Last Modified: September 13, 2004 19:09PM
(Any)
Description


$g_allow_html_tags Dropped in 0.19.0. Allow specified HTML tags to be used.
$g_html_tags This is the list of HTML tags that are allowed.

Do NOT include href or img tags here.
Do NOT include tags that have parameters (eg. )

The HTML code is allowed to enter the database as is. The $g_allow_href_tags does not have to be enabled to make URL links. The package will automatically hyperlink properly formatted URLs

 eg. http://blah.blah/ or mailto://me@more.com/ 
$g_allow_href_tags Dropped in 0.19.0. Allow A HREF tags.
$g_allow_img_tags Dropped in 0.19.0. NOT ENABLED
$g_primary_table_tags Dropped in 0.19.0. This is inserted into the outermost tables for tags like border, cellspacing, ...
$g_hr_size hr size.
$g_hr_width hr width. Leave off the percentage (%) symbol.
$g_bottom_include_page If this page eixsts it will be displayed at the bottom of every page. It makes a good company branding include page.
$g_top_include_page If this page eixsts it will be displayed at the top of every page. It makes a good company branding include page.
$g_css_include_file Set this to point to the CSS file of your choice.
$g_meta_include_file Set this to point to the META tag file of your choice.
$g_main_menu_custom_options This option will add custom options to the main menu. It is an array of arrays listing the caption, access level required, and the link to be executed. For example:
$g_main_menu_custom_options = array( array( "My Link", MANAGER, 'my_link.php' ), array( "My Link2", ADMINISTRATOR, 'my_link2.php' ) );
Note that if the caption is found in custom_strings_inc.php, then it will be replaced by the translated string. Options will only be added to the menu if the current logged in user has the appropriate access level.

User Contributed Notes
HTML
Add Notes About Notes
sdevore@teachesme.com
22-Jan-2004 14:10
#57
what is the format of the list for $g_html_tags?
temporary@REMOVE_MEuncronopio.org
03-May-2004 22:17
#128
$g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u';
ronm@post1.com
09-Sep-2004 2:25
#200
Just wondering how the top include page (i.e. banner page) be done up ? I just have a simple logo to add...

Should it be a plain simple HTML code ? A full HTML page ? Or in PHP ? 8-D


/Ron
jose-t-monteiro@ptsi.telecom.pt
23-Sep-2004 12:17
#209
Would it be possible to use WikiTags instead of HTML tags?

This would require a WikiParser to be added to Mantis, or can it be integrated with existing WikiEngines, such as DokuWiki?

Thanks.
mark@mophilly.com
15-Dec-2004 15:39
#289
I have not been able to get $g_top_include_page to work. What does the Mantis code expect? PHP?, pure HTML? Also, a standard header often includes javascript and css.

Some examples of stuff that works would be very nice. Can you provide links to some, or perhaps I have overlooked something in the distro?
kipperm13@hotmail.com
10-Jan-2005 15:32
#316
Same here i am trying to get $g_top_include_page to work. Don't know what the format is and if i need to turn something else on.
You must specify a path to the file
26-Jan-2005 11:42
#334
You must specify a path to the file; it will be included via a php "include" command
troyre@movemogbog.com
09-Jun-2005 3:45
#462
The header and footer can be basic HTML.

You simply save the file with a php extension.

If it still doesn't work put a set of empty php tags at the top of your header/footer

eg: <?php ?>

This works on my site.

Cheers
sw@netcetera.org
22-Jun-2005 6:35
#481
Got the $g_top_include_page thing working. The path should be the path from the server root, not the Document Root of your web page.

For example:

/mantis/my_header.php - WRONG!
/home/simon/public_html/mantis/my_header.php - CORRECT!

Hope this helps.
cobowers@indiana.edu
30-Sep-2005 10:15
#628
If g_allow_href_tags has been removed, how then can we create a link in a comment or description whose text is different than the URL that it points to?
lomeo@mail.ru
02-Feb-2006 17:30
#861
First of all, thanx for the great bugtracker. It's cool :)

About WikiEngines: I've patched core/string_api.php:

295c295
< $p_string = preg_replace( '/([http|irc|ftp|https]{2,}:\/\/([a-z0-9_-]|\/|\@|:{0,1}\.{0,1}){1,})/',
---
> $p_string = preg_replace( '/([http|irc|ftp|https]{2,}:\/\/([a-zA-Z0-9_-]|\/|\@|:{0,1}\.{0,1}){1,})/',

Version: 0.19.4

And now I can link from comments to http://en.wikipedia.org/wiki/Mantis_Bugtracker without having broken url.
nm9mjdu02@REM0VEsneakemail.com
14-Feb-2006 3:08
#891
The documentation on this is still cryptic. It doesn't say exactly how to enter HTML tags. I lucked out the first time but putting angle brackets around tags. I sure which we could use rich HTML in descriptions, maybe using the FCKEditor at some point.

Mark's question about top_include was good and points out another doc issue. BTW, Hi Mark from pickie TonyG. Such wisdom shouldn't be in notes here but in updated docs.
volod_0x16@mail.ru
15-Mar-2006 5:19
#938
How can I put a html content in issue's description?
thanks
michael.kloeckner-AT-meta-system.de
20-Jul-2006 9:41
#1197
If you want to show the top page top_page.php located in your installation directory, just set the following variable in your config_inc.php

$g_top_include_page = '%absolute_path%/top_page.php';



----
http://radio-radieschen.de
beat.wehner@REMOVEswissphone.com
25-Oct-2006 3:33
#1276
To add my OWN LOGO I did the following:
* copy new logofile 'my_logo.gif' to directory 'images'
* create new html-file 'logo.html' with reference to logo
  <img src="images/my_logo.gif" alt="new Logo">
* add to 'config_inc.php'
  $g_top_include_page = '/var/www/html/mantis/logo.html';
Add Notes About Notes
Last updated: Sat, 17 May 2008 - 5:53:44

Mantis @ SourceForge