Customizing the page (HTML)

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
davec
Posts: 6
Joined: 04 May 2005, 16:13
Location: San Francisco

Customizing the page (HTML)

Post 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?
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post 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" />
davec
Posts: 6
Joined: 04 May 2005, 16:13
Location: San Francisco

Perfect

Post by davec »

Thanks thraxisp, it worked a treat
dave

where

Post 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.
hinke
Posts: 23
Joined: 15 Feb 2005, 08:35
Location: Lund, Sweden
Contact:

Post 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
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post 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
hinke
Posts: 23
Joined: 15 Feb 2005, 08:35
Location: Lund, Sweden
Contact:

Post by hinke »

Alright.

I'll do that.

Thanks
Henrik
Post Reply