remove hello message

Started by pokerpassion, September 02, 2010, 05:55:06 PM

Previous topic - Next topic

pokerpassion

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?

CapadY

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.

pokerpassion

no i mean how i can remove that from the template.
so noboday can see it :)

IceXaos

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>';

pokerpassion

#4
can you check if that is good because i got an error if i do that.
thanks

sry. it worked finaly.

BellGab.com

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.

Advertisement: