Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Send emails with HTML as HTML Details »»
Send emails with HTML as HTML
Version: 1.00, by bchertov bchertov is offline
Developer Last Online: Apr 2020 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.4 Rating:
Released: 01-25-2007 Last Update: 01-25-2007 Installs: 168
Uses Plugins
 
No support by the author.

UPDATE: I have tested this on 4.0 Gold and it works! I have released it here:
http://ww.vbulletin.org/forum/showthread.php?t=231532

Hi Folks,

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.

Comments
  #22  
Old 02-15-2007, 07:06 PM
abhimation's Avatar
abhimation abhimation is offline
 
Join Date: Dec 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thnxxx... I was lookin for something like this !!!
Reply With Quote
  #23  
Old 02-22-2007, 02:31 AM
T_Richardson T_Richardson is offline
 
Join Date: Jul 2006
Location: Canada
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.

Thanks,
T
Reply With Quote
  #24  
Old 02-22-2007, 03:40 PM
bchertov's Avatar
bchertov bchertov is offline
 
Join Date: Dec 2004
Location: Sonoma County, CA
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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".
Reply With Quote
  #25  
Old 02-22-2007, 04:04 PM
T_Richardson T_Richardson is offline
 
Join Date: Jul 2006
Location: Canada
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE=bchertov;1188355]
Quote:
Originally Posted by T_Richardson View Post
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.

All the best,
$vboptions[bbtitle
Do I need to replace that with HTML?
Reply With Quote
  #26  
Old 02-23-2007, 04:19 AM
bchertov's Avatar
bchertov bchertov is offline
 
Join Date: Dec 2004
Location: Sonoma County, CA
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by T_Richardson View Post
Do I need to replace that with HTML?
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.
Reply With Quote
  #27  
Old 02-23-2007, 06:39 AM
timrox timrox is offline
 
Join Date: Nov 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i love such elegant solutions, to think i was about to hard-hack about 5 different files! Thanks
Reply With Quote
  #28  
Old 03-01-2007, 10:45 PM
bvtonedog bvtonedog is offline
 
Join Date: Jul 2003
Location: Charlottesville VA
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 html emails to be sent from the acp would be great
Reply With Quote
  #29  
Old 03-02-2007, 03:25 AM
johnny713 johnny713 is offline
 
Join Date: Mar 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I not really sure exactly how this work, but I give it a try. *Installed*
Reply With Quote
  #30  
Old 03-02-2007, 04:28 AM
bchertov's Avatar
bchertov bchertov is offline
 
Join Date: Dec 2004
Location: Sonoma County, CA
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bvtonedog View Post
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 html emails 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!
Reply With Quote
  #31  
Old 03-07-2007, 11:06 AM
Maksa Maksa is offline
 
Join Date: Sep 2006
Location: India
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bchertov thanks a lot for this hack. i was looking for some hack so i can email my users with html i m really happy. thanks a lot.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08007 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete