Page 1 of 1

Customizing the page (HTML)

Posted: 04 May 2005, 17:05
by davec
I have installed Mantis 1.0.0a1 and it works great. Now I want to add our Logo and maybe some other customized views for te page. I found and changed $g_window_title and $g_page_title which worked fine. When I tried to add $g_top_include_page = $g_absolute_path.'images/logo.gif'; it just filled the page with "GIF" followed by a lot of characters. Am I doing this wrong? How can I add a logo?

Posted: 04 May 2005, 19:59
by thraxisp
$g_top_include_page is looking for HTML information. It sohould probably be pointing to a page containing:

Code: Select all

<img src="images/logo.gif" />

Perfect

Posted: 04 May 2005, 20:30
by davec
Thanks thraxisp, it worked a treat

where

Posted: 29 Jun 2005, 17:59
by dave
Where did you find this?

I am looking for a way to modify the header info, logo, and put some text up there..

Where are there settitngs?/? thanks.

Posted: 30 Jun 2005, 09:01
by hinke
There is a file called config_defaults_inc.php that you override with config_inc.php and add the following code (This is the way I did this):

Code: Select all

$g_window_title			= 'Window title goes here';
$g_page_title="";
	
$g_top_include_page = $g_absolute_path.'custom' . DIRECTORY_SEPARATOR . 'logo.php';

I then created my logo and put that into the images folder and created a logo.php file containing the follwing code:

Code: Select all

<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<body>
	<img src='images\logo.JPG' />
</body>

</html>
I then created a folder called custom and put the logo.php file into that folder.

This is probably an overkill to do it this way, but at the time it seemed to be the only way to do it.

-Hinke

Posted: 03 Jul 2005, 14:50
by vboctor
hinke, the advantage of having a top include page is that you can have something that is more complicated that just placing an image. This can be achieved by pointing to an html or a php file. Common usages that I have seen so far include:

- On the login page display a centered logo.
- On the other pages display the logo on the left.
- Display some ads on the top right on pages other than the login page.
- Integration into content management systems or changing Mantis to be part of a larger website.

Also note that the top include file should not include tags that mark the start or the end of the html document. They should only include the image or the stuff that you need to add. Hence remove <html>, <meta> and <body>.

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect

Posted: 04 Jul 2005, 12:16
by hinke
Alright.

I'll do that.

Thanks
Henrik