Previous Thread
Next Thread
Print Thread
Rate Thread
#202736 04/06/2004 8:51 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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.

Sponsored Links
#202737 04/07/2004 6:12 PM
Joined: Dec 2003
Posts: 40
Member
Member
Offline
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!

#202738 04/07/2004 6:46 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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. smile

#202739 04/07/2004 6:53 PM
Joined: Dec 2003
Posts: 40
Member
Member
Offline
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.

#202740 04/07/2004 7:01 PM
Joined: Dec 2003
Posts: 40
Member
Member
Offline
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.

Sponsored Links
#202741 04/07/2004 7:16 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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?

#202742 04/07/2004 8:16 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Brett, it's the same "non-visible characters" error that the other file had.

#202743 04/07/2004 8:25 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
frown , i dunno. Uploaded default. Guess utf-8 is no good.

#202744 04/24/2004 4:02 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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

#202745 05/12/2004 12:39 PM
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Other than that this hack seems to work great. smile

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.

Sponsored Links
#202746 05/12/2004 7:18 PM
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 smirk


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202747 05/12/2004 7:50 PM
Joined: Oct 2001
Posts: 572
Member
Member
Offline
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.

#202748 07/31/2004 11:42 PM
Joined: Oct 2001
Posts: 15
Junior Member
Junior Member
Offline
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?

Code
 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


#202749 08/01/2004 12:07 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Code
		$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

#202750 08/01/2004 12:58 AM
Joined: Oct 2001
Posts: 15
Junior Member
Junior Member
Offline
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}.

#202751 04/11/2005 6:17 PM
Joined: Mar 2004
Posts: 58
Member
Member
Offline
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

#202752 05/03/2005 6:37 PM
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
This step seems to conflict with the announcement forum modification.

This step:
Code
########################################################
###Open cp2_lib.cgi
########################################################

########
# find #
########

$def->{options} = @selectlist;


################
# replace with #
################

$def->{options} = @selectlist if("$file-_-$name" ne 'vars_misc-_-recycle');
Announcement forum mod has:

Code
$def->{options} = @selectlist if("$file-_-$name" ne "vars_misc-_-default_announcement_forum");
How do you have both?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)