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!

Barakat 11-06-2005 01:42 AM

installed thanks

Boofo 11-06-2005 05:47 AM

Quote:

Originally Posted by Dark Visor
You don't think that I'm not going to update my hack with fixed code, are you? ;)

The quote is who that message was referring to. ;)

Wordplay 11-06-2005 07:56 AM

Quote:

Originally Posted by Andreas
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?

is private complete a template? i cant find it...

Boofo 11-06-2005 09:58 AM

Quote:

Originally Posted by Wordplay
is private complete a template? i cant find it...

It's a hook. ;)

akanevsky 11-06-2005 10:20 AM

Quote:

The quote is who that message was referring to.
...

Quote:

is private complete a template? i cant find it...
Wait for updated version, it'll be in there. With a notice that Boofo may not use it cause he is not being nice. He didn't even say 'thanks' for the hack I ported earlier... Idk why though. :devious: :devious: :devious:

By the way, just so you know - Kirdy's code is messed up. Wrong conditional syntax..

Boofo 11-06-2005 10:43 AM

Quote:

Originally Posted by Dark Visor
...



Wait for updated version, it'll be in there. With a notice that Boofo may not use it cause he is not being nice. He didn't even say 'thanks' for the hack I ported earlier... Idk why though. :devious: :devious: :devious:

By the way, just so you know - Kirdy's code is messed up. Wrong conditional syntax..

Make sure you put that is big letters in the notice. I might miss it. ;)

As far as the thanks, I will when I eventaully install it and use it, as soon as I see that all is well with it and no more problems. ;)

akanevsky 11-06-2005 11:48 AM

Quote:

Make sure you put that is big letters in the notice. I might miss it.
Will do for sure ;)

Quote:

As far as the thanks, I will when I eventaully install it and use it, as soon as I see that all is well with it and no more problems.
Yeah, right...

Boofo 11-06-2005 12:34 PM

Quote:

Originally Posted by Dark Visor
Yeah, right...

Nice attitude. ;)

Koopa 11-06-2005 02:45 PM

Ooh nice, a treat for contributing members ;)

akanevsky 11-06-2005 04:45 PM

Hack Updated: Now no code hacks are required.
To upgrade, simply overwrite the plugin XML and cancel the code hacks from the prev. version.

Quote:

Nice attitude.
Nah, it's just I know that you will never say anything good about my hacks...

Boofo 11-06-2005 09:39 PM

Quote:

Originally Posted by Dark Visor
Hack Updated: Now no code hacks are required.
To upgrade, simply overwrite the plugin XML and cancel the code hacks from the prev. version.



Nah, it's just I know that you will never say anything good about my hacks...

Well, to make up for that, I think this hack is great! About time we started seeing hacks combined like this one is. ;)

How's that? ;)

Chris M 11-06-2005 09:41 PM

Quote:

Originally Posted by Dark Visor
Hack Updated: Now no code hacks are required.
To upgrade, simply overwrite the plugin XML and cancel the code hacks from the prev. version.



Nah, it's just I know that you will never say anything good about my hacks...

Moved to the 3.5 Plugins forum :)

Chris

Wordplay 11-13-2005 06:24 AM

thanks for the hack, installed! everything works flawlessly.

akanevsky 11-13-2005 11:33 AM

Quote:

Moved to the 3.5 Plugins forum

Chris
Thanks.

Quote:

everything works flawlessly
Glad to hear that :)

Wordplay 11-13-2005 09:40 PM

upon installing this my profile options got messed up and now look like this:
https://vborg.vbsupport.ru/

http://img454.imageshack.us/img454/6...kisthis0mu.png

akanevsky 11-13-2005 10:30 PM

Quote:

Originally Posted by Wordplay
upon installing this my profile options got messed up and now look like this:
http://img454.imageshack.us/img454/6...this0mu.th.png

http://img454.imageshack.us/img454/6...kisthis0mu.png

Are you sure that it is after installing my hack? Cause nobody else gets this error. And you, according to the screen, have a lot more hacks installed.

biggjoe 11-14-2005 12:12 AM

Psionic Vision;

Thanks for the hack! Very clean and simple, works flawlessly on vB 3.5.1

J.

Wordplay 11-14-2005 09:55 AM

certainly, i wouldn't wrongly accuse anybody of anything. that would suck majorly, but when i installed the buddy hack before that and checked it, it worked fine then. but after installing your hack that thing happened. thats why i believe its your hack.

Zachariah 11-14-2005 12:23 PM

Thank you Sir, you saved me the trouble.

/me says: This should be default on VB3.5x Install.

Boofo 11-14-2005 12:34 PM

Quote:

Originally Posted by Zachariah
Thank you Sir, you saved me the trouble.

[high]* Zachariah says: This should be default on VB3.5x Install.[/high]

LMAO Like you could have coded something this elaborate. ;)

Zachariah 11-14-2005 12:44 PM

Quote:

Originally Posted by Boofo
LMAO Like you could have coded something this elaborate. ;)

Naa, I end up usen a hammer or a axe. Sexy is not on my list when I code.

akanevsky 11-14-2005 05:42 PM

Quote:

* Zachariah says: This should be default on VB3.5x Install.
Quote:

LMAO Like you could have coded something this elaborate.
Quote:

Naa, I end up usen a hammer or a axe. Sexy is not on my list when I code.
LOL Thx for positive feedback.

JsnakeJ 12-17-2005 09:36 PM

Its showing up on the admincp page but not the edit options pages.

akanevsky 12-17-2005 10:25 PM

Incomplete / Incorrect Installation.
Try again.

rfonseca 12-18-2005 01:13 AM

Thanks for this. My folks have been asking for this kind of control for a while.

akanevsky 12-26-2005 12:29 PM

:banana: UPDATE: VERSION 1.2.0 :banana:

NEW FEATURES: See Changelog (Post #1).
NEW SCREENSHOTS: Screenshot #4.

TO UPGRADE:
1. Do template change for usercp_shell.
2. Upload bitfield xml as specified in instructions.
3. Re-upload product xml with overwrite option turned on.

TheProfessor 12-26-2005 03:26 PM

I receive this error with the new version:

PHP Code:

Fatal errorCannot use string offset as an array in /***/***/***/includes/class_bitfield_builder.php on line 312 

Any fix?

akanevsky 12-26-2005 03:31 PM

Why would you receive that error? Just installed it on a clean 3.5.2 board, everything is fine...
Must be your bitfield builder is broken.

TheProfessor 12-26-2005 03:45 PM

I'm running a 3.5.0 version and I don't think it's such a huge diffenrece to 3.5.2 - could you maybe check what kind of code in your plugin results in this error message?

Cheers, Max!

akanevsky 12-26-2005 03:47 PM

My hack does not modify bitfuild builder class ( which is where your error occurs ). Therefore, the problem is not caused by this hack. It caused by something else.


All times are GMT. The time now is 11:58 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.01468 seconds
  • Memory Usage 1,836KB
  • 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
  • (3)bbcode_php_printable
  • (23)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
  • (40)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