Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Recycle Bin & Moderator Log Details »»
Recycle Bin & Moderator Log
Version: 1.00, by Sasq Sasq is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-06-2003 Last Update: Never Installs: 16
Is in Beta Stage  
No support by the author.

THIS IS A REAL BETA HACK, DO NOT INSTALL ON A LIVE BOARD

Ok, I brought up the idea over in this thread .

Here is a BETA hack for a recycle bin and mod logging system I've been working on.

It logs all mod activity for editing/deleting posts, moving threads etc. all admin selectable to log or not.
It creates a Forum (preferably hidden) to hold all the deleted threads - the logging function takes care of where they are from and who put them there.

It also dumps a copy of all user or mod (and admin) posts into an edited posts thread, also all deleted posts are dumped into a deleted posts thread.

Most of the logging is sorted, and configurable, I've probably forgotten something somewhere - which is why this is beta

The log info in the admin display is functional but still needs some work. I think the actual recycle logging functions themselves are up to scratch.

More (short ) notes in the readme.

I repeat do not install this hack on a live board

On the installer, this is probably more beta then the actual hack, thanks to firefly (Chen) for letting me borrow some of his hack installer code.

The installer works with a vanilla install of 2.2.9 but i have no idea what it will do with a hacked board, or different versions.

Also the hack itself is only tested on 2.2.9

The installer will (if you let it) install all of the forums, threads, templates and even do the file mod's. There is also a FTP function to ftp locally if you don't have chmod 777 set, failing direct file access or ftp, you can choose to download the hacked file without having to do all the edits by hand. (damn that took me some working)

The installer is still a little raw, I'll work on it more with some feed back.

Now what the hack actually does.

On the straight logging side.
How much and what is logged is selectable via the script in the admin CP
Code has been added to make an entry in the logdata table each time, a mod or user edits, deletes, opens, closes, sticks - basically everything.. a thread or a post.
(I think I have it logging all relevant information, but I may have missed something.)
You are then able to view the log history in the admin CP, also in the admin CP you can clear the logs, view stats, track down actions by a specific user.
I am working on a function to allow you to rebuild the thread and show edits/deletes as they happened in the timeline, but this part is not a high priority atm for me.

On the Recycle bin side.
-Uses the logging functions to keep track of the threads/posts.
The installer set up the recycle bin forum as a Posts do not count forum.
Most of the larger code inserts keep track of the posts/threads and provide undelete/full delete functions.
the main index.php has a small code insert to hide how many posts/threads are in the recycle bin forum from showing on the main page.
When a post/thread is deleted, the post count is still reduced form the users file, and the posts are unindexed from the search index.
If a thread/post is undeleted, the post counts are increased and the posts are re added to the search index.
If you 'return' an original post after editing, nothing changes with post counts etc.
The code also protects the Edited posts header post, and the Deleted posts header post. so while in the recycle bin, if you choose to 'full delete' either thread the main post and thread remains intact.

See this post for pics

I will try to dig up some older versions of vBB to check the installer with them..


Bugs....

Probably lots, but nothing really worrying that i can see

Todo
Better install instructions
Fix up the admin cp script so its pretty.
Make the Install script a little more stable.
Add anything that you think would be good, and won't take me another 10 solid days to program (I think the wife is going to leave me :speechless: )

Fixed:
Fixed - hopefully - the forum and post creation section on hacked forums

I'm looking forward to feed back etc

This hack is free, but I won't say no to paypal donations for a damn big beer

Dan

Edit, uploaded a new zip file due to a bug in the alternate download section of the installer.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-30-2003, 01:18 AM
XIanX XIanX is offline
 
Join Date: Nov 2002
Location: Minnesota
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I seem to have fixed the problem by re-creating the Recycle Bin forum and setting up the configuration again. Theirs a template error in the "Edited Posts/Deleted Posts(I forgot which one)" template for this hack. The link to the "Original Thread" wasn't pointing to the correct location, a simple edit fixed this.

I'm also recieving a JavaScript error when I view one of the threads dedicated to Edited/Deleted posts. The exact error is:
Code:
Line: 55
Char: 1
Error: Expected '}'
Code: 0

The relevent code relating to this error starts on Line 51:

