Page 1 of 1

How to add Contact Phone number to Admin screens in footer

Posted: Tue Oct 24, 2006 4:07 am
by KoalaBlue
When I've developed websites previously, I always put my contact details on the site [not the home page] where clients could easily find me when they were on their websites.

With CMSMS I am not familiar with php, and i wondered if there was an easy way to add my Contact Details in the footer of the Admin pages?

Where it says this:

CMS Made Simple 1.0.2 "Maui"
CMS Made Simple is free software released under the General Public Licence.

I'd like to add my phone and web details below that.

Is this possible?  If not, that's ok - just thought i would ask.

PS - I love CMSMS!

Re: How to add Contact Phone number to Admin screens in footer

Posted: Tue Oct 24, 2006 9:31 am
by tsw
yes it is.

In admin/themes/default/defaultTheme.php in line 121 (or near) there is a function DisplayFooter(). You can add your information there inside that echo, or add a new echo underneath it.

I think this might be a good addition to default install also, maybe have the info in config.php and it could be asked in installer. Most of us install cmsms for other people to use and some kind of contact information on the admin part would be nice addition.. well it could make users call you easier without thinking themself first..

hope this helps

Re: How to add Contact Phone number to Admin screens in footer

Posted: Tue Oct 24, 2006 9:35 am
by Muzzy
KoalaBlue wrote: I'd like to add my phone and web details below that.
Hi KoalaBlue.

To do this is quite simple, you can edit the file on your system and then upload via FTP, or you can login to root on your server and edit the file directly. Either way the file you need to edit is called defaultTheme.php (assuming you use the default admin theme). You will find this file in this location >> root/admin/themes/default/defaultTheme.php

Scroll down to the bit that says:

Code: Select all

function DisplayFooter () etc etc...
Edit the line thats says:

Code: Select all

echo '<p class="footer"><a class="footer" href="http://www.cmsmadesimple.org">
CMS Made Simple</a> '.$CMS_VERSION.' "' . $CMS_VERSION_NAME . '"<br />
<a class="footer" href="http://www.cmsmadesimple.org">CMS Made Simple</a>
 is free software released under the General Public Licence.</p>';
Example might be:

Code: Select all

echo '<p class="footer"><a class="footer" href="http://www.cmsmadesimple.org">
CMS Made Simple</a> '.$CMS_VERSION.' "' . $CMS_VERSION_NAME . '"<br />
<a class="footer" href="http://www.yoursite.com" taget="_blank" 
title="Click for support">Click here</a> for online support or telephone 
01234 123456 for personal support.</p>';
Hope that helps.
Blessings.
Mike.

Re: How to add Contact Phone number to Admin screens in footer

Posted: Fri Oct 27, 2006 8:36 am
by KoalaBlue
tsw and Mike,

this info is great - thanks!  I have now added my website name and phone number.

Here's a trickier one for you ...

Is it possible to make changes to the SHORTCUTS menu?

If I click on MAIN in the top left menu, I can see a box in the left margin.

I have been able to add a link to my website support page, plus a link to a great color chart.

The problem is that if the client clicks on these, they do NOT open in a NEW window :(


Is it possible to add a bit of code somewhere to the Shortcuts style, for *target=new*?

That would be a great idea and very desirable. :)