|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Modification Name: Recycle Bin Author(s): Brett Description: This hack will place any deleted topic or reply in a forum that you create for this aspect. The Recycle bin can be toggled off/on in the control panel. Any topic or reply deleted or edited by a user, Moderated, or administrator is going to be moved to the recycle bin forum. If you delete a topic from a recycle bin it will be deleted forever. Demo: http://www.pavioni.com/cgi-bin/ubbcgi/ultimatebb.cgi/forum/6.html Download Link: https://www.ubbdev.com/ubb/upload/00006378/Recycle6.7.txt Credits: wwb95 Afterwards, you will need to set which forum would be your actual recycle bin in the Primary Settings -> General Tab, under the Recycle Bin expandy tab. Remember, although the forum you select as the recycle bin will store the messages, the forum still has the same permissions as before. If you have it set to allow new topics, it will still be able to add them.
|
|
|
|
Joined: Dec 2003
Posts: 40
Member
|
Member
Joined: Dec 2003
Posts: 40 |
This sounds like an awesome hack, I can't wait to give it a test drive!
The thing that I'm wondering about is how difficult it would be to exclude user's edits from being copied into the recycle bin. With the number of users on a large board, a recycle bin is going to start filling up mighty quick.
Keeping copies of posts that an admin, mega, or moderator deletes or edits is a good way to ensure responsible judgement calls and accountability. Personally, its not important to me if a member decided to edit his/her own post.
Anyhow, sorry about the critique-- this really is a good idea. Thanks!
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Just to exclude editing? Yes, that is an option added to the control panel, along with options to exclude from transfering, deleting, and closing/opening topics. 
|
|
|
|
Joined: Dec 2003
Posts: 40
Member
|
Member
Joined: Dec 2003
Posts: 40 |
Awesome! Actually, I was hoping that edits done by authorites would transfer, whereas users just editing their own posts would be ignored.
But still, this is a great hack! Happy birthday, by the way.
|
|
|
|
Joined: Dec 2003
Posts: 40
Member
|
Member
Joined: Dec 2003
Posts: 40 |
hmmm... the download doesn't seem to be working-- the file downloads as "Recycle6[2].7.txt", and has "ÿþ*" on the first line, followed by 456 lines of nothing.
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Strange, it works on my office computer. Maybe try clearing your internet cache and temp files, and try again?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Brett, it's the same "non-visible characters" error that the other file had.
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
 , i dunno. Uploaded default. Guess utf-8 is no good.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Brett, I installed this and I have a couple requests.
1. Could you make it so the topic in the recycle bin doesn't show the post total of the edited topic? The thread you make only has one post, but it thinks it has 130, meaning a bunch of page links that go nowhere
|
|
|
|
Joined: Oct 2001
Posts: 572
Member
|
Member
Joined: Oct 2001
Posts: 572 |
Other than that this hack seems to work great. Works perfect on 6.6 just to let you know. There was just one step that was a little different on what you needed to find. One of the lines in the find wasnt there but the others were. Edit: I also noticed if you edit at least the first post in a thread that is sticky the one in the new forum is also sticky.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
I'd still like to see it just move the topic to the recycle bin if an entire topic was deleted 
|
|
|
|
Joined: Oct 2001
Posts: 572
Member
|
Member
Joined: Oct 2001
Posts: 572 |
Or maybe add the post info as the second post in the thread so that you can delete the post and move the thread back. Becuase right now you cant move the thread back if you want becuase its got that info post at the top which you cant delete without deleteing the thread.
|
|
|
|
Joined: Oct 2001
Posts: 15
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 15 |
Hello, Great work ! I have installed this hack but it conflict with Recycle Bin hack. I would like to explain to you how to it conflict? Announcements6.7
In cp2_lib.cgi -------------- Find: -------
$def->{options} = @selectlist;
------- Replace with: -------
$def->{options} = @selectlist if("$file-_-$name" ne "vars_misc-_-default_announcement_forum");
Recycle Bin
######################################################## ###Open cp2_lib.cgi ########################################################
######## # find # ########
$def->{options} = @selectlist;
################ # replace with # ################
$def->{options} = @selectlist if("$file-_-$name" ne 'vars_misc-_-recycle');
So Help us please
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
$def->{options} = @selectlist if("$file-_-$name" ne 'vars_misc-_-recycle' && "$file-_-$name" ne "vars_misc-_-default_announcement_forum"); Please refrain from posting the same post twice, we would've found them either way
|
|
|
|
Joined: Oct 2001
Posts: 15
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 15 |
Hi Ian Spence ,
First of all , I'm sorry for writing twice.
secondly: I have installed it, Thank you and {bless you}.
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
On this mod drop down on the CP, is it possible that the room I choosed will show first on the drop down? it'll be more convenient couse every time I make any change under the General tab I have to choose the room again
Thanks
|
|
|
|
Joined: Jun 2001
Posts: 729
Coder
|
Coder
Joined: Jun 2001
Posts: 729 |
This step seems to conflict with the announcement forum modification. This step: ######################################################## ###Open cp2_lib.cgi ########################################################
######## # find # ########
$def->{options} = @selectlist;
################ # replace with # ################
$def->{options} = @selectlist if("$file-_-$name" ne 'vars_misc-_-recycle'); Announcement forum mod has: $def->{options} = @selectlist if("$file-_-$name" ne "vars_misc-_-default_announcement_forum"); How do you have both?
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|