footer content

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sam20e
Posts: 11
Joined: 10 Aug 2010, 13:35

footer content

Post by sam20e »

Is it possible for me to add another line of our site url under Copyright © 2000 - 2010 MantisBT Group? i mean can i add any content to the footer? also i want the copyright text Copyright © 2000 - 2010 MantisBT Group to be aligned to the center. where can i modify them?

Thanks
Mantis: 1.2.2
PHP: 5.2.4
SQL: MySQL 5.1.48
OS: CentOS 5.4 Enterprise Linux x86
atrol
Site Admin
Posts: 8544
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: footer content

Post by atrol »

You can add your footer by setting $g_bottom_include_page = "yourPage" in file config_inc.php
And / Or you can write a plugin witch catches the EVENT_LAYOUT_PAGE_FOOTER event.
Please use Search before posting and read the Manual
sam20e
Posts: 11
Joined: 10 Aug 2010, 13:35

Re: footer content

Post by sam20e »

when i add this line im getting this error : Possible Whitespace/Error in Configuration File - Aborting. Output so far follows:
string(1) " "


This is my config_inc.php page content :

<?php

$g_hostname = 'localhost';

$g_db_type = 'mysql';

$g_database_name = ''***************';';

$g_db_username = '***************';

$g_db_password = '***';

?>
Mantis: 1.2.2
PHP: 5.2.4
SQL: MySQL 5.1.48
OS: CentOS 5.4 Enterprise Linux x86
atrol
Site Admin
Posts: 8544
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: footer content

Post by atrol »

I can't see your $g_bottom_include_page setting
You have to add the line before line
?>
Please use Search before posting and read the Manual
sam20e
Posts: 11
Joined: 10 Aug 2010, 13:35

Re: footer content

Post by sam20e »

after adding that line only im getting this error :

Possible Whitespace/Error in Configuration File - Aborting. Output so far follows:
string(1) " "

Can you get me the code if i'm to add this line to my footer : 'Powered by Mantis & Maintained by Our Company Name'
Mantis: 1.2.2
PHP: 5.2.4
SQL: MySQL 5.1.48
OS: CentOS 5.4 Enterprise Linux x86
atrol
Site Admin
Posts: 8544
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: footer content

Post by atrol »

$g_bottom_include_page contains the name of a html file, not the content itself.
I don't know your skills, so it's not easy to give the right answers.
If you don't have any knowledge of HTML/CSS/PHP you should learn some basics which is often enough for small customizations.
Please use Search before posting and read the Manual
sam20e
Posts: 11
Joined: 10 Aug 2010, 13:35

Re: footer content

Post by sam20e »

My bad, i know SQL/HTML very well. i didn't know the function. i'll follow your instruction .. thanks again
Mantis: 1.2.2
PHP: 5.2.4
SQL: MySQL 5.1.48
OS: CentOS 5.4 Enterprise Linux x86
sam20e
Posts: 11
Joined: 10 Aug 2010, 13:35

Re: footer content

Post by sam20e »

this worked perfectly :

$g_bottom_include_page = '%absolute_path%footer.php';

footer.php is my file name :)

thanks
Mantis: 1.2.2
PHP: 5.2.4
SQL: MySQL 5.1.48
OS: CentOS 5.4 Enterprise Linux x86
mittalpatel

Re: footer content

Post by mittalpatel »

Or, if you don't want to create a new footer.php file then you can go to /core/html_api.php file and find for "Copyright &copy; 2000 - 2012 MantisBT Group". There the table structure of footer is coded. You can simple make changes there and you should be able to update the copyright text in the footer.

To update the email address in footer you can change value of $g_webmaster_email variable in config_defaults_inc.php file. There are other email settings also given which you can update. Find for "MantisBT Email Settings" in config_defaults_inc.php file and you should find it.
Post Reply