Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: durangod on December 13, 2023, 08:42:22 PM

Title: Filtering Site Name (Title) for Emails only
Post by: durangod on December 13, 2023, 08:42:22 PM
Hi, 

I wanted to add TM trade mark to my site title.  So i added the @trade html to my title setting in admin.  I dont want to do a image logo because its a long name and the image is not flexible enough.

So my server settings for site title is

You cannot view this attachment.

and so the title on the site header looks perfect..

You cannot view this attachment.

So far so good, until we get to the received email to members that comes from

Quoteexample™ Forum


literally that format..

So what i would like to do is to run some php in the email file of SMF to filter out the @trade with some regex or using php substr

I think that is the best way to tacking this, but not sure as i dont know the files here that well yet. 

If you have another suggestion i am all ears.  If not then which file is it that handles the email :)

Also is there anything else this might effect? 

I think its Sources/ScheduledTasks


Thanks.. :)
Title: Re: Filtering Site Name (Title) for Emails only
Post by: durangod on December 13, 2023, 09:01:11 PM
I think i may have made it too complicated.  Maybe ill just hard code the name using the tm in the template index so just 1 place, and then let the system carry on with the name as it is in the settings.  Much better to change one thing than mess with the email file right  :)

easy peasy...

Yep just edited the index template and split up the name i did not use the .com part

$part1_sitename = "Example";
$part2_sitename = " Forum";


Then for the page display i concated it together


$part1_sitename.'™'.$part2_sitename


No css required and no other file edit required.
Title: Re: Filtering Site Name (Title) for Emails only
Post by: Steve on December 14, 2023, 07:45:10 AM
Keep in mind:

QuoteThe owner of a trademark may pursue legal action against trademark infringement. Most countries require formal trademark registration as a precondition for pursuing this type of action. The United States, Canada, and other countries also recognize common law trademark rights, which means action can be taken to protect any unregistered trademark if it is in use. Still, common law trademarks offer to the holder, in general, less legal protection than registered trademarks.
Title: Re: Filtering Site Name (Title) for Emails only
Post by: Sesquipedalian on December 14, 2023, 05:59:54 PM
Yeah, you don't actually have a trademark that warrants using ™ unless you registered it.
Title: Re: Filtering Site Name (Title) for Emails only
Post by: durangod on December 14, 2023, 07:34:30 PM
Yes of course, but i did not just come up with this overnight. I have had an LLC business under that name for many many years (2008) and so although i am not an attorney i do feel that the common law TM applies to me.

At least all my research over the years leads me to that conclusion.  All of the logo's and art work have been made for my business over the years and i hold exclusive rights to the artwork. I have a declaration from the actual artist granting me full rights to the artwork that i paid them to create.

Also the tm applies to the name, not the forum software for which that belongs to SMF not me.  I just tm the name i use on the website but i never claim anything regarding the software itself.

I have used common law for all of that time without any issues and will continue to do so unless someone claims that right and has a claim before i started using the name.  In many states common law is pretty much first come first serve.  I have many docs that show i have owned the business under that name since 2008. 
Title: Re: Filtering Site Name (Title) for Emails only
Post by: Steve on December 15, 2023, 07:07:57 AM
Slow your roll, Dave. I feel like we generated an aggressive response which was not our intention at all.

Of course, I could be reading the tone of your response wrong, it may just be informative without being aggressive in which case, disregard my first comment.  :)
Title: Re: Filtering Site Name (Title) for Emails only
Post by: durangod on December 15, 2023, 07:13:03 AM
hi yes you read tone when it was just informative.  all is well
Title: Re: Filtering Site Name (Title) for Emails only
Post by: Kindred on December 15, 2023, 09:33:12 AM
Common-law doesn't actually hold water, fyi...  and the tm mark actually has legal meaning/claim. However,  the TM symbol indicates an UNREGISTERED trademark. The R symbol is for registered ones.

Fyi, Artwork generally follows intellectual and physical property copyright,  not trademark, unless its a brand logo, in which case, it can be both.
Title: Re: Filtering Site Name (Title) for Emails only
Post by: durangod on December 15, 2023, 11:20:11 AM
Quote from: Kindred on December 15, 2023, 09:33:12 AMCommon-law doesn't actually hold water, fyi...  and the tm mark actually has legal meaning/claim. However,  the TM symbol indicates an UNREGISTERED trademark. The R symbol is for registered ones.

Fyi, Artwork generally follows intellectual and physical property copyright,  not trademark, unless its a brand logo, in which case, it can be both.


Yes it is my brand name, thank you for the clarification, much appreciated.