Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 05-27-2012, 06:17 PM
amin's Avatar
amin amin is offline
 
Join Date: Dec 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-27-2012, 07:38 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 05-27-2012, 08:09 PM
amin's Avatar
amin amin is offline
 
Join Date: Dec 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yellow Slider View Post
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.
Reply With Quote
  #4  
Old 05-27-2012, 08:43 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-28-2012, 01:03 PM
amin's Avatar
amin amin is offline
 
Join Date: Dec 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Yellow Slider,

I'll try this thank you very much

Amin
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:41 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.06070 seconds
  • Memory Usage 2,196KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete