How to remove "Hello user"/user info in header?

Started by diablo3x.dk, February 16, 2010, 07:12:27 PM

Previous topic - Next topic

diablo3x.dk

Hello :)

How can I remove the area marked in the pic?



Thanks!

diablo3x.dk


Matthew K.

You want to remove all of the user info, and the search?

diablo3x.dk

Actually, yes. I want the user info gone as marked on the pic. I have installed Simple Portal, which displays the same info to the right of the boards - but with more info. The search area could stay I guess :)

Matthew K.



Chas Large

You can easily hide these sections in the index.css (SMF 2.0)  style sheet.

For SMF 2.0 - Themes > Default (or whatever theme you choose) > css > index.css

Look for:

#upper_section div.news
{
width: 50%;
float: right;
text-align: right;
display: none;      /* <--- Add this line */
}


and

div#upper_section div.user
{
width: 35%;
float: right;
overflow: auto;
text-align: right;
display: none;      /* <--- Add this line */
}


Add the lines as indicated.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

diablo3x.dk


Matthew K.

It will work, just not the way I normally deal with such things.

Chas Large

I tend to follow the "easy as possible" route. Adding two lines to a CSS page is easier than removing lines of code in a template but hey, each to his own ;D
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

diablo3x.dk

#10
That worked! Thanks :)

Is it possible to get rid of the last un-used space? I can still expand and collapse the header. You can see for yourselfes on www.forum.diablo3x.dk

As you will see I have added the search and user info areas to the right of the boards instead :) Just want as much space as possible on top.

Matthew K.

Which is exactly why I suggest removing the whole code from index.template.php

I have to run, if when I get back this is not yet resolved I will give you the edit to completely remove the instances.
Labradoodle-360

Chas Large

I guess Labradoodle may be better able to fix your issue than me. I note from Object Inspector that the "top_section" has three <br> tags before your line of News so maybe that would be a quick fix. However, I'll leave it there.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

diablo3x.dk

Quote from: Labradoodle-360 on February 17, 2010, 07:09:15 PM
Which is exactly why I suggest removing the whole code from index.template.php

I have to run, if when I get back this is not yet resolved I will give you the edit to completely remove the instances.
Labradoodle-360

Sounds good. Thanks :)

Matthew K.

Sorry for the delay, I have been quite busy working on other projects.

File attached.
Labradoodle-360

diablo3x.dk

#15
Quote from: Labradoodle-360 on February 18, 2010, 09:21:27 AM
Sorry for the delay, I have been quite busy working on other projects.

File attached.
Labradoodle-360

Thanks, Labradoodle. That was excactly what I needed! Very much appreciated.
Have been to work myself so no worries ;)

Thanks again.

/edit

Oops. Actually, something is wrong.
www.forum.diablo3x.dk
Something is not right. You can see that to the left of the header area.

Matthew K.


diablo3x.dk


Matthew K.

Looks like a div was closed too early.

(Meaning that there is an extra </div> around the area that I removed)

diablo3x.dk


Advertisement: