vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   send email with a high priority (https://vborg.vbsupport.ru/showthread.php?t=105703)

Delphiprogrammi 01-18-2006 10:00 PM

send email with a high priority
 
hi people,

What does this modification do ?

This modifies the admincp => users => email users system.It provides you with a choice wheter you want to email with a high priority or not.High priority simply means there will be a little red exclamation icon infront of the message subject.Just Like the emails you get sometimes from jelsoft "vbulletin product updates"

files to modify:2
  • /forum/admincp/email.php
  • /forum/includes/class_mail.php

to install and use this small modification do the folowwing

in /forum/admicp/email.php

find this code

PHP Code:

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

directly below it add this code

PHP Code:

print_yes_no_row('Send Email With High Priority ?','email_high',0); 

in /forum/admincp/email.php

find this code
PHP Code:

$vbulletin->input->clean_array_gpc('p', array(
        
'user'              => TYPE_ARRAY,
        
'profile'           => TYPE_ARRAY,
        
'serializeduser'    => TYPE_STR,
        
'serializedprofile' => TYPE_STR,
        
'septext'           => TYPE_NOTRIM,
        
'perpage'           => TYPE_UINT,
        
'startat'           => TYPE_UINT,
        
'test'              => TYPE_BOOL,
        
'from'              => TYPE_STR,
        
'subject'           => TYPE_STR,
        
'message'           => TYPE_STR

below 'message' add
PHP Code:

'emailhigh'         => TYPE_BOOL

find

PHP Code:

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

directly below add this code

PHP Code:

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

in /forum/includes/class_mail.php find this code

PHP Code:

$headers .= 'X-Priority: 3' $delimiter

replace that with this code

PHP Code:

if($_POST['email_high'])
{
      
$headers .='X-Priority:1' $delimiter;
      
$headers .='X-MSMail-Priority:High' $delimiter;
}
else
{

       
$headers .= 'X-Priority: 3' $delimiter;


save all files upload (to there default location) in ascii mode

all done

Working fine with vbulletin 3.5.4

nhacso 01-19-2006 01:00 PM

- Delphiprogrammi, if use this way => Email will move Inbox or Bulk !?

- And with experience's Delphiprogrammi, every send email should use how many "Email send at once" as best? (Because my board now have ~ 16.000 members; Every I send email forum AdminCp, a lots every always move to Bulk mail) :surprised:

Delphiprogrammi 01-19-2006 01:31 PM

all this modofication does is provide you with a choice to send high priority email or not it doesn't interfere with anything else

nhacso 01-20-2006 11:20 AM

I understood. Thanks Delphiprogrammi. :nervous:

Delphiprogrammi 01-20-2006 12:17 PM

hi people,

Anybody want the "request a read receipt" feature ? i'm willing to add it but again if you have a large board you'll receive a large amount of read receipts ... might not be what you want ....

ztempuser 09-16-2006 04:48 PM

bringing the old back
this iwll work in 3.6.1?

ztempuser 09-17-2006 12:28 AM

i just did this mod and works great on 3.6.0 thanks:)


All times are GMT. The time now is 02:29 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.01100 seconds
  • Memory Usage 1,739KB
  • 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
  • (8)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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