vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - PM User on Thread Deletion (https://vborg.vbsupport.ru/showthread.php?t=187263)

toonysnn 08-04-2008 10:00 PM

PM User on Thread Deletion
 
<font size="3">Modification Support has been dropped.</font>

Good day.

toonysnn 08-05-2008 08:24 AM

Release Notes
v1.0.1 (Unreleased)
  • Adds "on Move Thread" function
  • Adds "on Delete Post(s)" function
v1.0.0
  • Initial release for 3.7 (Note: There may be code changes in other vB versions for postings.php!)
    PS: If anyone sees a hook for where I had added the code, please let me know. I coded this around 3 AM and didn't want to read anything, just type. :p
Common Problems / FAQ
- I get a white page with tons of codes or php on it. What is this?
This is a coding error, if you receive this, please PM me your website. It's quite possible it's not compatible with the vBulletin version you are running.
If you are running 3.7.2 PL1+, then try adding if($pmdm->errors) die(print_r($pmdm->errors)); and posting the results here.

- I don't see the Private Message in my sent items. Is this a problem?
No. This is how it was programmed. It was only coded to send to the user.

- If I delete a thread of my own, do I receive a private message?
Yes. I thought, maybe, if your account was hacked/cracked, that you could know what threads of your own were deleted. I see this in several cases of my friend's boards. Never be too careful. (There's also the possibility that they delete the PM, but hey, not all of them stay online enough to notice a new PM. They might not even want to touch the PM box.) I'll probably stop this function in the next update.

- Does any data get sent to you?
No. I was considering implementing a "if there's a error, send to email" type of function, but there was also the possibility that user's didn't want any data submitted without their permission.



Screenshots:

boxerman 08-05-2008 09:51 AM

First one :)

Thanks
*installed*


P.S how do you add a reason?

toonysnn 08-05-2008 10:07 AM

Quote:

Originally Posted by boxerman (Post 1591763)
First one :)

Thanks
*installed*


P.S how do you add a reason?

Reasons are vBulletin default coding, you'll see the "Reason to Delete:" box when you're deleting the thread(s).

bokmade 08-05-2008 10:26 AM

- Can You Add Option For Move or Edit ..!!

Install ..

toonysnn 08-05-2008 10:30 AM

Yes, I was just thinking about the move thread "PM User" mod.
I'll create that now.

If anyone has any errors with this mod, please let me know. :)

brucao 08-05-2008 03:44 PM

And a 'post delete' PM too...
With options in Admin CP.

activate PM to deleted threads:
activate PM to deleted posts:
activate PM to moved threads:
.
.
.

Gonna install as soon as I get home!
Thank you!

toonysnn 08-05-2008 06:21 PM

Interesting ideas. Will try to have them done ASAP. I have several projects going on.

Thanks for the suggestion.

Fraxter 08-05-2008 09:27 PM

A good start for this addon. But this addon isn?t good, before you have the other options:

PM delete Post
PM move Post/Thread

Say me, how many times you delete a thread and a post? Most of the times you delete a post more often then threads. ;)

Would be very nice if you can implement this features too, and in the next version without file edits would be better.

But great start for a addon, i searched a long of time for something like that.

Hope you can coding new versions of it, then i will install it too. :)

best regards

Pander23

toonysnn 08-05-2008 10:25 PM

Quote:

Originally Posted by Pander23 (Post 1592194)
A good start for this addon. But this addon isn?t good, before you have the other options:

PM delete Post
PM move Post/Thread

Say me, how many times you delete a thread and a post? Most of the times you delete a post more often then threads. ;)

Would be very nice if you can implement this features too, and in the next version without file edits would be better.

But great start for a addon, i searched a long of time for something like that.

Hope you can coding new versions of it, then i will install it too. :)

best regards

Pander23

I will be branching it out into several different xml files for separate things that people may not want.

I wish I could do it without a file edit, but when I looked over it again, there was no threadmanage (or threadadmin, forgot the name) _dodeletethread for postings.php, and that's where it needs to be.

Move Thread is next for this mod, and then Delete Post(s).

Actually, I might not have to branch it off into several different products, now that I'm thinking about it... just a bunch of plugins.

File edits are only done as necessary. I will request the new hook location for vB.

"A good start for this addon. But this addon isn?t good, before you have the other options:"
This mod was not intended to stretch out beyond thread deletion, at least, not yet. It does just as the first post says.


All times are GMT. The time now is 04:42 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.00999 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)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