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)
-   -   Advanced PM Options (https://vborg.vbsupport.ru/showthread.php?t=100152)

akanevsky 11-04-2005 10:00 PM

Advanced PM Options
 
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

krvaricp 11-05-2005 01:32 PM

Nice hack. But can I use this for a member group ?

nexialys 11-05-2005 01:43 PM

this is just great...! :)

Andreas 11-05-2005 02:39 PM

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?

Snake 11-05-2005 02:39 PM

Wow impressive!

akanevsky 11-05-2005 03:04 PM

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. :)

Andreas 11-05-2005 03:27 PM

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')

Boofo 11-05-2005 04:01 PM

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? ;)

akanevsky 11-05-2005 04:24 PM

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? ;)

rb290 11-05-2005 09:12 PM

thanks, installed it!


All times are GMT. The time now is 03:42 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.01613 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete