Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
vB Recycle Bin Hack Details »»
vB Recycle Bin Hack
Version: 1.00, by FlyingDutchman FlyingDutchman is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-09-2003 Last Update: Never Installs: 17
 
No support by the author.

IMPORTANT: ALTHOUGH I'VE TESTED IT ON A NEW INSTALL, I TAKE NO RESPONSIBILITY FOR ANY DAMAGE THIS HACK MAY DO TO YOUR FORUM! I JUST CAN'T STRESS THIS ENOUGH! ()


What does this hack do: This hack will move all threads users 'delete' to a forum, so it will act like a Recycle Bin. that's the basic idea.


Requested By:
1: https://vborg.vbsupport.ru/showthrea...threadid=36107
2: https://vborg.vbsupport.ru/showthrea...threadid=40989
3: https://vborg.vbsupport.ru/showthrea...threadid=37264


Features:
-Only first post in thread will be recycled, 'normal' posts will still be fully deleted.
-Anyone with delete permissions can delete/recycle a post.
-Total deletion of a whole thread can only be performed by a admin.
-Recycle Bin forum can just be disabled for new posts, so it really acts like a sort of archive. (doesn't matter really, because the newthread & newreply images are gone in the recycle bin forum anyway)
-Admin CP options page, for easy recycle bin management.
-Restore function: users can restore their threads to the original location of the post.
-Users can place a 'deletion request', and if the admin thinks the reason is good, he/she can delete the thread (with one click ).
-Admin's can turn the Recycle Bin on and off
-Admin's can easily speicify the forum id of the forum that should be used as the Recycle Bin
-More probably


Installation:
Follow the instructions in install.txt that is included in the zip file.


Notes: I've tested this hack on a fresh install of 2.2.9, but it should also work on 2.2.x and 2.3.0, although i might not be able to give proper support for other versions than 2.2.9


Future additions-list:
-enable recycle bin on a per-forum basis (small addition, only if anyone really wants it)


Screenshots: https://vborg.vbsupport.ru/showthrea...069#post364069


Updates:
-10 march 2003: Hack is finally out of "BETA" stage and current version is 1.5
some bugs fixed and 2 new admin cp options added.
-11 march 2003: Updated hack to version 1.5.1
2 bugs fixed. zip file updated. new install doesn't need any fixes or anything.
See this post for more info & upgrade instructions (v1.5 to v1.5.1)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 03-20-2003, 07:47 PM
Big Daddy Chemo Big Daddy Chemo is offline
 
Join Date: Oct 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-17-03 at 04:37 PM amykhar said this in Post #25
You can't delete them from the admin options Chemo. If you read the code, you will see that it is only done in editpost.

Amy
I tried it both ways, as have my MODS, and only one thread out of 12 deleted through the edit thread menu have been moved into the recycle bin.

Chemo
Reply With Quote
  #33  
Old 03-20-2003, 09:01 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great thanks!

/me clicks install
Reply With Quote
  #34  
Old 03-21-2003, 12:07 AM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Finally got around to installing this and it and it works great!
Reply With Quote
  #35  
Old 03-29-2003, 11:48 AM
Big Daddy Chemo Big Daddy Chemo is offline
 
Join Date: Oct 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still trying to use the editpost to delete and they are not moving to the recycle bin. Someone help?
Reply With Quote
  #36  
Old 03-29-2003, 11:58 AM
Breaker's Avatar
Breaker Breaker is offline
 
Join Date: Jan 2002
Location: Derby, UK
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u sure u installed properly, i would re hack all da files
Reply With Quote
  #37  
Old 03-29-2003, 03:54 PM
Big Daddy Chemo Big Daddy Chemo is offline
 
Join Date: Oct 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been over the install file several times and verified everything to the letter.
Reply With Quote
  #38  
Old 03-29-2003, 04:10 PM
Breaker's Avatar
Breaker Breaker is offline
 
Join Date: Jan 2002
Location: Derby, UK
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u sure u uploaded all files and run all queries n stuff
Reply With Quote
  #39  
Old 03-29-2003, 04:14 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i just tested it on vb 2.2.9, works flawlessy...
currently there is not much of error checking, so i guess you can't tell me what's the real problem...

i might adjust the code a bit sometime, and include error-checking...
Reply With Quote
  #40  
Old 03-29-2003, 04:52 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was thinking that you might want to change the behavior of your templates. Since this only adds a recycle bin form section inside the edit post thread, why don't you add a form box inside the template, instead of the whole editpost template, and call to a variable that points to the template?

The problem I was having was that the editpost2 template would over ride the (Original) editpost template ... where I already had hacks installed. I had to add the hacks to the editpost2 template in order to see your hack plus the one's that I had in the first place.

The editpost3 template serves little purpose since it's basically a unhacked editpost template. I don't know if I got a old copy of the hack but I haven't been able to see the recycle/restore images once the thread has been moved to the Recycle Bin forum.

<My Two Cents>
Reply With Quote
  #41  
Old 04-11-2003, 06:49 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make this hack replace all of the delete thread/post options on the forum? I do not want any post deleted without it being copied to the "Recycle bin" forum (exception would be is the user deletes his own post). For example, there are "Admin Options" listed ont he page and I would like that "Delete" option filtered through this hack as well.

Also, is there a way to make it so that when a post is recycled the user is then redirected to the "forumdisplay" page again rather than to new location for the "Recycled" post.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:00 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.10829 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete