vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   1st hack: track post deletions (https://vborg.vbsupport.ru/showthread.php?t=39523)

Andric d'Regor 06-05-2002 10:00 PM

1st hack: track post deletions
 
Hi
This is a small hack I put together to track whom deleted what posts from where. I searched here through need but did not find a relevent hack so came up with this.

it works but would benefit from some admin functions to manage the deleted posts table (delpost) in which it saves the details of the posts. It does not track attachements - just the plain text of the post.

what it does save is the userid, username, threadid, postid, title and text of the original post and the deletors name,id,ipaddress and time of deletion.

I have included a very basic viewer of the deleted posts.

I have tested and installed on 2.2.5 and 2.2.6 and encountered no errors.

usual disclaimers on liability (i accept none and dont use if you dont like that) and am happy if people want to use or adapt/expand with normal courtesies of acknowledgement etc.

to install read the install_deletetracking.php file's comments and follow them. to install the viewer put it into the forum/admin directory and open it in your browser - I have not added a link into the CP or anything.

good luck and hope its of use to others

Chris M 06-06-2002 11:43 AM

Nice...

*installs*

Satan

Dean C 06-06-2002 12:34 PM

i already use the mod log... but still pretty nice...

Slynderdale 06-06-2002 01:15 PM

whats the difference between this and the mod log? the mod log does almost the same thing but also logs close and moved threads too

CloakSim 06-06-2002 01:34 PM

It shows more than the moderator, date, and forum:

Quote:

Originally posted by Andric d'Regor
what it does save is the userid, username, threadid, postid, title and text of the original post and the deletors name,id,ipaddress and time of deletion.
That's why it's better.

Slynderdale 06-06-2002 01:35 PM

Quote:

Originally posted by CloakSim
It shows more than the moderator, date, and forum:



That's why it's better.

thanks

Andric d'Regor 06-06-2002 01:57 PM

I actually wrote this to track some of what modlog doesn't - this does not track what moderators do from the moderator or admin panels but what is deleted from the actual forum itself. So if someone claims their post was deleted wrongfully you can check who deleted it and if the post should have been deleted & whom did it if none own up to deleting a contentious post.
It should compliment modlog's functionality not duplicate it - or the lastest version I have seen of it.

Dean C 06-06-2002 02:07 PM

the mods can't delete posts from their cp can they??...

and the modlog does monitor what is happening on the forums...

Slynderdale 06-06-2002 02:09 PM

hmm ideas for add ons if you dont already have them, admins can delete posts from the log and have a restore button so they can restore them

Meirion 06-06-2002 02:29 PM

Have a look at the 'Recycle Bin' hack from a few months ago for similar functionality.


All times are GMT. The time now is 02:45 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.01942 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)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