vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Send emails with HTML as HTML (https://vborg.vbsupport.ru/showthread.php?t=137593)

audis3 04-01-2007 11:51 AM

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?

bchertov 04-02-2007 04:12 AM

Quote:

Originally Posted by audis3 (Post 1217429)
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!

akulion 04-05-2007 11:22 AM

simply awesome!!
thanks! :D

cartooner 04-06-2007 04:07 AM

Quote:

Originally Posted by bchertov (Post 1204601)
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??

Snake 04-06-2007 02:23 PM

Can anyone confirm this if it's going to work fine on v3.6.5 please?

Maksa 04-06-2007 03:14 PM

it works with 3.6.5 too :) i m using the same... great hack :)

bchertov 04-07-2007 08:58 PM

Quote:

Originally Posted by cartooner (Post 1220804)
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.

cartooner 04-08-2007 11:46 PM

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.

bchertov 04-09-2007 04:28 PM

Quote:

Originally Posted by cartooner (Post 1222958)
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.)

needtheend 04-09-2007 08:29 PM

do all html codes work ?

bchertov 04-10-2007 01:53 AM

Quote:

Originally Posted by needtheend (Post 1223575)
do all html codes work ?

It's based on the PHP strip_tags function. So anything it recognizes as a HTML tag would be supported.

Snake 06-12-2007 10:53 PM

Works on 3.6.7?

bchertov 06-13-2007 05:41 PM

Quote:

Originally Posted by Snake (Post 1267226)
Works on 3.6.7?

I haven't tried it yet, but I'd be very surprised if it didn't. Anybody else try it on 3.6.7

webmaster74 08-11-2007 05:50 PM

what a very lovely mod.

really one of the best.

not only install it, but also nominate it ! it works lovely with vb 3.6.8

it deserves your nomination!

I love it.

bchertov 08-12-2007 09:59 PM

Quote:

Originally Posted by webmaster74 (Post 1315320)
what a very lovely mod.

really one of the best.

not only install it, but also nominate it !

it deserves your nomination!

I love it.

Thanks!

webmaster74 08-17-2007 09:07 PM

Hi.

is there a way to make this mod also work for sending html-rich email notices (such as about new replies to a topic the user subscribed to) ???

bchertov 08-18-2007 08:20 AM

Quote:

Originally Posted by webmaster74 (Post 1319881)
Hi.

is there a way to make this mod also work for sending html-rich email notices (such as about new replies to a topic the user subscribed to) ???

It looks for proper HTML codes such as <b>. So any email that gets sent out with an HTML tag in it will be sent as HTML.

So you could change the phrase that is used to send out new replies notices to include at least one HTML tag, but be careful! Note that that carriage returns in the code will need to be changed to <br /> and it may need some other formatting changes to render correctly in HTML.

jfreels 09-04-2007 04:58 PM

Very nice addition, thanks!

njoker555 11-01-2007 05:30 PM

excellent mod lol :D works perfectly on 3.6.8 :D

Tom_S 11-01-2007 05:59 PM

Actually it don't. It works perfect for sending. Sign yourself up as a new member and look what the new activation email looks like when it sends it to you. To avoid that I just install this mod when I use it to send html email and uninstall it when I am done until someone comes up with a fix.

njoker555 11-01-2007 06:14 PM

Quote:

Originally Posted by Tom_S (Post 1373650)
Actually it don't. It works perfect for sending. Sign yourself up as a new member and look what the new activation email looks like when it sends it to you. To avoid that I just install this mod when I use it to send html email and uninstall it when I am done until someone comes up with a fix.

really? i just sent myself a password reminder and it worked, i made a new users and tried it, waiting for activation email lol, dont know why its taking so long :/ but if it works like u said, i'll do the same as you do :)

thanks!

Tom_S 11-01-2007 06:40 PM

Don't get me wrong..I love the mod..It isn't that big of a deal for me to install and un-install for the luxury of using it. If someone comes up with a fix then that is a bonus. If not. I'm still good. ;)

bchertov 11-02-2007 04:23 AM

Quote:

