Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: SDMCC on May 27, 2013, 02:46:45 PM

Title: The word 'The' appears twice in the post notification email.
Post by: SDMCC on May 27, 2013, 02:46:45 PM
The automatic SMF post notification that we receive by regular email finishes with the lines >
Regards,
The The forum of whatever your forum is called.

The last line has the word 'The' appearing twice in it, how do I remove the extra 'The'.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: NanoSector on May 27, 2013, 02:52:25 PM
Hello,

What is your forum called?
Title: Re: The word 'The' appears twice in the post notification email.
Post by: SDMCC on May 27, 2013, 02:54:58 PM
Southampton and District Motor Cycle Club - SDMCC.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: YogiBear on May 27, 2013, 03:09:26 PM
I think what Yoshi was asking is whether the word 'The' also appears in your forum name.

Can't be certain if this is the problem but your header reads...

The forum of the Southampton and District Motor Cycle Club - SDMCC. By Motorcyclists - For Motorcyclists. Club website. hxxp://www.sdmcc.net
Title: Re: The word 'The' appears twice in the post notification email.
Post by: SDMCC on May 27, 2013, 03:13:54 PM
Yes, that is the forum name, is that the problem, if so how can I address it?
Title: Re: The word 'The' appears twice in the post notification email.
Post by: Arantor on May 27, 2013, 03:17:37 PM
Um, change the forum name?
Title: Re: The word 'The' appears twice in the post notification email.
Post by: Kindred on May 27, 2013, 03:19:31 PM
that is the "problem"
(although it's not specifically a problem, since most forums do not use "the" int heir forum names.

You can change the contents of the email messages in EmailTemplates.english.php
Title: Re: The word 'The' appears twice in the post notification email.
Post by: SDMCC on May 27, 2013, 03:22:23 PM
Where can I find the EmailTemplates.english.php please.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: Kindred on May 27, 2013, 03:23:47 PM
along with all the other language files... :P

Themes/default/languages
Title: Re: The word 'The' appears twice in the post notification email.
Post by: NanoSector on May 27, 2013, 03:26:23 PM
You won't find anything there though, just {REGARDS}.

You can edit the forum name over at Admin > Configuration > Server Settings, which will be the easier method.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: Oldiesmann on May 27, 2013, 03:29:15 PM
Quote from: Yoshi on May 27, 2013, 03:26:23 PM
You won't find anything there though, just {REGARDS}.

You can edit the forum name over at Admin > Configuration > Server Settings, which will be the easier method.

{REGARDS} is $txt['regards_team'] in Themes/default/languages/index.english.php

$txt['regards_team'] = 'Regards,' . "\n" . 'The ' . $context['forum_name'] . ' Team.';
Title: Re: The word 'The' appears twice in the post notification email.
Post by: NanoSector on May 27, 2013, 03:30:23 PM
Oh, thanks Oldies :)
Was too lazy to trace it back, heh.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: SDMCC on May 27, 2013, 03:45:53 PM
I'm getting a bit confused now, i'm a bit of an oldy, I can even remember the start of World War 2!!

All I want to do is get rid of a 'The' in >
Regards,
The The  forum of the Southampton and District Motor Cycle Club - SDMCC. Team.

Make it a bit clearer for me please.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: Arantor on May 27, 2013, 03:53:39 PM
Seriously, just go into the admin panel and change the name of the forum to "Southampton and District Motor Cycle Club - SDMCC Team" (Admin > Configuration > Server Settings > General)
Title: Re: The word 'The' appears twice in the post notification email.
Post by: SDMCC on May 27, 2013, 03:57:00 PM
Ok, shame though, cos' The forum of the Southampton and District Motor Cycle Club - SDMCC has a nice ring to it.

Thanks
Title: Re: The word 'The' appears twice in the post notification email.
Post by: Kindred on May 27, 2013, 04:00:11 PM
Quote from: Oldiesmann on May 27, 2013, 03:29:15 PM
$txt['regards_team'] in Themes/default/languages/index.english.php

$txt['regards_team'] = 'Regards,' . "\n" . 'The ' . $context['forum_name'] . ' Team.';
Title: Re: The word 'The' appears twice in the post notification email.
Post by: Arantor on May 27, 2013, 04:02:57 PM
There are other places the forum name is used, outside of email notifications, and those assume 'The' isn't in it either.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: SDMCC on May 27, 2013, 04:05:38 PM
Kindred, are you saying replace with your code as shown.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: NanoSector on May 27, 2013, 04:11:55 PM
SDMCC, just changing the forum name is a lot easier than changing the source code and will give you much less trouble.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: Oldiesmann on May 27, 2013, 09:20:24 PM
Quote from: SDMCC on May 27, 2013, 03:57:00 PM
Ok, shame though, cos' The forum of the Southampton and District Motor Cycle Club - SDMCC has a nice ring to it.

Thanks

Try "Southampton and District Motor Cycle Club (SDMCC) Forum". It's shorter and doesn't look weird when "The" is plastered in front of it.
Title: Re: The word 'The' appears twice in the post notification email.
Post by: SDMCC on May 28, 2013, 03:51:52 AM
Plastered!!  :o :o
Ok, I give in, I'll change the name.  :P ::) ;D

Thanks all.  ;D