vb.org Archive

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

lcn 03-12-2013 03:13 PM

Can anyone confirm that this works with 4.2.0 ?

Dragon Company 03-27-2013 06:39 PM

Quote:

Originally Posted by bchertov (Post 2409217)
I release this hack into the public domain. Anybody is welcome to send me a fix and I'll update it or release a new hack based on this - but please give me credit for original design.

But Im' more a designer than a coder, so I won't be usefull.
Anyway it works perfectly on my 4.2.0. Problem was my server with too agressive cache.

Thanks again for all what you've done

bchertov 03-27-2013 06:46 PM

Quote:

Originally Posted by Dragon Company (Post 2412567)
But Im' more a designer than a coder, so I won't be usefull.
Anyway it works perfectly on my 4.2.0. Problem was my server with too agressive cache.

Thanks again for all what you've done

Thanks for letting me know Dragon!

This is a risk you take with this hack - I'm guess HTML email are more likely to marked as spam. So if you are not recieving the emails that this hack sends out, please check your spam filters.

khoking (and anybody else using 4.2) can you plesae chime in if infact this hack will work with 4.2? Again, if the emails get trapped by a spam filter, it doesn't mean that this hack doesn't work!

Nonowmana 03-27-2013 11:42 PM

for version 4.2

First step:

In admincp/email.php Find:
PHP Code:

print_textarea_row($vbphrase['message_email'], 'message'''1050); 

add just below
PHP Code:

print_yes_no_row('Send HTML Email?''sendhtml'0); 

Find:
PHP Code:

construct_hidden_code('test'$vbulletin->GPC['test']); 

add just below

PHP Code:

construct_hidden_code('sendhtml'$_POST['sendhtml']); 

step 2

in includes/class_mail.php Find:

PHP Code:

$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter

replaced by:

PHP Code:

if($_POST['sendhtml'])  { 
  
$headers .= 'Content-Type: text/html' iif($encoding"; charset=\"$encoding\"") . $delimiter
}else{ 
  
$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter


source: http://www.vbulletin-ressources.com/...032#post141032

synseal 06-07-2013 03:22 PM

Quote:

Originally Posted by bchertov (Post 2412569)
Thanks for letting me know Dragon!

This is a risk you take with this hack - I'm guess HTML email are more likely to marked as spam. So if you are not recieving the emails that this hack sends out, please check your spam filters.

khoking (and anybody else using 4.2) can you plesae chime in if infact this hack will work with 4.2? Again, if the emails get trapped by a spam filter, it doesn't mean that this hack doesn't work!

This appears to be working fine for me after testing using vb 4.2.0 pl3 with vbseo.

craigvm 11-12-2013 07:27 PM

this mod is working fine for me on vb 4.2.2

stevieb 02-17-2014 10:59 AM

Quote:

Originally Posted by Nonowmana (Post 2412609)
for version 4.2

First step:

In admincp/email.php Find:
PHP Code:

print_textarea_row($vbphrase['message_email'], 'message'''1050); 

add just below
PHP Code:

print_yes_no_row('Send HTML Email?''sendhtml'0); 

Find:
PHP Code:

construct_hidden_code('test'$vbulletin->GPC['test']); 

add just below

PHP Code:

construct_hidden_code('sendhtml'$_POST['sendhtml']); 

step 2

in includes/class_mail.php Find:

PHP Code:

$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter

replaced by:

PHP Code:

if($_POST['sendhtml'])  { 
  
$headers .= 'Content-Type: text/html' iif($encoding"; charset=\"$encoding\"") . $delimiter
}else{ 
  
$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter


source: http://www.vbulletin-ressources.com/...032#post141032

Hi, thanks for this - will test it shortly..... :)

stevieb 09-13-2014 12:31 PM

Quote:

Originally Posted by Nonowmana (Post 2412609)
for version 4.2

First step:

In admincp/email.php Find:
PHP Code:

print_textarea_row($vbphrase['message_email'], 'message'''1050); 

add just below
PHP Code:

print_yes_no_row('Send HTML Email?''sendhtml'0); 

Find:
PHP Code:

construct_hidden_code('test'$vbulletin->GPC['test']); 

add just below

PHP Code:

construct_hidden_code('sendhtml'$_POST['sendhtml']); 

step 2

in includes/class_mail.php Find:

PHP Code:

$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter

replaced by:

PHP Code:

if($_POST['sendhtml'])  { 
  
$headers .= 'Content-Type: text/html' iif($encoding"; charset=\"$encoding\"") . $delimiter
}else{ 
  
$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter


source: http://www.vbulletin-ressources.com/...032#post141032

Hi

Do you do this after installing the mod or do we just do this and not upload the mod? Specifically for vB 4.2

Art Andrews 09-18-2014 12:14 AM

This is a great mod, but one of the issues we are having is that all of the text in a notification, especially if there is a quote involved, is one large block with no coding applied. Is there any way to change this so actually content of the email is formated as well?

stevieb 10-08-2014 04:57 PM

Quote:

Originally Posted by Art Andrews (Post 2515558)
This is a great mod, but one of the issues we are having is that all of the text in a notification, especially if there is a quote involved, is one large block with no coding applied. Is there any way to change this so actually content of the email is formated as well?

I added divs (HTML) wrapped around the $text (or $message) and that formats the PM alert to an extent. A multi quote gets messy.

However I've since removed the actual PM text and instead added a login link so our users must visit the forum to view PM's.


All times are GMT. The time now is 03:56 PM.

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.01419 seconds
  • Memory Usage 1,782KB
  • 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
  • (18)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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