![]() |
vB Recycle Bin Hack
IMPORTANT: ALTHOUGH I'VE TESTED IT ON A NEW INSTALL, I TAKE NO RESPONSIBILITY FOR ANY DAMAGE THIS HACK MAY DO TO YOUR FORUM! I JUST 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/showthrea...threadid=36107 2: https://vborg.vbsupport.ru/showthrea...threadid=40989 3: https://vborg.vbsupport.ru/showthrea...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). -Admin's can turn the Recycle Bin on and off -Admin's can easily speicify the forum id of the forum that should be used as the Recycle Bin -More probably ;) Installation: Follow the instructions in install.txt that is included in the zip file. Notes: I've tested this hack on a fresh install of 2.2.9, but it should also work on 2.2.x and 2.3.0, although i might not be able to give proper support for other versions than 2.2.9 Future additions-list: -enable recycle bin on a per-forum basis (small addition, only if anyone really wants it) Screenshots: https://vborg.vbsupport.ru/showthrea...069#post364069 Updates: -10 march 2003: Hack is finally out of "BETA" stage and current version is 1.5 some bugs fixed and 2 new admin cp options added. -11 march 2003: Updated hack to version 1.5.1 2 bugs fixed. zip file updated. new install doesn't need any fixes or anything. See this post for more info & upgrade instructions (v1.5 to v1.5.1) |
<font color="red">D0H! I can't seem to attach any file at this moment, so no screenshots for now...</font>
|
there isn't the file rbh_install.php in the zip
|
Cool!!
Ive waited for this!! :) Can you please post instructions for us beta-testers (how to update)? Thanks |
oh, heheh, well, it's updated now :) - sorry!
and about you kars, well, i guess you have to uninstall it manually, i might do a instruction file tomorrow if i have any time... |
the upload problem should be fixed now :)
|
u realise that now anyone with or without real version of vb can download ur hack...
|
The file uploaded on vb.org incase server goes down...
Note: this is V1.5 the latest is 1.5.1 which is on the first post |
hmm i deleted it and nothing happened :( the thread was deleted but it didn't move :( grrr
|
aha worked it out, great hack m8
|
Quote:
|
Screenshot: Recycle bin options in the admin cp.
|
Screenshot: Recycle bin forum showthread (restore & delete) buttons.
|
Screenshot: vB Options: [Thread Display Options] with the hack installed.
|
@ Flying Dutchman, maybe im just stupid, but i dont have the restore - delete buttons show up ... :(
Whats with that: Code:
$recyclebinnewthread Code:
recyclebinnewreply Should we put this in showthread-template? :confused: |
Quote:
can u tell me where do i doing wrong??thankz~ |
I believe we must replace the newthreadlink and newreplylink with that varables.
Ive tested it and it works. Code:
$recyclebinnewthread - $recyclebinnewreply |
Quote:
i find another problem when i delete the post in recycle bin and i wrote why i want to delete's reason but it bring me to this template"error_noid" so what cause that??thankz~ |
Quote:
|
Just wondering would it be possible to have it move the whole thread to the recycle bin?
Dark Shogun |
Quote:
sorry... i will update the install files now and check again for errors :paranoid: sorry! |
new update! version 1.5.1
-bugs fixed: restore & delete button now show up -bugs fixed: noid error when submitting request for deletion new install: just download the file and install the hack using install.txt upgrade from v1.5: step 1: open rbh_install.php (the version 1.5 one!) and press the uninstall link, wait till it's finished. step 2: download the new zip and overwrite the rbh_install.php file with the v1.5.1 one, execute it and click install. step 3: open the new install.txt and follow steps 9 & 10 done! |
It works man!!
This hack is so cool!! :) Thank you very much. [high]* Kars10 klicks install![/high] |
hhmmm...I installed the hack but it does not function. I double checked the files changes, made sure the bin forum was created, enabled the bin in the options...help?
I've created some test threads and have deleted them by editing the post and through the admin options but they do not get moved to the recycle bin forum. Chemo |
You can't delete them from the admin options Chemo. If you read the code, you will see that it is only done in editpost.
Amy |
Enhancements desired, and I am willing to help if you want.
1. I would like to be able to use the admin options to recycle threads. 2. I would like to be able to recycle posts too. Currently it only works on threads. I believe that using the code to split a thread and move it to a new forum could be used to accomplish this. 3. I need to figure out how to adjust this hack to accomodate the multiple quote hack that I have installed. Amy |
OK. I no longer need #1. I have that one done. If FlyingDutchman wants the code, I'll email it to him.
Amy |
i have installed the hack and when i delete a post it doesnt get to the recycle bin...
why? |
Quote:
i might do the other 2 today... i hope i can make it today, b/c next week will be a very busy one for me and there's no time for coding or anything really... |
Quote:
or do you press the admin delete function (which WILL delete the thread, at least at this moment) does it give any error message? |
Quote:
Chemo |
Works great thanks!
/me clicks install |
Finally got around to installing this and it and it works great! :D
|
Still trying to use the editpost to delete and they are not moving to the recycle bin. Someone help?
|
u sure u installed properly, i would re hack all da files
|
I've been over the install file several times and verified everything to the letter.
|
u sure u uploaded all files and run all queries n stuff
|
i just tested it on vb 2.2.9, works flawlessy...
currently there is not much of error checking, so i guess you can't tell me what's the real problem... i might adjust the code a bit sometime, and include error-checking... |
I was thinking that you might want to change the behavior of your templates. Since this only adds a recycle bin form section inside the edit post thread, why don't you add a form box inside the template, instead of the whole editpost template, and call to a variable that points to the template?
The problem I was having was that the editpost2 template would over ride the (Original) editpost template ... where I already had hacks installed. I had to add the hacks to the editpost2 template in order to see your hack plus the one's that I had in the first place. The editpost3 template serves little purpose since it's basically a unhacked editpost template. I don't know if I got a old copy of the hack but I haven't been able to see the recycle/restore images once the thread has been moved to the Recycle Bin forum. <My Two Cents> |
Is there a way to make this hack replace all of the delete thread/post options on the forum? I do not want any post deleted without it being copied to the "Recycle bin" forum (exception would be is the user deletes his own post). For example, there are "Admin Options" listed ont he page and I would like that "Delete" option filtered through this hack as well.
Also, is there a way to make it so that when a post is recycled the user is then redirected to the "forumdisplay" page again rather than to new location for the "Recycled" post. |
All times are GMT. The time now is 04:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|