Customizing Banner in Admin Panel

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
niadni
Forum Members
Forum Members
Posts: 11
Joined: Fri Jun 29, 2007 4:51 am

Customizing Banner in Admin Panel

Post 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!
cyberman

Re: Customizing Banner in Admin Panel

Post by cyberman »

Go to folder /admin/themes/default/defaultTheme.php and search there for function DisplayTopMenu() (line85).

There you can change what you want ...
User avatar
Deblus
Forum Members
Forum Members
Posts: 105
Joined: Fri Jun 22, 2007 8:52 am

Re: Customizing Banner in Admin Panel

Post 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
Last edited by Deblus on Sat Jun 30, 2007 12:10 pm, edited 1 time in total.
cyberman

Re: Customizing Banner in Admin Panel

Post 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';
User avatar
Deblus
Forum Members
Forum Members
Posts: 105
Joined: Fri Jun 22, 2007 8:52 am

Re: Customizing Banner in Admin Panel

Post 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
cyberman

Re: Customizing Banner in Admin Panel

Post by cyberman »

What / how much do you want to insert or change?
User avatar
Deblus
Forum Members
Forum Members
Posts: 105
Joined: Fri Jun 22, 2007 8:52 am

Re: Customizing Banner in Admin Panel

Post 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
cyberman

Re: Customizing Banner in Admin Panel

Post 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 ...
User avatar
Deblus
Forum Members
Forum Members
Posts: 105
Joined: Fri Jun 22, 2007 8:52 am

Re: Customizing Banner in Admin Panel

Post 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?
cyberman

Re: Customizing Banner in Admin Panel

Post by cyberman »

You can add the used stylesheets in css too. It's only easier / faster for me to show you the solution :).
User avatar
Deblus
Forum Members
Forum Members
Posts: 105
Joined: Fri Jun 22, 2007 8:52 am

Re: Customizing Banner in Admin Panel

Post 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
cyberman

Re: Customizing Banner in Admin Panel

Post 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.
Post Reply

Return to “Tips and Tricks”