Customizing Banner in Admin Panel
Customizing Banner in Admin Panel
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!
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
Go to folder /admin/themes/default/defaultTheme.php and search there for function DisplayTopMenu() (line85).
There you can change what you want ...
There you can change what you want ...
Re: Customizing Banner in Admin Panel
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
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
Last edited by Deblus on Sat Jun 30, 2007 12:10 pm, edited 1 time in total.
Re: Customizing Banner in Admin Panel
This text comes from language file in admin/lang/en_US/admin.inc.php line 67Deblus wrote: what I can't figure out is how to modify the code to insert text in the same top banner
Code: Select all
$lang['admin']['adminpaneltitle'] = 'CMS Made Simple Admin Panel';
Re: Customizing Banner in Admin Panel
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
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
I would like to putcyberman wrote: What / how much do you want to insert or change?
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
OK, on suggested lines you can find
Try to change it to something like that
Haven't tried yet - not sure if it is complete ...
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>';
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>';
Re: Customizing Banner in Admin Panel
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?
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
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
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
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
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.

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.