Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
HTML Email Feature Details »»
HTML Email Feature
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-02-2002 Last Update: Never Installs: 44
 
No support by the author.

Hiyas,

What does it do?
With this hack, your board will have "HTML email" feature.

How does it work?
After applying the hack, your users will be able to choose whether they want PLAIN TEXT emails or HTML messages and mails originated from your site will be sent accordingly. (At the moment works for PM and email notification mails). Your existing users who didnt change their mail settings will recieve the original plain texts mails, while users who asked for HTML mails will get mails in HTML format. All users can anytime change their mail settings inside User CP or by calling the new 2 links with one click that comes with the hack and update member's mail type.

What versions of vbulletin does it work with?
Hack tested with version 2.2.2, 2.2.6, 2.2.8 and 2.2.9 but I believe it will work with any versions > 2.0.3.

Any Screenshots?
See the message below

Planned Future Features:
* Hack will apply to ALL mails originated from your board (At the moment it is for PM and email notification mails)
* Your HTML mails may include compiled data from your board such as "Last X message titles", "Recent Titles from the forum you subscribed", "Last X answered/unanswered messages", "user's incoming personal events", "Incoming general events from your calender" and etc.

I plan to work on this hack only if it's considered useful and used by people. After spending a long time to code/debug/test/publish a hack, it's quite disappointing to see that 2 months later only 3-5 people used (installed) a hack. So if you use the hack, please dont forget to click INSTALL for this hack or for any hack you use!

Thank you and Enjoy..\\=^))
Logician

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-03-2002, 06:28 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a screenshot for "new reply notification email". It's simply a HTML message so you can use any design you like. It's just a sample I use in my board.

Notice that the screenshot is NOT a webpage! It's the EMAIL your members (who choose to recieve HTML mails) gets. It looks like a webpage because it's in HTML format This also clarifies what "HTML email" mean if you dont know the term. In an other words HTML mails are the mails with color/background/images/bold-italic-underlined fonts just like web pages..
Reply With Quote
  #3  
Old 05-03-2002, 06:41 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it easy to customise the email?
Reply With Quote
  #4  
Old 05-03-2002, 06:52 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JohnWarwick
Is it easy to customise the email?
yep.. it's a template in your Admin CP. Simply create your mail in your favorite Web Design enviroment then copy/paste the code into your existing template. Cant be easier..
Reply With Quote
  #5  
Old 05-03-2002, 07:03 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I'll install this
Reply With Quote
  #6  
Old 05-03-2002, 08:24 PM
Robouk5 Robouk5 is offline
 
Join Date: Nov 2001
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has good potential, I may use this =) Thanks
Reply With Quote
  #7  
Old 05-03-2002, 10:19 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, really nice feature
Reply With Quote
  #8  
Old 05-05-2002, 01:00 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You come to my resuce again! I just had a member request that e-mail from our forum come to him in HTML format. What I thought was impossible, you've made possible. I will install this later today for sure.

One quick question though: I'm using the Community Bulletin hack for sending weekly bulletins. Do you know if your hack will send these e-mails as HTML as wel?
Reply With Quote
  #9  
Old 05-05-2002, 04:06 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by mashby
One quick question though: I'm using the Community Bulletin hack for sending weekly bulletins. Do you know if your hack will send these e-mails as HTML as wel?
By default no. But this hack adds a new user profile field to database so by querying this field it's possible to adapt this feature any email originated from your site. I dont know the hack you mentioned however the author of the hack may consider making this adaptation if he likes.
Reply With Quote
  #10  
Old 05-07-2002, 01:54 AM
Swayed Swayed is offline
 
Join Date: May 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was about to start writing this one out myself, but you posted this right before I had to, which I'm glad for because I didn't realize before I started how big of a hack this would be. Saved me alot of time.

One thing to note is that the font in the "HTML/Plain Text Emails" option on the Edit Options page is not the same as the rest of the page. This is easily fixed by modifying the modifyoptions, registeradult and registercoppa templates, and replacing
PHP Code:
<b>HTML/Plain Text Emails?</b
with
PHP Code:
<normalfont><b>HTML/Plain Text Emails?</b></normalfont
Something to point out for those who haven't tried it yet, you can personalize the email in the html email templates by including the same php code that is located in the non-html email templates.

Great hack, Logician.
Reply With Quote
  #11  
Old 05-08-2002, 06:05 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Swayed: Thx, I updated the file..
Reply With Quote
  #12  
Old 06-18-2002, 01:52 AM
JoshFink JoshFink is offline
 
Join Date: Nov 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to put a plain text message at the top of the page in case they are in HTML and they can't read the message?

This is what I would like to put, but I don't know how to make it appear in text and not HTML format :

PHP Code:
--------------------------------------------------------------------------- 
The email you are receiving is in HTML format. If you are having 
trouble reading this
it is because your email 
program does not support HTML email


Please follow the below link to change back to text email

--------------------------------------------------------------------------- 
Thanks

Josh
Reply With Quote
  #13  
Old 06-18-2002, 08:52 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JoshFink
Is there a way to put a plain text message at the top of the page in case they are in HTML and they can't read the message?

This is what I would like to put, but I don't know how to make it appear in text and not HTML format :
Josh you can put in just in the begining of the HTML email template before anything else. Then it will be displayed correctly since no HTML command is parsed yet but it would shown awkardly if user uses HTML. So I wouldnt use it.. You better test it, load the message with both HTML ON and OFF and decide if having this text in your mail justifies the bad look in HTML mails.
Reply With Quote
  #14  
Old 06-18-2002, 12:51 PM
JoshFink JoshFink is offline
 
Join Date: Nov 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply..

Do you have any other suggestions on how I can make a readable message in the beginning if it is text so that I can have a message shown?

I know i've seen then on emails before, just can't remember where.

Thanks

Josh
Reply With Quote
  #15  
Old 06-18-2002, 06:11 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you put the text before anything else, it would be displayed nicely in html-off viewers but would not be nice in HTML mails. On the other hand if you format this text with HTML, it would be nice in HTML mails but other users will see it in HTML too.

I personally prefer to warn the users not in the email but in the screen where they choose to receive HTML mails. It's why I included the hack the special link part to switch user mail option (the part you can change your mail setting with one click without going into your usercp). I add the "click here to get HTML mails" link to normal (non-HTML) email notification template and if the user clicks it, their settings change but they also get a detail warning about the effects of the this change (get garbage mails) and how to correct it if they encounter these effects (go to user cp and revert back to text mails). My board is not a large one but it seems to work for now. I havent got even one complaint from the members that they cant "read" the mails.

This is my way of dealing with HTML mails, use it if it fits to you too
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 04:59 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.09011 seconds
  • Memory Usage 2,357KB
  • Queries Executed 28 (?)
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
  • (3)bbcode_php
  • (3)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
  • (2)pagenav_pagelink
  • (15)post_thanks_box
  • (15)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (15)post_thanks_postbit_info
  • (14)postbit
  • (15)postbit_onlinestatus
  • (15)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