Originally Posted by Tom_S (Post 1373650)
Actually it don't. It works perfect for sending. Sign yourself up as a new member and look what the new activation email looks like when it sends it to you. To avoid that I just install this mod when I use it to send html email and uninstall it when I am done until someone comes up with a fix.

Please post what you see (or describe it). I presume this is a case where mod worked just fine but the message being sent contains HTML even though it is formatted to be sent as plain text (ie with carriage returns rather than <br>s or <P>'s.

To fix, just edit the phrase than contains the email body and either remove all HTML or add more so it formats correctly with when rendered as HTML.

Tom_S 12-31-2007 12:31 AM

I must have missed this post. That is what I said. I would have to go to each of what VB sends out and adjust it accordingly with html edits to make it work and I am not sure what all is actually sent out. I never checked. Again. Not a problem. At some point I may do that however. I like it very much and it isn't an issue installing and uninstalling for use.

Tom_S 12-31-2007 08:02 PM

As soon as I posted that I now have a problem with it today for the first time. I have it making quotes " " and apostrophe's ' into boxes for whatever reason. It figures when I am counting down the hours and minutes when I send out the first newsletter of the new year! LOL

bchertov 01-01-2008 04:59 PM

Quote:

Originally Posted by Tom_S (Post 1412825)
As soon as I posted that I now have a problem with it today for the first time. I have it making quotes " " and apostrophe's ' into boxes for whatever reason. It figures when I am counting down the hours and minutes when I send out the first newsletter of the new year! LOL

Hi Tom.

I think your issue is with the email encoding (UTF-8). If there is HTML codes for those characters (such as &quot?) try switching to them.

Tom_S 01-02-2008 04:17 AM

I will give that a shot. I ended up sending it out like that with apologies. It got late. I had ones that received theirs in Yahoo mail that said it didn't show that way so I have no idea why it did for me when I tested it. I received it that way in both Outlook and Outlook Express with the boxes. I have been holding off on a few things until version 7 of VB is debugged to see what direction we go with that. I appreciate the help on it bchertov. I will try that and see if it helps.

Todecay 01-03-2008 09:09 PM

simple but a very sweet and usefull mod. Thanks m8!

redraider 03-27-2008 11:08 PM

Great plugin, thanks!

Flep 05-13-2008 02:53 PM

It does not work on my 3.7.0 :(

Flep 05-13-2008 03:00 PM

ops... sorry
It works !
I just had to set yes Allow Overwrite during installation.

Thank you !

jburnette84 05-15-2008 01:55 PM

Works perfect! Thanks so much.

jamyk 06-24-2008 12:39 PM

Thanks so much

theparentpack 01-21-2009 02:27 PM

Is it possible to restrict usage to the admin only?

Quote:

Originally Posted by redg8r (Post 1168981)
No one asked, so Im curious, is it possible to send html thru the public email contact form (sendmessage.php)? if so, I'd be very worried.

If its an admin only function that works only thru the CP, then I'll gladly install.

Thanks

Quote:

Originally Posted by bchertov (Post 1169018)
Yes, this will allow users to send private HTML email.


chriske 04-02-2009 10:18 AM

Quote:

Originally Posted by theparentpack (Post 1720163)
Is it possible to restrict usage to the admin only?

good question, wondering who has got a solution?

GraphiX2004 04-07-2009 03:10 PM

does this work on v3.8.1?

JamesGunner 12-23-2009 08:41 PM

Are you guys going to port this to vb4? I like this little plugin!

bchertov 12-24-2009 04:31 PM

Quote:

Originally Posted by JamesGunner (Post 1936796)
Are you guys going to port this to vb4? I like this little plugin!

Well, thanks! I imagine so, but not for a while. It's really quite simple - check out the code! You are welcome to port it if you like - the biggest issue would be verifying the hook name and the appropriate variable to check to see if its changed.

bchertov 12-29-2009 05:18 AM

I have tested this on 4.0 Gold and it works! I have released it here:
https://vborg.vbsupport.ru/showthread.php?t=231532

VIPTV 04-30-2011 02:59 AM

will this work properly with vb 3.7.2 PL1 ?


All times are GMT. The time now is 06:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01404 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete