vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Notification Email (HTML) (https://vborg.vbsupport.ru/showthread.php?t=283541)

amin 05-27-2012 06:17 PM

Notification Email (HTML)
 
Hello vbulletin people,

I'm wondering if there's a way to customize notification email?I would like to use this feature by adding my forum logo and coloring the background. tried to add HTML to AdminCP -> Languages & Phrases -> Search in Phrases but didn't function.

Thank you.

Amin

Yellow Slider 05-27-2012 07:38 PM

Well, there isn't an "easy" way to do this, you're gonna have to change the Content-Type header of the email to text/html for that specific notification. I actually can't, off the top of my head, think of any good reason as to why the content type is set to text/plain, but I guess there is one, so you better not make it text/html globally.

Which notifications are you talking about precisely? PM notifications?

amin 05-27-2012 08:09 PM

Quote:

Originally Posted by Yellow Slider (Post 2333618)
Which notifications are you talking about precisely? PM notifications?

Hello Yellow Slider, yes I want it for PM notification and reply notification so on.

This Feature can help administrator to add more things in the email. Like Facebook and Twitter Notifications. vb notification email very basic needs to upgrade and have more easy looking and very professional email. For example Twitter not just notify you when someone retweet your tweet they also ask you to download Twitter's App to get Notification on you smartphone.

We all knew Newsletter emails might go directly to Junk box! and most of members don't like it. Also Newsletter needs more work and money to make them ready. But with Notification email members want to know all the story.

My forum sending hundreds of emails every day. I can make it much helpful for me and my members.

Why I cant' add the forum logo? why I can't add campaign banner?

I want use the notification email for ads, good looking links, and events.

Yellow Slider 05-27-2012 08:43 PM

Well, you're gonna have to create a plugin such as this:
Hook Location: mail_start
PHP Code:
PHP Code:

if ($vbulletin->session->vars['notificationemail'])
{
    
$headers .= 'Content-Type: text/html' iif($encoding"; charset=\"$encoding\"") . $delimiter;


Then you'd have to put the following line of code everywhere notifications are sent:
PHP Code:

$vbulletin->session->vars['notificationemail'] = true

For example, in the hook location newpost_notification_start.

amin 05-28-2012 01:03 PM

Hi Yellow Slider,

I'll try this thank you very much

Amin


All times are GMT. The time now is 12:57 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.00994 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete