News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How do I remove the Welcome message?

Started by zigzag, September 21, 2005, 01:27:53 PM

Previous topic - Next topic

zigzag

Hello  :)
Sorry if this question's already been asked.
I'd like to get rid of the message in the smf Classic Yabb SE theme in smf 1.0.5 that says "Hey, Whoever, you have 2 messages, 0 are new. etc" as with the mambo bridge I've also got the same welcome message in the mambo theme. I've looked in the Yabb theme but to be honest I don't really know what I'm doing - it's a miracle I've got this far  :D

xenovanis

Open the file index.template.php of the Classic Yabbse theme and remove this part:


<tr style="background-color: #ffffff;">
<td valign="middle" align="left"><img src="', $settings['images_url'], '/smflogo.gif" alt="" /></td>
<td valign="middle">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>', $context['allow_pm'] ? ', ' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=regcenter">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>', $txt[616], '</b>';
}
// Otherwise they're a guest - so politely ask them to register or login.
else
echo '
', $txt['welcome_guest'];

echo '
<br />', $context['current_time'], '
</td>
</tr>
"Insanity: doing the same thing over and over again and expecting different results."


Advertisement: