Advertisement:

Author Topic: Changing Warning Text  (Read 237 times)

Offline chamacao

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • Mejia Online
Changing Warning Text
« on: February 07, 2019, 11:59:47 AM »
Greetings

I find myself needing to change the wording of the warning message, showed by a closed board. Do not have the faintest idea in which file that text is located. Or even if it exist at all. Perhaps is a generated by smf software. Do not know.

The point of it all is or was to replace the warning message as to direct visitors to visit another website where they can register. Any suggestion as well as your time reading this is highly appreciated.

Attaching a pict of the welcoming screen.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,083
  • Gender: Male
    • i30 Owners Club
Re: Changing Warning Text
« Reply #1 on: February 07, 2019, 12:03:36 PM »
You'll find it in Errors.{english}.php in your theme's language folder.

Look online for an application that can search for text within files. I use Notepad++

Offline chamacao

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • Mejia Online
Re: Changing Warning Text
« Reply #2 on: February 07, 2019, 12:31:02 PM »
Thanks a lot. That was incredibly fast. 

I do have to question: will that also change the message that the user see "inside" the board when he or she can find a topic. No biggie, just like to know as to be able to adjust the text.

Thanks again

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,760
    • StoryBB/StoryBB on GitHub
Re: Changing Warning Text
« Reply #3 on: February 07, 2019, 01:32:52 PM »
It's the same text either way - and the same message is shown if the user tries to go to a board or topic that doesn't exist (e.g. a deleted board/topic).
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline chamacao

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • Mejia Online
Re: Changing Warning Text
« Reply #4 on: February 07, 2019, 05:32:58 PM »
Thanks.

I found this string on Errors.english.php located right where you said it would be:

$txt['topic_gone'] = 'The topic or board you are looking for appears to be either missing or off limits to you.';

However the second part
" Please login below or register an account with Superior Farming" is on three kines in the - Login.english.php

$txt['login_below'] = 'Please login below or';
$txt['register_an_account'] = 'register an account';
$txt['login_with_forum'] = 'with %1$s.';

However, if the visitor click on the 'register an account';  (2nd line)
It gets directed to an error screen in the Errors.english.php file

$txt['registration_disabled'] = 'Sorry, registration is currently disabled.';

Sorry, registration is currently disabled.

Now that I know where everyone is .....

Question.

Can  I change Sorry, registration is currently disabled.';
To  -  Visit Superior Farming. Info website For Registration

Or something like that?