Page 1 of 1
Customizing Banner in Admin Panel
Posted: Fri Jun 29, 2007 1:03 pm
by niadni
First off, I am very much a noobie with CMS. The first step in dealing with a problem is admitting it, right?
Anyway, could someone please tell me how to customize the top banner in the admin panel? (the one with the palm tree and says, "CMS made simple admin panel")
I would like to put my own image and text there. Thanks!
Re: Customizing Banner in Admin Panel
Posted: Sat Jun 30, 2007 9:09 am
by cyberman
Go to folder /admin/themes/default/defaultTheme.php and search there for function DisplayTopMenu() (line85).
There you can change what you want ...
Re: Customizing Banner in Admin Panel
Posted: Sat Jun 30, 2007 11:53 am
by Deblus
thanks Cyberman for your tip I was just about to ask the same question
It is the hardest thing to work out for a new person, I could not find any documentation about it at all
but your solution is a bit difficult too
The logo / image can be inserted in the home page layout stylesheet here where you change the cms folder to your folder name
div#header h1 a {
/* you can set your own image here */
background: #ff99cc url(uploads/images/deblus/b&g.gif) no-repeat 0 12px;
display: block;
height: 120px; /* adjust according your image size */
text-indent: -700em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
width: 780px;
what I can't figure out is how to modify the code to insert text in the same top banner
Re: Customizing Banner in Admin Panel
Posted: Sat Jun 30, 2007 3:04 pm
by cyberman
Deblus wrote:
what I can't figure out is how to modify the code to insert text in the same top banner
This text comes from language file in admin/lang/en_US/admin.inc.php line 67
Code: Select all
$lang['admin']['adminpaneltitle'] = 'CMS Made Simple Admin Panel';
Re: Customizing Banner in Admin Panel
Posted: Sat Jun 30, 2007 10:54 pm
by Deblus
thanks Cyberman
not sure if niadi asked the wrong question or I interpreted it wrong
What I cannot do is insert text into the top menu, your original solution allows a graphic to be inserted there but I want to put text as well
Re: Customizing Banner in Admin Panel
Posted: Sun Jul 01, 2007 8:21 am
by cyberman
What / how much do you want to insert or change?
Re: Customizing Banner in Admin Panel
Posted: Sun Jul 01, 2007 8:31 am
by Deblus
cyberman wrote:
What / how much do you want to insert or change?
I would like to put
Deblu's
Address
Contact details
here so it appears at the top of every page as a header/banner
Re: Customizing Banner in Admin Panel
Posted: Sun Jul 01, 2007 10:16 am
by cyberman
OK, on suggested lines you can find
Code: Select all
function DisplayTopMenu()
{
echo '<div><p class="logocontainer"><img src="themes/default/images/logo.gif" alt="" /><span class="logotext">'.lang('adminpaneltitle').'</span></p></div>';
Try to change it to something like that
Code: Select all
function DisplayTopMenu()
{
echo '<div id="header"><div class="logocontainer" style="float: left; width: 49%;"><img src="themes/default/images/logo.gif" alt="" /><span class="logotext">'.lang('adminpaneltitle').'</span></div><div class="contactinfo" style="float: right; width: 49%; textalign: right;">Here comes your contact informations</div></div>';
Haven't tried yet - not sure if it is complete ...
Re: Customizing Banner in Admin Panel
Posted: Sun Jul 01, 2007 10:36 am
by Deblus
thanks Cyberman
I will try it tomorrow and report back
Surely this is something everyone wants to do
Why is it so hard and not in the stylshetets?
Re: Customizing Banner in Admin Panel
Posted: Sun Jul 01, 2007 10:41 am
by cyberman
You can add the used stylesheets in css too. It's only easier / faster for me to show you the solution

.
Re: Customizing Banner in Admin Panel
Posted: Mon Jul 02, 2007 10:19 am
by Deblus
sorry Cyberman
your solution was too difficult for me to follow
What I can't understand is why this is so hard to do when it is the first thing each new user will probably want to try and change
Re: Customizing Banner in Admin Panel
Posted: Mon Jul 02, 2007 12:20 pm
by cyberman
Hmm, where's the problem? I've told you the solution and you have only to do it

.
And you cant add content via stylesheet.
Admin panel is currently not Smarty based, so it's a little bit more difficult to customize it.