News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Login Message

Started by TehCraw, February 20, 2010, 11:59:05 PM

Previous topic - Next topic

TehCraw

Which file do I edit to change the default login text?
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. - Martin Fowler

Kill Em All

/themes/default/languages/login.english.php

Search for:
$txt['only_members_can_access']

You can edit the text there.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

TehCraw

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.

Any fool can write code that a computer can understand. Good programmers write code that humans can understand. - Martin Fowler

Kill Em All

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


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

TehCraw

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.
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. - Martin Fowler

Kill Em All

Is this solved or do you need more assistance?

Glad you got it fixed.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

TehCraw

Marked as solved. Thank you.  :)
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. - Martin Fowler

Advertisement: