vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Automatic thread move when a user deletes a thread *Recycle Bin* (https://vborg.vbsupport.ru/showthread.php?t=36107)

Aaow AnD wHiTe 03-14-2002 12:10 AM

Automatic thread move when a user deletes a thread *Recycle Bin*
 
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

1 Attachment(s)
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

PHP Code:

      $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

PHP Code:

      $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 ??


All times are GMT. The time now is 04:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01228 seconds
  • Memory Usage 1,805KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete