MyBB Community Forums

Full Version: Inster homeurl in emails
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to place my Home URL in all emails which will be sent to users ..

in messages file > inc/languages/english/messages.lang.php
I can see links taking this shape
Quote:$l['email_emailuser'] = "{1},

{2} from {3} has sent you the following message:
------------------------------------------
{5}
------------------------------------------

Thank you,
{3} Staff
{4}

How I can create new link to be like this {num}


Thanks in advance
You'd have to edit a core file. Just edit the language text to add the link.
How I can edit a core file ?
Just let me know where is the file which responsible for creating links like {1}, {2},{3} ...etc
to be used in language folder.

Thanks
http://www.mybb.com/about/mybb

"MyBB 1.6 consists of over 125,000 lines of code"

No idea. You find it.
Like already suggested, you can just add the link to the above string. If you must use the {var} format then you would have to edit in a couple of places depending on which language string is being used.

The above string is generated in member.php (search for email_emailuser, its between line 1800-1900 depending on your MyBB version.)
Thanks - G33K -
I tried to add "http://www.google.com"
between messages content but I noticed that when I add links, emails stopped!
it's working again if I undid it! and removed links.

for example:
Quote:$l['email_emailuser'] = "{1},

{2} from {3} has sent you the following message:
------------------------------------------
{5}
------------------------------------------

Thank you,
{3} Staff
{4}

------------------------------------------
Don't want to receive email messages from other members?

If you don't want other members to be able to email you please visit your User Control Panel and enable the option 'Hide your email from other members':
{4}/usercp.php?action=options
http://www.google.com
------------------------------------------";

Any help ?