Mibew Messenger Community

General => Support => Topic started by: mikew on March 15, 2021, 11:18:03 PM

Title: Company title in Config
Post by: mikew on March 15, 2021, 11:18:03 PM
Where can I use the "Company title" value if I set it at the Config?
Could not find any use for this. I use a translation file.
Thanks a lot.
Title: Re: Company title in Config
Post by: faf on March 16, 2021, 10:42:31 AM
I suppose that by Config you mean Settings page. If so, it's a kind of legacy value. At the moment out of the box it's used in email templates (placeholder {3}). Maybe somewhere else, but I'm not sure (see setup_logo() function in libs/chat.php). Also, one can make use of it in third party plugins.
Title: Re: Company title in Config
Post by: mikew on March 16, 2021, 04:28:41 PM
It would be very nice, if I could use it at the welcome message, "Sorry. None of the {Company Title} support team is available at the moment.
Please leave a message and someone will get back to you shortly."
Title: Re: Company title in Config
Post by: faf on March 17, 2021, 07:15:16 AM
What stops you from making you own style?  ;D
Title: Re: Company title in Config
Post by: mikew on March 17, 2021, 07:28:11 PM
I modified this file "translation.po" at the right position with {3} and load it into the database, but nothing is shown.
Title: Re: Company title in Config
Post by: faf on March 18, 2021, 08:45:50 AM
I'm barely understand what you are talking about, but if you just placed a placeholder in some localization contstant, it doesn't make any sense. Placeholders are numbered values to be filled by the code. They differ for different constants. And for most constants there are no placeholders at all.

The docs on creating own style are available here (https://docs.mibew.org/theming.html).