Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: pokerpassion on September 02, 2010, 05:55:06 PM

Title: remove hello message
Post by: pokerpassion on September 02, 2010, 05:55:06 PM
Hello.
How can i remove this welcome msg?

    * Hello admin
    * Show unread posts since last visit.
    * Show new replies to your posts.
    * September 03, 2010, 03:19:19 AM

Or how i can change its position?
Title: Re: remove hello message
Post by: CapadY on September 02, 2010, 06:45:02 PM
At the upper right corner of the forum you'll see a white "V" (in the default curve theme), just click on it.
Title: Re: remove hello message
Post by: pokerpassion on September 03, 2010, 03:13:13 AM
no i mean how i can remove that from the template.
so noboday can see it :)
Title: Re: remove hello message
Post by: IceXaos on September 03, 2010, 03:28:20 AM
Open : Theme/default/Index_Template.php

Find
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<p class="avatar">', $context['user']['avatar']['image'], '</p>';
echo '
<ul class="reset">
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';


Replace With
if ($context['user']['is_logged'] && !$context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<p class="avatar">', $context['user']['avatar']['image'], '</p>';
echo '
<ul class="reset">
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
Title: Re: remove hello message
Post by: pokerpassion on September 16, 2010, 04:59:11 PM
can you check if that is good because i got an error if i do that.
thanks

sry. it worked finaly.
Title: Re: remove hello message
Post by: BellGab.com on September 28, 2015, 11:07:00 PM
Quote from: IceXaos on September 03, 2010, 03:28:20 AM
Open : Theme/default/Index_Template.php

Find
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<p class="avatar">', $context['user']['avatar']['image'], '</p>';
echo '
<ul class="reset">
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';


Replace With
if ($context['user']['is_logged'] && !$context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<p class="avatar">', $context['user']['avatar']['image'], '</p>';
echo '
<ul class="reset">
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';


Hi.  I did this, but the expansion arrow remains.  When you click the arrow, none of the text is there, which is nice, but it's still expandable and you also see the search box when doing so.  I'd like to remove the welcome area entirely, and the arrow as well.  Thanks.