Advertisement:

Author Topic: remove hello message  (Read 5049 times)

Offline pokerpassion

  • Semi-Newbie
  • *
  • Posts: 28
remove hello message
« 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?

Offline CapadY

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,151
  • Gender: Male
Re: remove hello message
« Reply #1 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.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Offline pokerpassion

  • Semi-Newbie
  • *
  • Posts: 28
Re: remove hello message
« Reply #2 on: September 03, 2010, 03:13:13 AM »
no i mean how i can remove that from the template.
so noboday can see it :)

Offline IceXaos

  • Full Member
  • ***
  • Posts: 673
    • Runedev
Re: remove hello message
« Reply #3 on: September 03, 2010, 03:28:20 AM »
Open : Theme/default/Index_Template.php

Find
Code: [Select]
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
Code: [Select]
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>';

Offline pokerpassion

  • Semi-Newbie
  • *
  • Posts: 28
Re: remove hello message
« Reply #4 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.
« Last Edit: September 16, 2010, 05:04:23 PM by pokerpassion »

Offline BellGab.com

  • Jr. Member
  • **
  • Posts: 198
    • BellGab.com
Re: remove hello message
« Reply #5 on: September 28, 2015, 11:07:00 PM »
Open : Theme/default/Index_Template.php

Find
Code: [Select]
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
Code: [Select]
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.