Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced PM Options Details »»
Advanced PM Options
Version: 1.3.2, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 11-04-2005 Last Update: 08-14-2009 Installs: 155
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*===================================*\
|| Advanced PM Options
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Aug 15, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*===================================*/

DESCRIPTION

This hack enhances the usability of private messaging system by adding a few administrative and member options.

STATISTICS

File Uploads: 1
Products to Install: 1


FEATURES

Adds the Following Options to New PM Screen:
  • Checkbox 'Delete Original PM'.
Adds the Following User CP Settings:
  • User CP Setting: 'Enable "save copy" checkbox by default'. (disabled on 3.8.x and above)
  • User CP Setting: 'Enable "request receipt" checkbox by default'.
  • User CP Setting: 'Enable "delete original message" checkbox by default'.
Add the Following Usergroup Settings:
  • Disable Sending of Private Messages

VERSION HISTORY

1.3.2
[F] Fixed a few bugs that were found in 1.3.1.

1.3.1
[+] The checkbox "save copy" is now disabled on 3.8.x, since 3.8.x already has such a feature.

1.3.0
[+] The hack is now compatible with vBulletin 3.5.x - 3.8.x.
[+] Eliminated all template edits.

1.2.3
[F] Fixed a bug associated with a new hook placement in vBulletin 3.6.

1.2.2
[+] The modification is now compatible with vBulletin 3.6.

1.2.1
[+] Pm count is now updated after a pm is deleted via "delete original pm".

1.2.0
[+] Added a new usergroup permission: "Disable Sending PMs". Useful when you want to only disallow sending of PMs by a certain usergroup, but allow incoming pms.

1.0.0
Initial Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-05-2005, 01:32 PM
krvaricp krvaricp is offline
 
Join Date: Oct 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack. But can I use this for a member group ?
Reply With Quote
  #3  
Old 11-05-2005, 01:43 PM
nexialys
Guest
 
Posts: n/a
Default

this is just great...!
Reply With Quote
  #4  
Old 11-05-2005, 02:39 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To avoid the private.php edit:

private_complete
PHP Code:
if ($_REQUEST['do'] == 'newpm')
{
    
$checked['savecopy'] = ($vbulletin->userinfo['advpmoptions_savecopy'] ? 'checked="checked"' '');
    
$checked['receipt'] = ($vbulletin->userinfo['advpmoptions_receipt'] : 'checked="checked"');
    
$checked['deleteoriginal'] = ($vbulletin->userinfo['advpmoptions_deleteoriginal'] : 'checked="checked"' '');
    

Also, doesn't this cause problems when you change the default selection and hit preview?
Reply With Quote
  #5  
Old 11-05-2005, 02:39 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow impressive!
Reply With Quote
  #6  
Old 11-05-2005, 03:04 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Also, doesn't this cause problems when you change the default selection and hit preview?
Nope, my code does not. Thank for the codemod->plugin advice.
Reply With Quote
  #7  
Old 11-05-2005, 03:27 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're right, the call is only done for a blank PM - which means tha my code is wrong
Must also check for !defined('PMPREVIEW')
Reply With Quote
  #8  
Old 11-05-2005, 04:01 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
You're right, the call is only done for a blank PM - which means tha my code is wrong
Must also check for !defined('PMPREVIEW')
Are you going to update yours then?
Reply With Quote
  #9  
Old 11-05-2005, 04:24 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Are you going to update yours then?
You don't think that I'm not going to update my hack with fixed code, are you?
Reply With Quote
  #10  
Old 11-05-2005, 09:12 PM
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, installed it!
Reply With Quote
Reply


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 01:01 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.05122 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete