PDA

View Full Version : Automatic thread move when a user deletes a thread *Recycle Bin*


Aaow AnD wHiTe
03-14-2002, 12:10 AM
Hello everyone :)

Lately we have experienced some problems in our forum. Some people decide it's better to delete a thread they have started, for any reason.

What happens is that once it's deleted, a lot of people start complaining about it, cause they have spent their time replying and all their work is gone.

What we would like to do, it's to somehow make it so that when a user "deletes" a thread, what it actually does is move that thread to an especific forum, a private forum, like a recycle bin.

This would only work with the "delete" checkbox in the "edit" section of the post, so the administrative options are the same :)

We think it's a pretty good idea. What do you guys think? ^__^

P.S: Sorry again for our english >_<

Neo
03-14-2002, 01:21 AM
So you want a mod for my Thread started is mod of thread... or do you use a different system?

Aaow AnD wHiTe
03-14-2002, 11:42 AM
Thanx for replying, neo :)

Your hack is great, but we need a different mod. Usually when a user deletes a thread, he/she does because they've started some kind of war, and they don't want to keep on arguing, specially if the discussion has turned against them. The best solution they find it's to totally delete the thread.

With this hack, the thread would dissapear from the public forums, but we could have a copy in this private forum called "recycle bin" and give access to anyone who wants to keep track of what's been said in that thread.

How could this be done? Maybe changing the delete permissions for the given usergroups so what it actually does is to move the thread to a given forum. This way we can track everything that gets deleted, and have it stored so anyone involved in that thread can have a copy.

Thanx again Neo, hope you understand what we mean, even with an english as poor as ours :(

Aaow AnD wHiTe
03-14-2002, 11:44 AM
Just to make it clear. We don't know how to do it, neither are we explaining some plan for a hack we're going to release or something!. We are asking for your help. LOL :)

Bald Bouncer
03-14-2002, 12:02 PM
sounds like a good idea mate...

black
03-14-2002, 12:22 PM
this would be great.

I just made a new rule for mods a couple days ago that required this.

Aaow AnD wHiTe
03-14-2002, 12:37 PM
Thanx for your comments, guys :) When we delete threads, that's what we actually do, we move them to an administrative forum, as you said you do with that new rule, black.

It's a pity we cannot track user-deleted messages the same way. We're sure someone will help us ^__^

Aaow AnD wHiTe
03-20-2002, 04:20 PM
Anyone O_o

Neo
03-20-2002, 04:32 PM
Maybe...

Dalius
03-20-2002, 06:22 PM
This would be a really good hack. Deleted posts go to Staff-Only Recycle Bin!

simon
03-21-2002, 06:47 AM
It'll be great to have this on my forum.

SWFans.net
03-21-2002, 08:35 AM
While the idea for the hack is good, I think that Aaow AnD wHiTe might just want to consider disabling the option that allows users to delete their own posts, thus making it so that threads cannot be deleted by casual posters that are not mods or admins. They can edit away, but other people who may have replied will not have their posts lost into any kind of void, possibly having to be moved back if sent to a "Recycle Bin" forum.

Meirion
03-21-2002, 02:12 PM
yes this is perfect!

My users aren't allowed to delete their posts for the above reason.

Sometimes a moderator might delete an offensive post, but then we need to refer to it later to settle a dispute. If "deleting" threads actually just moved them to a recycle bin then it would be perfect. My mods carry on their job as they do now, but should anything crop up we can always drag the post out of the bin and ban people accordingly.

Meirion
03-21-2002, 02:20 PM
a few notes - no one should know about the recycle bin, it should all work transparently. You think something has been deleted, but it is still availbible somewhere.

Could this be done just using some template hacks?
idea:
Change the 'mod options' dropdown menu on posts so that delete actually moves, and has a specified forum number of the recycle bin forum. You'd need to prevent it from redirecting you to that recycle bin forum though, and send you back to the forum that you were moving it from.

Does this make sense to the vb-big-brains out there?

Neo
03-21-2002, 02:53 PM
ok... so you want this to work like this.

1) when someone deletes a thread outside the bin area, it is moved to the bin area.

2) once in the bin area, it can be deleted.

right?

Meirion
03-21-2002, 03:01 PM
Yep, perfik!

And no one should be know or be told about a the bin - it should all behave like a normal deletion process. Urr, I just said that didn't I? :confused:

Neo
03-21-2002, 03:19 PM
give me a few and I will have something.

Admin
03-21-2002, 03:49 PM
Err... just create a new forum, call it Recycle Bin, and don't give your mods permission to delete threads. Then they'll move it to the Recycle Bin where Admins can delete it if they want to.

Neo
03-21-2002, 03:56 PM
I put together a little thing for them... and I did suggest that in another thread... but people are just to lazy for that

Neo
03-21-2002, 04:02 PM
Have fun

Dalius
03-21-2002, 07:26 PM
FireFly, I also want user's post to go their.

Let's say Jackass A makes a new racist post, and deletes it. No one has proof. When he deletes it, it goes to Recycle Bin, we look, BANNED!

Neo
03-21-2002, 08:10 PM
Hey!!! why dont you ask me since I made/posted the damn file for it.....

Aaow AnD wHiTe
03-21-2002, 09:11 PM
It's not about being lazy. We WANT to allow people to delete own threads, (they can delete their dupe post, and sometimes it can even be helpful when any user decides it's better to do it) This way, users can have the right to delete threads they started, and people who replied has the right to request a copy for their personal use. This could apply too to deleted single posts.

Thanx for your effort, guys.

Meirion
03-22-2002, 08:00 AM
haha, neo gotta say your profile looks pretty evil at the mo from where I am - 666 posts ;)

Thanks for the hack. A couple of q's for you:

if somebody searches for a phrase that was in their topic after it has been supposedly deleted will it appear on the search results as being a topic in the 'recycle bin'?


Can this hack do what Aaow and white says, as in can users delete their own posts and have them actually end up in the bin?

Meza :)

E
03-22-2002, 08:23 AM
Im gonna test it know

E
03-22-2002, 08:32 AM
how do u access the bin?

Meirion
03-22-2002, 08:37 AM
remove lid, insert hand lol

You made the bin as another forum, yes? Then get the forum number and got to forumdisplay.php?forumid=xx where xx is the number of the bin.

Neo
03-22-2002, 01:34 PM
Meirion: Thats right.

Aaow AnD wHiTe: once I get back from my job interview I will secure it more and more it for the post deletion aswell.

E
03-23-2002, 02:05 AM
Ok... this is what happens..
When i close a thread it goes too Recycle Bin.. When i delete a thread it gets deleted???

E
03-23-2002, 04:48 AM
^^ well i guess i'll have a look if i can change it... or is this whats suppose too happen?

E
03-23-2002, 04:53 AM
Damn... i cant find anything :( ... Neo when u get back could u help?

Neo
03-23-2002, 05:57 AM
Odd it works for me find...

E
03-23-2002, 06:10 AM
ill show u my code... but it works.. but when i close it thread it moves there not when i delete one.. first i wanna make sure that this isnt right?

ptbyjason
03-23-2002, 11:35 AM
I am trying this out, but I ran across a problem. When I searched for

$firstpostinfo=$DB_site->query_first("SELECT userid FROM post WHERE threadid='$threadid' ORDER BY dateline LIMIT 1");
if ($bbuserinfo[userid]!=$firstpostinfo[userid]) {
show_nopermission();
}
}
}
}

But my last "}" is not in the original code. I inserted it after the third "}" but I don't think mine is working, any ideas?

E
03-23-2002, 11:37 AM
i didnt insert a } and mine worked... altho i dont know if it did what it was suppose too

ptbyjason
03-23-2002, 12:41 PM
I didn't insert an extra one either. I just inserted it after the third one.

Neo
03-23-2002, 04:10 PM
I just searched for


$firstpostinfo=$DB_site->query_first("SELECT userid FROM post WHERE threadid='$threadid' ORDER BY dateline LIMIT 1");
if ($bbuserinfo[userid]!=$firstpostinfo[userid]) {
show_nopermission();
}
}
}
}


and I found it perfectly. What version of vbb are you using

Neo
03-23-2002, 04:13 PM
Ohhh... ahahah damn there are more than one of these in the postings.php...

ok find that piece of code in this section

// ############################### start do delete thread ###############################
if ($HTTP_POST_VARS['action']=="dodeletethread") {

ptbyjason
03-23-2002, 08:59 PM
neo, that's the right section. i am running v 2.24 and mine original is missing one of the }

E
03-23-2002, 09:38 PM
now it works.... except only when admins/mods delete thread using the admin function... which makes this almost pointless lol...unless ur admin mods are cheatingu...
anways is there a way so this works when u delete a thread by deleting first post ??

ptbyjason
03-24-2002, 02:27 PM
Ok I have found an error with it neo. Well I don't think it is working yet, put with the code modifications to postings.php it prevents me from using the admin function of Delete Thread/ Posts. I get a blank white screen.

nafae
03-24-2002, 03:18 PM
hmm but what if I, as an admin, keep a 'secret' forum for mods/admins to chat and discuss etc. -delete a thread from there, I don't want it to go to the recycle bin for everyone to see!

Does this hack prevent that? IE: how about making it so it lets you Input the Recycle bin (the output for the users's deleted threads) and specify any exclusions (IE: a mod area which you want to exclude from these rules and wahtnot.)

Just my 2 cents :) Thanks for making it anyway!

ptbyjason
03-24-2002, 03:27 PM
nafae, I hope I understand you correctly. I made mine a private board that is only viewable by myself and the mods. If the recycle bin was a public board there wouldn't be much need for it. Just make it a private board.

E
03-25-2002, 06:32 AM
^^exactly what i was gonna say,.... but still can u make it so when users delete threads it goes there

David Bott
03-31-2002, 08:30 PM
Yes...This would be one nice item to have. I do have my mod move threads to a hidden forum...but it would be nice to do this via the real options for I am sure they forget.

And it would be nice to also have it move a post that a member deletes into the same area. This way we can restore if a mistake was made or we need to reseach a problem user.

TECK
04-05-2002, 01:48 AM
neo.. release the hack please. :)

Neo
04-05-2002, 06:38 PM
Maybe Nakkid.. I may work on it today.

inetd
04-11-2002, 08:03 PM
neo, please tell me URL of your hack for this thread. :)

Neo
04-12-2002, 04:35 AM
wait till I get back home from my trip and I will :)

inetd
04-12-2002, 07:46 AM
Ok, neo! Big thx!

Rick
05-02-2002, 02:24 PM
What ever happened to this hack? How come it never made it as a full release. I would really like to give it a try if it's working correctly.

Rick
05-03-2002, 08:42 PM
BTT

Rick
05-14-2002, 05:51 AM
BTT

Has this been orphaned??

Neo
05-14-2002, 07:17 PM
O_O Well Overgrow has a hack to track what happens when threads are moved / deleted and so on. But as for the Bin hack.... it might already be made I am not to sure.

Rick
05-14-2002, 07:23 PM
I've never seen this in the full releases section. I did a search for recycle and nothing of importance comes up besides this thread.

I really like the idea of the recycle bin since I have 20+ moderators I would like the final say in what is permanantly deleted.

Neo
05-14-2002, 08:55 PM
Well I myself want this... I will work on it today / finish what I started...

Ummm so I forgot what what should I be adding to the hack I made... its on page two if you want to see it.

Rick
05-14-2002, 09:30 PM
I believe I installed the hack when you first released it and I couldn't figure out how to access the recycle bin (so I removed the hack). I was also a bit worried since it wasn't a full release and that it might still have some problems.

I just implement hacks and I'm not good at debugging and stuff... I did notice that there were a few concerns from folks who installed it.

So, I've just been waiting for you to finish it up and make it a full release.

Thanks,

Rick

samtha25
05-15-2002, 03:09 AM
Everything people want to do here can be handled with permissions, I think. Set regular user and moderators permissions so that they cannot delete a thread. Tell moderators to move threads without redirect to a forum named Recycle Bin. Voila!

tubedogg
05-15-2002, 08:53 AM
That's a standard recycle bin. What they want is for people to be able to "delete" threads but in actuality they are moved to a Recycle Bin for evidence in case they need it. From there it can be deleted by an admin.

I will take a look at what Neo has done thus far and take it the rest of the way...if I can figure out what the rest of the way is :p

tubedogg
05-15-2002, 08:57 AM
I should add, they want this done transparently so no one knows the thread is not actually being deleted.

Neo
05-15-2002, 04:50 PM
Thats what I have done.. ohh and dont forget to make it so that when posts are deleted they go there aswell :p

David Bott
05-15-2002, 06:24 PM
This will be a great addition. I have already made a Deleated - Bad Threads area that I hav the mods move threads to...But it would be much, much better to use the delete. Not to mention...mods forget.

This would also go for any member that deletes. Insted of a delete...the thread is MOVED into forum X with a new post being added at the end that says who "deleted" it. (wish list...I will take what I can get at this time.)

Oh!!! And!!! If a person, mod, admin, or user does choose to do a delete of a thered...ask them why and add that at the end of the thread. :)

Sorry....Got on a roll and can really use this...but I am not coder.

David Bott
06-09-2002, 12:27 PM
Any movement on this hack or did I scare people away with the above? :)

Paul
07-15-2002, 09:52 PM
WAKE UP! :D

This hack was never finished, which makes me very sad. Here's my situation:

Our first few forum solutions all had issues with posts being accidentally removed and did not allow us to recover those messages. Therefore, we decided from the get-go when we made the switch to vBulletin, that we would create a private forum to move all deleted posts and threads. Moderators do not have permission to delete threads or posts and instead must use the move threads or split threads options to move posts or threads into the appropriate private forum.

This works great for us, however adding a moderator to the super moderator group will allow them to delete messages without moving them, which is not something we want to do. We do want to let them ban abusive users, however. Basically, the only usergroup that should be able to remove posts or threads from the database, should be the administrators. Anyone else who uses a "delete" function, should ideally have the post(s) or thread(s) sent to this private forum.

Is there anyone out there who would be interested in creating this hack to work as I described above?

Thanks!
Paul

SpeedStreet
08-13-2002, 01:00 PM
Bsed on what I've read here, this hack is not 100%, is that right or wrong?

I've read this thread thoroughly, and i believe that this is what the feature set required:

1> When Admins and mods delete threads via the Admin Options on threadview, they are moved to a restricted access forum named "Recycle Bin"

2> Once in that forum, Administrators have the right to permenently remove the thread from the site.

Am I correct in assuming that the recylcingbin.txt file in this thread is not done? I'd like to install it, but I would like to know if this is done through the standard interface, and not only through the moderators and administrator's panel...It would be too much of a hassle for my team.

Thanks in advance for any help here.

Tim Wheatley
08-17-2002, 09:30 AM
bump

influence
09-04-2002, 08:49 PM
bump*

Rick
09-05-2002, 07:53 PM
Good luck with your bump. I haven't had any luck.

SpeedStreet
09-05-2002, 08:35 PM
Chalk it up to dead threads I guess :)

g-force2k2
09-05-2002, 09:34 PM
right i think i got this...

*adds to the list to do... perphaps i will make / release this hack tonight... sounds easy enough ;) regards...

g-force2k2

SpeedStreet
09-06-2002, 03:29 PM
that would be awesome, thanks g-force

Trident
09-07-2002, 08:13 PM
it is not work on 2.2.6 !

it get Parse error in postings.php on line 875 !!

any modify ?

good luke g-force2k2 :)

Neo
09-07-2002, 09:33 PM
Originally posted by g-force2k2
right i think i got this...

*adds to the list to do... perphaps i will make / release this hack tonight... sounds easy enough ;) regards...

g-force2k2


Also thsi feature is with VB3 T_T;; but if you want you can use the code I already posted in the begining of the thread I am busy working on VB3D =P

Meirion
01-07-2004, 02:36 PM
Just to let everyone know, I've added this to a 2.3.2 board without any problems (so far)

Where it says
##### now in postings.php find ( around line 121 ) #####

$firstpostinfo=$DB_site->query_first("SELECT userid FROM post WHERE threadid='$threadid' ORDER BY dateline LIMIT 1");
if ($bbuserinfo[userid]!=$firstpostinfo[userid]) {
show_nopermission();
}
}
}
}

### and place this under it ###

if ($threadinfo[forumid]!=XX && $recycle_bin==1) { // make the XX the number of the recycling bin
$DB_site->query("UPDATE thread SET forumid='XX' WHERE threadid='$threadid'"); // make the XX the number of the recycling bin
eval("standardredirect(\"".gettemplate("redirect_deletethread")."\",\"forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]\");");
exit;
}
it's line 105 - 20 lines under the block that starts with...
// ############################### start do delete thread ###############################

Thanks again for building this Neo, simple but effective :)

str
01-07-2005, 03:32 AM
SMF has this feature as default. Does vb3 has it yet?