Back to vBulletin 3.5 Add-ons

send email with a high priority
Mod Version: 1.01, by Delphiprogrammi

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 7
Released: 19 Jan 2006 Last Update: Never Downloads: 2
Not Supported Code Changes  

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

Download

No files for download.

Supporters / CoAuthors

  • Delphiprogrammi

Screenshots

 


vblts.ru supports vBulletin®, 2022-2025