Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: TehCraw on February 20, 2010, 11:59:05 PM

Title: Login Message
Post by: TehCraw on February 20, 2010, 11:59:05 PM
Which file do I edit to change the default login text?
Title: Re: Login Message
Post by: Kill Em All on February 21, 2010, 01:26:54 AM
/themes/default/languages/login.english.php

Search for:
$txt['only_members_can_access']

You can edit the text there.
Title: Re: Login Message
Post by: TehCraw on February 21, 2010, 02:13:14 AM
Does anything here look messed up? I tried to change something and now my forum has a parse error.  :-\



// Show the message or default message.
echo '
<p class="information centertext">
', empty($context['kick_message']) ? $txt['only_members_can_access'] : $context['kick_message'], '<br />
', $txt['login_below'], ' <a href="', $scripturl, '?action=register">', $txt['register_an_account'], '</a> ', sprintf($txt['login_with_forum'], $context['forum_name_html_safe']), '
</p>';

// And now the login information.

Title: Re: Login Message
Post by: Kill Em All on February 21, 2010, 02:36:29 AM
I don't think so, but I might of missed something. You can replace that with this:

// Show the message or default message.
echo '
<p class="information centertext">
', empty($context['kick_message']) ? $txt['only_members_can_access'] : $context['kick_message'], '<br />
', $txt['login_below'], ' <a href="', $scripturl, '?action=register">', $txt['register_an_account'], '</a> ', sprintf($txt['login_with_forum'], $context['forum_name_html_safe']), '
</p>';
Title: Re: Login Message
Post by: TehCraw on February 21, 2010, 04:05:44 AM
Thanks. I must have accidentally messed something up without knowing it. I ended up replacing the whole file with a band new one from the SMF software package.
Title: Re: Login Message
Post by: Kill Em All on February 21, 2010, 11:34:29 AM
Is this solved or do you need more assistance?

Glad you got it fixed.
Title: Re: Login Message
Post by: TehCraw on February 21, 2010, 03:44:04 PM
Marked as solved. Thank you.  :)