FlyingDutchman
09-17-2002, 10:00 PM
IMPORTANT: ALTHOUGH I'VE TESTED IT ON A NEW INSTALL, I TAKE NO RESPONSIBILITY FOR ANY DAMAGE THIS HACK MAY DO TO YOUR FORUM, HENCE WHY IT'S LABELED BETA! I CAN'T STRESS THIS ENOUGH! (:D)
What does this hack do: This hack will move all threads users 'delete' to a forum, so it will act like a Recycle Bin. that's the basic idea.
Requested By:
1: https://vborg.vbsupport.ru/showthread.php?s=&threadid=36107
2: https://vborg.vbsupport.ru/showthread.php?s=&threadid=40989
3: https://vborg.vbsupport.ru/showthread.php?s=&threadid=37264
Features: -Only first post in thread will be recycled, 'normal' posts will still be fully deleted.
-Anyone with delete permissions can delete/recycle a post.
-Total deletion of a whole thread can only be performed by a admin.
-Recycle Bin forum can just be disabled for new posts, so it really acts like a sort of archive. (doesn't matter really, because the newthread & newreply images are gone in the recycle bin forum anyway)
-Admin CP options page, for easy recycle bin management.
-Restore function: users can restore their threads to the original location of the post.
-Users can place a 'deletion request', and if the admin thinks the reason is good, he/she can delete the thread (with one click :D).
-More :)
Installation (also in the zip!!!): ************************************************
* Installation instructions for *
* vB Recycle Bin Hack by *
* Rick Jansen (aka FlyingDutchman) *
* ? copyright 2002, all rights reserved. *
* vBulletin is ? Copyright 2000-2002 *
* by Jelsoft Enterprises Ltd. *
************************************************
Files to edit: 3
Files to add: 2
Queries to run: 1
Templates to add: 12
Templates to edit: 0
Step 1.
Extract the files in the 'files' directory in the zip to your forums dir. Then open up '/admin/recycle.php' and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin.
Step 2.
Open 'templates.txt' with a text editor like notepad and search for and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin. Then add the needed templates.
Step 3.
Open 'files.txt' with a text editor like notepad and search for and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin. Then make the needed file modifications.
Step 4.
Open 'queries.txt' and run the queries as described.
Step 5.
Enjoy!
Notes: I've made this hack for vb 2.2.6, but it should work on 2.2.x too...
Can somebody please test it for vb 2.2.7 for me and tell me if it works? thanks.
Future additions-list:
-total new access mask (i.e. 'canrecycle')
-enable recycle bin on a per-forum basis (if requested only!!!)
Screenshots: See next posts.
Updates:
-09-25-02.-Fixed bug in template: editpost2 (updated the zip! - no need for fix when doing fresh install)
What does this hack do: This hack will move all threads users 'delete' to a forum, so it will act like a Recycle Bin. that's the basic idea.
Requested By:
1: https://vborg.vbsupport.ru/showthread.php?s=&threadid=36107
2: https://vborg.vbsupport.ru/showthread.php?s=&threadid=40989
3: https://vborg.vbsupport.ru/showthread.php?s=&threadid=37264
Features: -Only first post in thread will be recycled, 'normal' posts will still be fully deleted.
-Anyone with delete permissions can delete/recycle a post.
-Total deletion of a whole thread can only be performed by a admin.
-Recycle Bin forum can just be disabled for new posts, so it really acts like a sort of archive. (doesn't matter really, because the newthread & newreply images are gone in the recycle bin forum anyway)
-Admin CP options page, for easy recycle bin management.
-Restore function: users can restore their threads to the original location of the post.
-Users can place a 'deletion request', and if the admin thinks the reason is good, he/she can delete the thread (with one click :D).
-More :)
Installation (also in the zip!!!): ************************************************
* Installation instructions for *
* vB Recycle Bin Hack by *
* Rick Jansen (aka FlyingDutchman) *
* ? copyright 2002, all rights reserved. *
* vBulletin is ? Copyright 2000-2002 *
* by Jelsoft Enterprises Ltd. *
************************************************
Files to edit: 3
Files to add: 2
Queries to run: 1
Templates to add: 12
Templates to edit: 0
Step 1.
Extract the files in the 'files' directory in the zip to your forums dir. Then open up '/admin/recycle.php' and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin.
Step 2.
Open 'templates.txt' with a text editor like notepad and search for and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin. Then add the needed templates.
Step 3.
Open 'files.txt' with a text editor like notepad and search for and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin. Then make the needed file modifications.
Step 4.
Open 'queries.txt' and run the queries as described.
Step 5.
Enjoy!
Notes: I've made this hack for vb 2.2.6, but it should work on 2.2.x too...
Can somebody please test it for vb 2.2.7 for me and tell me if it works? thanks.
Future additions-list:
-total new access mask (i.e. 'canrecycle')
-enable recycle bin on a per-forum basis (if requested only!!!)
Screenshots: See next posts.
Updates:
-09-25-02.-Fixed bug in template: editpost2 (updated the zip! - no need for fix when doing fresh install)