Here's a nice little pluggin (No Code changes!) my programmer (Bryan Harris) came up with that sets the email type as HTML if the body of an email contains any HTML.
This is very powerful and flexible, but also a bit dangerous. This means that any email your system sends out that contains any HTML will be sent as HTML. Which means that the whole email should be formatted as HTML.
So for instance, it makes it very easy to send HTML emails from the ACP - Just include HTML in your message! Same goes for users sending private email.
You'll also need to update some of the stock phrases for the registration confirmation email, password change, etc, that contain links or other HTML, and add line breaks <br /> so they still format correctly. And while you're in there you could add your logo and other nice touches!
It's just one pluggin!
Install time: a few seconds!
This is my first published mod so go easy on me. I'm not up for a bunch of support, but it doesn't seem like much should be needed.
And I'd appreciate it if you clicked Install if you use it, and while your at it, nominate it for MOTM!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
You'll also need to update some of the stock phrases for the registration confirmation email, password change, etc, that contain links or other HTML, and add line breaks <br /> so they still format correctly. And while you're in there you could add your logo and other nice touches!
Before I install, where do I edit the stock phrases and put in the <br /> code?
I don't want to mess things up.
I was looking for this for a good while, with this info I'll install.
[QUOTE=T_Richardson;1188037]Before I install, where do I edit the stock phrases and put in the <br /> code?/QUOTE]Goto your Admin control panel and pop-down the Language and Phrases section on the left and then choose Search in Phrase. Note that you can search by the phrase content or by the phrase name. You may want to consult the vb manual for a little background on phrases. You want to look for any emails that your system sends out, such as your "welcomemail".
Pay particular attention to the phrases that are of phrase type "email body text".
Before I install, where do I edit the stock phrases and put in the <br /> code?/QUOTE]Goto your Admin control panel and pop-down the Language and Phrases section on the left and then choose Search in Phrase. Note that you can search by the phrase content or by the phrase name. You may want to consult the vb manual for a little background on phrases. You want to look for any emails that your system sends out, such as your "welcomemail".
Pay particular attention to the phrases that are of phrase type "email body text".
I found these phrases located under "email body text", now, do I need to erase these and put in my HTML codes in them?
This is what is in my "welcomemail"
PHP Code:
$username,
Thanks for registering at $vboptions[bbtitle]! We are glad you have chosen to be a part of our online gaming community and we hope you enjoy your stay.
Yes! To have it appear the same, you'll need to add <br /> for each carriage return. So that's one at the end of each paragraph and another for each new line.
excellent, I was just looking for somethings like this. To get around members sending html email I simply disable right after I send out my emails through the acp, though an option to only allow htmlemails to be sent from the acp would be great
excellent, I was just looking for somethings like this. To get around members sending html email I simply disable right after I send out my emails through the acp, though an option to only allow htmlemails to be sent from the acp would be great
Why prevent users from sending HTML? I suppose they could put some nasties in it,... I hate assuming people are not going to nice!