News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Login screen text.

Started by lather, February 13, 2025, 11:14:26 AM

Previous topic - Next topic

lather

I would like to add some text to the login screen. Which file(s) do I need to modify and how?

Doug Heffernan

Quote from: lather on February 13, 2025, 11:14:26 AMI would like to add some text to the login screen. Which file(s) do I need to modify

Login.template.php.

Quote from: lather on February 13, 2025, 11:14:26 AMand how?

Depending what you want to modify, you select the appropriate code and do you thing there.

mickjav




Doug Heffernan

Quote from: mickjav on February 13, 2025, 12:51:22 PMShouldn't that be a language file?

Yes, but in that case it would need modfying/altering/translating some text imo. The OP is asking how to add something in there, and that can't be done at a language file.  The relevant template must be edited in order for some thing to be added.

lather

I want to add instructions to use the contact form if they are having login issues.

lather

I could not find what I wanted in login_template. I found the area I wanted to change in index_template.
But due to my primitive coding skills I got a fatal errors when trying to add a line:
"Unable to load the 'main_above' template."

However, I achieved my goal by  adding text to $txt['quick_login_dec'] in index.english.php

Doug Heffernan

Glad to hear that you managed to achieve your goal. Marking this as solved.

Advertisement: