Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: diablo3x.dk on February 16, 2010, 07:12:27 PM

Title: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 16, 2010, 07:12:27 PM
Hello :)

How can I remove the area marked in the pic?



Thanks!
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 17, 2010, 02:12:21 PM
Still need help on this.

Any help appreciated :)
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. on February 17, 2010, 02:38:05 PM
You want to remove all of the user info, and the search?
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 17, 2010, 03:32:52 PM
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 :)
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. on February 17, 2010, 03:40:43 PM
Please attach your index.template.php
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 17, 2010, 04:11:06 PM
Attached :)
Title: Re: How to remove "Hello user"/user info in header?
Post by: Chas Large on February 17, 2010, 04:12:15 PM
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.
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 17, 2010, 04:25:39 PM
Hi Chas.
Thanks. Will try that.
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. on February 17, 2010, 04:35:24 PM
It will work, just not the way I normally deal with such things.
Title: Re: How to remove "Hello user"/user info in header?
Post by: Chas Large on February 17, 2010, 04:41:59 PM
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
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 17, 2010, 05:08:59 PM
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.
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. 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
Title: Re: How to remove "Hello user"/user info in header?
Post by: Chas Large on February 18, 2010, 04:36:36 AM
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.
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 18, 2010, 07:02:40 AM
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 :)
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. 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
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 18, 2010, 03:30:00 PM
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.
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. on February 18, 2010, 04:40:38 PM
I don't see anything wrong?
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 18, 2010, 04:45:15 PM
I have marked it in this pic:

Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. on February 18, 2010, 04:46:35 PM
Looks like a div was closed too early.

(Meaning that there is an extra </div> around the area that I removed)
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 18, 2010, 05:06:49 PM
Okay. Is it possible to correct it?
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 19, 2010, 04:21:33 PM
Still need a little more help on this one :)
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. on February 19, 2010, 04:38:52 PM
I apologize, doing a lot.

Try the attached file.
Labradoodle-360
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 19, 2010, 05:19:57 PM
Thanks again Labra! Now everything seems perfect :)
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. on February 19, 2010, 05:21:56 PM
Not a problem, and again I apologize for the delay.

Glad you got it.

Marking topic as resolved,
Labradoodle-360
Title: Re: How to remove "Hello user"/user info in header?
Post by: diablo3x.dk on February 19, 2010, 05:26:33 PM
Never mind taking the time you need. You seemed busy and was in no hurry ;)
Title: Re: How to remove "Hello user"/user info in header?
Post by: FireDitto on September 25, 2010, 09:35:21 PM
Hi, I run RC3.

I'd like to remove the "Hello user" and info header the same as is pictured in the original post.

Could someone please advice what coding Labradoodle removed?

I'd really like to remove it myself, so I can do it on other themes, but although I've searched SMF, I can't seem to find what I need. I'd rather not use the CSS cheat to remove it. I don't like the gap it leaves.

Many thanks =)

Title: Re: How to remove "Hello user"/user info in header?
Post by: xenovanis on September 26, 2010, 12:05:01 PM
FireDitto, see if this helps you:
http://www.simplemachines.org/community/index.php?topic=400687.0

If not, it would be better to create a new topic for this in the Graphics and Templates (http://www.simplemachines.org/community/index.php?board=34.0) board, rather than bumping old and solved topics  ;)
Title: Re: How to remove "Hello user"/user info in header?
Post by: Matthew K. on September 27, 2010, 12:04:58 PM
Or, if you'd like to start your own topic...and send me a PM with a link you can and I'll try to assist you. But as xenovanis said, this is an old topic and also resolved.