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)

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

Quote:

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
Quote:

##### 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_d eletethread")."\",\"forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]\");");
exit;
}
it's line 105 - 20 lines under the block that starts with...
Quote:

// ############################### 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?


All times are GMT. The time now is 06:14 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
  • Page Generation 0.01354 seconds
  • Memory Usage 1,800KB
  • 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
  • (3)bbcode_quote_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
  • (35)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