Hello, how do I make an explanatory text on the registration page?
How do I make an explanatory text for the User name item? I want visitors to assign the specified names, not any.
This topic helped me and I was able to make a hint in SMF 2.0.19: https://www.simplemachines.org/community/index.php?topic=578092.0
But this solution doesn't work in SMF 2.1.3.
What changes need to be made?
At it's core, I do think the same solution should apply. The code in Register.template.php might be a little different, but the process should be the same. How does it not work?
This is how it is displayed.
what exactly have you done and what possibly related error do you have? without more details there is not much we can do to help you.
That would look like either the strings for both the username and the info text are missing, or haven't been loaded properly. Try to empty the forum's file cache, it could be that changes to your language files haven't been picked up yet. If that doesn't work, we might need to dig in to this deeper to see what's different.
Quote from: Illori on January 15, 2023, 03:01:03 PMwhat exactly have you done
I did exactly as suggested in this thread: https://www.simplemachines.org/community/index.php?topic=578092.0
Only I made changes not to the file "Modifications.english.php ", and to the file "Modifications.russian-utf8.php ".
Aleksi "Lex" Kilpinen, I cleared all the history, all the settings for all the time, the problem remained.
I'm starting to come to the conclusion that the file "Register.template.php" does not read the file "Modifications.russian-utf8.php ".
Also the file "Register.template.php" does not read the file "Modifications.russian.php ".
But the file "Register.template.php" reads a file "Modifications.english.php" and the necessary changes have taken place at the forum.
Should I then make changes to the file "Modifications.english.php "? Will it be right?
Yeah, I think it should be made in both, and I'm a bit unsure right now but I don't think 2.1 uses the -utf8 files anymore. So make sure your languages are up to date.
Quote from: Aleksi on January 16, 2023, 03:36:34 AMSo make sure your languages are up to date.
Here: https://download.simplemachines.org/index.php?languages;id=38
there is no UTF-8 for Russian for 2.3.1.
So the file "Modifications.russian-utf8.php" no longer relevant?
So I had to make changes to the file "Modifications.russian.php"? But I made changes to it, but the changes did not apply?
As a result, I need to make changes to which files, to these:?
Modifications.russian.php
Modifications.english.php
Or it is enough to make changes only to this file "Modifications.english.php"?
I understand the whole system. If the user uses English during registration, then the text will be taken from the English file, if the user uses Russian, then the text will be taken from the Russian file. Thus, I need to make changes to both files: Modifications.english.php and Modifications.russian.php.
And the "Modifications.russian-utf8.php" file is no longer relevant, can it be deleted altogether or can it break the forum?
Quote from: Participant on January 16, 2023, 04:39:02 AMAnd the "Modifications.russian-utf8.php" file is no longer relevant, can it be deleted altogether or can it break the forum?
yes it can be deleted as it is no longer used. but right now you have not given us any code you are using so we really have no idea what you are doing and why it is not working. yes you gave us an example but you have not told us what you are really trying to do.
Illori, I was able to make an explanatory text appear on the registration page. The problem is solved.
I did as it is written in this topic: https://www.simplemachines.org/community/index.php?topic=578092.0
You just need to make changes to two language files: Russian and English.