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
  #42  
Old 04-01-2007, 11:51 AM
audis3 audis3 is offline
 
Join Date: Oct 2006
Location: Athens,Greece...
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was active.I wrote the code with the <b> tags and it worked.
The only thing that isn't working is the background color.
I tried <b bgcolor=red> or <bgcolor=red> and didn't work.
Any ideas?
Reply With Quote
  #43  
Old 04-02-2007, 04:12 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 audis3 View Post
It was active.I wrote the code with the <b> tags and it worked.
The only thing that isn't working is the background color.
I tried <b bgcolor=red> or <bgcolor=red> and didn't work.
Any ideas?
Hmmm... this is a very simple mod, just a few lines. It's based on the PHP strip_tags function. I'm surprised its not catching. So a workaround would be to include a basic HTML tag in your post, such as <br />

If some one wants to run down this issue and suggest a fix, please post it here!
Reply With Quote
  #44  
Old 04-05-2007, 11:22 AM
akulion's Avatar
akulion akulion is offline
 
Join Date: Nov 2005
Location: Canada
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

simply awesome!!
thanks!
Reply With Quote
  #45  
Old 04-06-2007, 04:07 AM
cartooner cartooner is offline
 
Join Date: Sep 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bchertov View Post
The <br /> will give you a carriage return with no blank line and a <p> </p> will give you both. Personally I like to code with a <br /> for every carriage return (adding an extra for a blank line)

Totally! But see below!

That still applies. I've help several users switch to HTML>
Ok ...can you give me examples on how to change the Welcome email that is sent to newbies. Also the email that is sent to members who subscribe to threads, how is that changed to HTML??

I really like the hack, but the welcome message and the subscribed threads email is a problem. Could you help??
Reply With Quote
  #46  
Old 04-06-2007, 02:23 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone confirm this if it's going to work fine on v3.6.5 please?
Reply With Quote
  #47  
Old 04-06-2007, 03:14 PM
Maksa Maksa is offline
 
Join Date: Sep 2006
Location: India
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it works with 3.6.5 too i m using the same... great hack
Reply With Quote
  #48  
Old 04-07-2007, 08:58 PM
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 cartooner View Post
Ok ...can you give me examples on how to change the Welcome email that is sent to newbies. Also the email that is sent to members who subscribe to threads, how is that changed to HTML??

I really like the hack, but the welcome message and the subscribed threads email is a problem. Could you help??
Are you seeing problems with those email? The stock message may work just fine as they don't include HTML. If you are having trouble with those messages please describe it.
Reply With Quote
  #49  
Old 04-08-2007, 11:46 PM
cartooner cartooner is offline
 
Join Date: Sep 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some members reported that the email they recieved notifying them of new posts in subscribed thread was garbled after I put in the MOD.

Some too with Welcome Message.

I was wondering if I do the Welcome message all in HTML would that work?? But how would I code it so the message addresses the new member by their username, as it does without the MOD installed.
Reply With Quote
  #50  
Old 04-09-2007, 04:28 PM
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 cartooner View Post
Some members reported that the email they recieved notifying them of new posts in subscribed thread was garbled after I put in the MOD.

Some too with Welcome Message.

I was wondering if I do the Welcome message all in HTML would that work?? But how would I code it so the message addresses the new member by their username, as it does without the MOD installed.
Yes, the idea is that if any of your messages have any HTML then the whole message must be formatted in HTML. You can still use the variables that are used in the plain text message ($<varname> or {1}, etc.)
Reply With Quote
  #51  
Old 04-09-2007, 08:29 PM
needtheend needtheend is offline
 
Join Date: Feb 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do all html codes work ?
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 01:08 AM.


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.07915 seconds
  • Memory Usage 2,312KB
  • 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
  • (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