<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
        window.open("member.php?s=&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=175,height=275,resizeable=yes,status=no")
        } -->
        </script>
        </head>
        <body bgcolor="#666696" text="#000000" id="all" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#000020" vlink="#000020" alink="#000020">
        <!-- logo and buttons -->
I hope this helps. I did not take the time to investigate the JavaScript error.
Reply With Quote
  #23  
Old 02-02-2003, 11:06 AM
Pikok Pikok is offline
 
Join Date: Jul 2002
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is the error I got :

PHP Code:
  Install for Moderator Logger and Recycle bin page5 
Now doing file modifications 
index
.php
All patches correctly 
(I hope ;) applied to this file.
 
postings.php
All patches correctly 
(I hope ;) applied to this file.
 

WarningChDirNo such file or directory (errno 2in d:\gearhost\hostingaccounts\realitydesign\www\pyrio\forums\admin\loginstall.php on line 422
 admin
/functions.php
All patches correctly 
(I hope ;) applied to this file.
 

WarningChDirNo such file or directory (errno 2in d:\gearhost\hostingaccounts\realitydesign\www\pyrio\forums\admin\loginstall.php on line 422
 editpost
.php
All patches correctly 
(I hope ;) applied to this file.
 

WarningChDirNo such file or directory (errno 2in d:\gearhost\hostingaccounts\realitydesign\www\pyrio\forums\admin\loginstall.php on line 422
 showthread
.php
All patches correctly 
(I hope ;) applied to this file.
 

WarningChDirNo such file or directory (errno 2in d:\gearhost\hostingaccounts\realitydesign\www\pyrio\forums\admin\loginstall.php on line 422 
Reply With Quote
  #24  
Old 02-02-2003, 12:08 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have your admin folder in a non standard directory, or is it per standard setup?

Dan
Reply With Quote
  #25  
Old 02-05-2003, 09:47 AM
Patrick Patrick is offline
 
Join Date: Jan 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got an error at line 58 of index.php relating to getlogset();
It really fugged up something, but I managed to get it back to working. It also did NOT complete the install when it said it did, so it did a half-job of it. Basically it did the forums/thread/post, as well as the forums/index.php modification, but no others. It may have gotten to the templates/mysql mods, but I can't verify that right now.

If you have any suggestions as to a cause of this, please let me know.
Reply With Quote
  #26  
Old 02-05-2003, 10:31 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Again the install package is pretty well beta. so any information is appreciated. each page will give feedback on if that particular section was modded, I notice the errors you posted originally.
I will hopefully have time to look this weekend.

I do appologise about being busy, I just have lots of work and family related issues atm.

Dan
Reply With Quote
  #27  
Old 02-06-2003, 05:55 PM
Patrick Patrick is offline
 
Join Date: Jan 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dan,

I was able to fix the errors originally by chmodding all files to 777. Then I went through an automatic install, nothing manual. I had it do all the mods, and it said it completed successfully. When I went to confirm this, all I saw that it did was make the changes in index.html of forums dir. It also added the 1 forum and both threads and both posts. Other than that, it didn't finish the install. When you get the time, much help would be appreciated as this is an excellent hack I'd like to see operational.
Reply With Quote
  #28  
Old 02-08-2003, 10:53 AM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, had a little trouble having a look at your forum. your script didn't like me comeing from Japan so much.

It shouldn't write to index.html at all. Of the top of my head the only thing i can think is the install is hard coded to deal with .php extentions and the default file directories. if you are running the php3 version it won't be able to find the files.

Dan
Reply With Quote
  #29  
Old 03-09-2003, 06:07 PM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any updates or progress on this?
Reply With Quote
  #30  
Old 03-09-2003, 06:12 PM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 40+ hacks installed and this installed just fine. I had to edit a few of the files (index.php) and one line in the Functions.php but it all seems to be working properly except for the admin panel...

If I click on Configure Mod Logging or the Mod & Recycle bin log link I get this error:

Code:
Warning: Failed opening '/home/*******/****/forums/admin/modlog2.php' for inclusion (include_path='.:/usr/share/pear') in Unknown on line 0
Reply With Quote
  #31  
Old 03-09-2003, 11:48 PM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind.. it was a permissions thing.. All works 100%
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:33 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.04183 seconds
  • Memory Usage 2,329KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete