PDA

View Full Version : Private Messages Enhancements - Advanced PM Options


akanevsky
06-08-2009, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=215702)

akanevsky
06-09-2009, 12:10 AM
First Post Reserved.

Selene
06-09-2009, 12:42 AM
Very nice : ) Will give it a try.

Daniel_HBK
06-09-2009, 01:05 AM
nice hack :)

SocialNetworkBuzz
06-09-2009, 06:10 AM
Could you add a function that the usergroup can only PM a admin to help protect from new members spamming in pm's yet can still contact a admin for help

TAIFUN_T
06-09-2009, 10:19 PM
Very nice! I installed..

plothook
06-19-2009, 01:25 PM
If you enable the "APO: Disable Save Copy Feature on 3.8.x" plugin, it breaks the template group names in the style manager, as require_once(DIR . '/includes/adminfunctions_template.php'); at init_startup prevents /admincp/template.php from calling the file again with $phrasegroups = array('style');

akanevsky
06-19-2009, 02:41 PM
If you enable the "APO: Disable Save Copy Feature on 3.8.x" plugin, it breaks the template group names in the style manager, as require_once(DIR . '/includes/adminfunctions_template.php'); at init_startup prevents /admincp/template.php from calling the file again with $phrasegroups = array('style');

Really? Ok, that will be fixed.

plothook
06-21-2009, 03:15 PM
Why include/require the adminfunctions_template.php file anyway? You seem to include it in several of the plugins of this mod so you can use the is_newer_version() function.

I think the built-in PHP function version_compare() (http://us2.php.net/manual/en/function.version-compare.php) would do what you want without the overhead and side-effects of including adminfunctions_template.php.

Oblivion Knight
07-02-2009, 09:28 AM
Just a thought, does this alter any behaviour on the newly built-in "PM Quick Reply" system?

Fynnon
07-02-2009, 09:53 AM
Attachments in PM would be nice....

Oblivion Knight
07-02-2009, 10:41 AM
Attachments in PM would be nice....https://vborg.vbsupport.ru/showthread.php?t=127113

Makc666
07-02-2009, 11:37 AM
Just a thought, does this alter any behaviour on the newly built-in "PM Quick Reply" system?

As I can see - no.

akanevsky
07-02-2009, 07:39 PM
Just a thought, does this alter any behaviour on the newly built-in "PM Quick Reply" system?

No, it does not.

Fynnon
07-06-2009, 11:59 AM
https://vborg.vbsupport.ru/showthread.php?t=127113

Yeah but that is very old mod, made for vB 3.6.x and i was just suggesting Psionic Vision because he`s a better coder to maybe think about integrating this feature in this mod or make another one 10x

Makc666
07-08-2009, 09:36 AM
1.3.1
[+] The checkbox "save copy" is now disabled on 3.8.x, since 3.8.x already has such a feature.


I can't figure why but this one doesn't work.

Tested on several forums. Even clean one.

Edit:

Found :D

<plugin active="0">

<plugin active="0">
<title>APO: Disable Save Copy Feature on 3.8.x</title>
<hookname>init_startup</hookname>
<phpcode><![CDATA[// fetch styling libraries
require_once(DIR . '/includes/adminfunctions_template.php');

// disable save copy feature
if (!is_newer_version('3.8.0', $vbulletin->options['templateversion']))
{
define('ADVPMOPTIONS_NO_SAVECOPY', true);
}]]></phpcode>
</plugin>

+

This one also have to be fixed: 1839416

ollie303
07-12-2009, 07:07 PM
hi

am i able to set as default for all users to receive email notification on new PMs ?

cheers

mindfrost82
08-13-2009, 01:51 AM
I can't figure why but this one doesn't work.

Tested on several forums. Even clean one.

Edit:

Found :D

<plugin active="0">

<plugin active="0">
<title>APO: Disable Save Copy Feature on 3.8.x</title>
<hookname>init_startup</hookname>
<phpcode><![CDATA[// fetch styling libraries
require_once(DIR . '/includes/adminfunctions_template.php');

// disable save copy feature
if (!is_newer_version('3.8.0', $vbulletin->options['templateversion']))
{
define('ADVPMOPTIONS_NO_SAVECOPY', true);
}]]></phpcode>
</plugin>

+

This one also have to be fixed: 1839416

Where is this code and what needs to be changed? I'm also getting this option on 3.8.3.

christon26
08-13-2009, 03:54 AM
Hi! I installed this mod...then changed something in my usercp options, I got this error message which didn't happen after disabling the product to test:

warning: Invalid argument supplied for foreach() in [path]/includes/class_core.php on line 1773

Line 1773 reads:

foreach ($variables AS $varname => $vartype)

Any ideas on how to fix? I'd love to use this mod lol

akanevsky
08-15-2009, 01:03 PM
Released version 1.3.2 that fixed the above bugs. :)

christon26
08-17-2009, 12:14 AM
Released version 1.3.2 that fixed the above bugs. :)

Awesome! Thanx so much :D

christon26
08-18-2009, 08:03 PM
Hi Psionic...I just wanted to let you know of an issue I had when I updated this mod, I did not have this issue with the first install, it only happened with the update

All my template group names in the style manager went screwy...they said "Templates" rather than for example, "Breadcrumb/Navigation Templates"
Please check this thread for more details: http://www.vbulletin.com/forum/showthread.php?t=315639

After speaking with support, they gave me a series of steps, but I decided to uninstall your mod first to see if that was the cause of the issue as I had installed/uninstalled 2 mods that day and updated this one, and as soon as I uninstalled this mod, the issue resolved itself, I have no idea why it did this, if it was maybe a combination of things and your's just put the final lid on it or not LOL but thought you might want to look into it

Matrixthestar
09-08-2009, 08:41 PM
I want
to check the save a cope box
how??????????????????

cliffhanger
09-12-2009, 02:57 PM
I still want members to be able to private message admins even if the PM is turned off for those members. They still need to be able to message admins or reply to them but not have the permission to send a PM to anyone else. I don't see this feature listed. Thanks!

Speysider
01-08-2010, 04:58 PM
Hi Psionic...I just wanted to let you know of an issue I had when I updated this mod, I did not have this issue with the first install, it only happened with the update

All my template group names in the style manager went screwy...they said "Templates" rather than for example, "Breadcrumb/Navigation Templates"
Please check this thread for more details: http://www.vbulletin.com/forum/showthread.php?t=315639

After speaking with support, they gave me a series of steps, but I decided to uninstall your mod first to see if that was the cause of the issue as I had installed/uninstalled 2 mods that day and updated this one, and as soon as I uninstalled this mod, the issue resolved itself, I have no idea why it did this, if it was maybe a combination of things and your's just put the final lid on it or not LOL but thought you might want to look into it

Is this issue gonna be fixed? I wanna use this hack, but the Template Category names change to Templates.

If the issue is not fixed, then I strongly advise installing this, unless you know what every template group will be.