Log in

View Full Version : Recycle Bin Hack v1.0b


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)

FlyingDutchman
09-18-2002, 04:28 PM
Admin Control Panel Options Screenshot, see attach.

FlyingDutchman
09-18-2002, 04:29 PM
The new 'Restore' & 'Delete' buttons, see attach.

FlyingDutchman
09-18-2002, 04:30 PM
The changed editpost templates, see attach.

snyx
09-18-2002, 05:08 PM
this is lookin SHARP my man..
once my server un-susupends me, its being installed

assassingod
09-18-2002, 05:30 PM
Agreed. Very nice:)

Velocd
09-19-2002, 01:41 AM
I know I've seen this hack before, but it's probably the first version (hence the "1.0b")

What is the difference between versions?

FlyingDutchman
09-19-2002, 03:52 AM
admin cp, restore function, delete request function, basicly everything... (except for the basic stuff)
less code (edit/add) is needed now...

PsYc
09-25-2002, 12:55 PM
there must be an error in the template editpost2 or 3

i get a blank page when i try to delete the first post of a topic

i'm sure all changes are correct

FlyingDutchman
09-25-2002, 04:40 PM
that could only be
1. a non-existing template
2. invalid link

i'll check it out right now for you...

FlyingDutchman
09-25-2002, 04:46 PM
here's the fix (i've updated the zip already!!!):

in template: editpost2, find:

<form action="postings.php" method="post">

REPLACE that with:

<form action="recycle.php" method="post">

410
09-29-2002, 11:26 PM
How close is this from not being a "beta" ?

FlyingDutchman
09-30-2002, 03:52 AM
very close, still needs some testing...
haven't discovered any bugs yet, but i think i forgot something in the install script... once i fix that, it will be RC :) and then final :D

N9ne
11-07-2002, 08:39 PM
In this hack, what do I change so normal posts in the thread are also kept with the first post?

FlyingDutchman
11-11-2002, 06:35 AM
what do you mean by that?
you just want to remove single posts?
b/c the whole thread is 'moved' to the recycle bin at this moment...
please explain for me (sorry, my english is not very good :D)

Bison
11-15-2002, 04:42 PM
This looks pretty darn nice ... has it been released?

LangTuDaTinh
11-15-2002, 07:24 PM
where to request for a thread to delete ? can't see that option anywhere.

Exo
11-16-2002, 07:33 PM
i can not see the restore or delete button in the Thread?

N9ne
11-17-2002, 08:54 PM
Originally posted by FlyingDutchman
what do you mean by that?
you just want to remove single posts?
b/c the whole thread is 'moved' to the recycle bin at this moment...
please explain for me (sorry, my english is not very good :D)

In your first post you said that the first post in the thread will be moved and the replies to it deleted...? Or do you mean that the whole thread will be moved intact?

Exo
11-17-2002, 11:36 PM
Originally posted by N9ne


In your first post you said that the first post in the thread will be moved and the replies to it deleted...? Or do you mean that the whole thread will be moved intact?


he means that you must delete the first post to move it, the other posts in the thread can you delete normal.

N9ne
11-19-2002, 07:11 PM
Oh right, I just misunderstood what he said then, that makes this a great hack...just to clear it up though:

Lets say there is a thread with, say 44 replies.

Now if I delete the first post in this thread, which is the initial post, will the whole thread be moved to the recycling bin, so I can go to the bin and look at the whole thread?

Sebastian
11-20-2002, 01:00 AM
Originally posted by N9ne
Lets say there is a thread with, say 44 replies.

Now if I delete the first post in this thread, which is the initial post, will the whole thread be moved to the recycling bin, so I can go to the bin and look at the whole thread?

No, Read this:


Features: -Only first post in thread will be recycled, 'normal' posts will still be fully deleted.

in other words, the other posts will be lost, all that will remain is the thread starters post, (at least that is how the author explained it).

danrak
11-20-2002, 03:04 AM
Originally posted by Exo
i can not see the restore or delete button in the Thread?

I am having the same problem, were you able to fix it?

N9ne
11-22-2002, 06:44 PM
So is there any way to make it so the whole thread is sent to the recylcing bin instead of just the first post?

Exo
11-28-2002, 11:04 AM
Originally posted by Sebastian


No, Read this:



in other words, the other posts will be lost, all that will remain is the thread starters post, (at least that is how the author explained it).


wrong, it means when you edit the other posts you can delete it, but not if you move the first post that the others get lost, they still moved too.


Originally posted by danrak

I am having the same problem, were you able to fix it?

the problem is that you must edit the showthread.php so that it use the showthread_recycle template.

FlyingDutchman
11-29-2002, 01:43 PM
hi people :)
i haven't been online much lately and therefore haven't had any time to fix the bugs and stuff :)

just let me be clear:

-when you recycle a thread, the WHOLE thread will be moved into the recycle bin
-you can still delete single posts INSIDE a thread (that's all posts that are not 1st post of a thread :))

i hope that's clear enough...


and i'll fix the problem(s) when i have time, tomorrow or the day after possibly...

N9ne
11-30-2002, 03:26 PM
That's just what I wanted :) I asked the question three times, first time you said it just moves the first post, second time others said it moves the first post, third time the whole thread gets moved...so in other words, I'm gonna install this one :D

DaMixer
12-02-2002, 03:58 PM
Template : showthread_recycle

Don't Work After Delete Thread ?!

Automated
12-22-2002, 11:26 AM
I installed works fine for me!

/me clicks install

LangTuDaTinh
01-26-2003, 02:57 AM
what will happen if i use "prune", will it move pruned thread to recyclebin forum?

FlyingDutchman
01-30-2003, 03:25 PM
hi everyone,

i'm looking for some coder to pick up and remove all the bugs from this hack...
i don't have any time on my hands lately to fix the bugs, so if you're interested (won't be too much work i think) plz e-mail me or pm me.

FlyingDutchman

Kars10
01-31-2003, 11:22 AM
Installed the hack and it works. But i also don?t see the Buttons "Restore" and "Delete" in the Thread...and when i restore a Thread in the admin CP the last post info on Forumhome is wrong?!? :(

Kars10
02-01-2003, 09:32 PM
^bumb^

Kars10
02-09-2003, 03:14 PM
^bumb2^ ...whats up hackers??
Am i the only one who installed this? :confused:

Kars10
02-24-2003, 06:28 AM
^bumb3^ ...no one???

FlyingDutchman
02-27-2003, 03:25 PM
Originally posted by Kars10
Installed the hack and it works. But i also don?t see the Buttons "Restore" and "Delete" in the Thread...and when i restore a Thread in the admin CP the last post info on Forumhome is wrong?!? :(

for the buttons not working, i dunno, should be simple bug...
the last post info should be correct again if you update the counters, i think...

as you can read, i don't have any time at this moment to continue developing of this hack (fix the bugs for example)...
i hope you can understand this and also my late replies (i just don't visit this site so much atm :))

Kars10
02-27-2003, 04:07 PM
Ok, but what can i do to fix this? I have my site running up with that bug! :(