Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #42  
Old 04-11-2003, 10:40 PM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bitg, check the forum... there is another recycle bin hack with modlog together...it's working great...it' recycle bin all delete thread, post and edited post or threads....also log all activity of mods...
Reply With Quote
  #43  
Old 04-12-2003, 12:13 AM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I saw that, I was concerned because it said it was a beta.
Reply With Quote
  #44  
Old 04-16-2003, 06:22 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was wondering how vB call templates in admin center

in /admin/recycle.php

PHP Code:
$templatesused "redirect_deletethread2,redirect_restorethread2,
error_invalidid,redirect_threadclosed"


when I use the recycle options in admin CP ([restore] - [delete] ...), it redirects me to a blank page. after that, if I use any other function in Admin CP, there's some strange code that I've never seen before (My board is 2.3.0):

Code:
?qA?DH??��DZR*ŵ)??
Λ ?c–蔬呈??9?J͒?Υ?V?
ԃT?? ??됞?Q??L?С???ѹ#?
q???]??P[+Idޒ?=Ⱥ Ɩ%?
x̽ޛ붱2gW-:JĶ?ʅ?s???
t*ľ\n????r?��4?
s떡懷֋?��?
Ÿ㭯0̃HTTP/1.1 200 OK Date: Wed, 16 Apr 
2003 06:05:11 GMT Server: Apache X-Powered-By: PHP/4.2.2 
Content-Encoding: gzip Keep-Alive: timeout=15, max=999 
Connection: Keep-Alive Transfer-Encoding: chunked Content-
Type: text/html 5719 ?xځW?l>
Reply With Quote
  #45  
Old 04-16-2003, 06:13 PM
MetroSports82's Avatar
MetroSports82 MetroSports82 is offline
 
Join Date: Nov 2002
Location: NJ
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
04-11-03 at 08:13 PM bitg said this in Post #42
I saw that, I was concerned because it said it was a beta.
Sorry if this is OT. In reponse to bitg. Yeah, I too had the same concerns about that beta hack, bitg. Plus, I'm not sure how your board is set up, but taking a chance on that 'beta' installer script, on a heavily hacked board, is really not worth the risk. In addition, that hack had issues with post counts, and other problems. until its a.) its been fully released here, or b.) there is a .txt install file, I wouldn't take the chance. Otherwise, this is the hack you'll want to use, by FlyingDutchman. thanks FD!
Reply With Quote
  #46  
Old 04-16-2003, 06:44 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:22 AM mtha said this in Post #43

Code:
?qA?DH??��DZR*ŵ)??
Λ ?c–蔬呈??9?J͒?Υ?V?
ԃT?? ??됞?Q??L?С???ѹ#?
q???]??P[+Idޒ?=Ⱥ Ɩ%?
x̽ޛ붱2gW-:JĶ?ʅ?s???
t*ľ\n????r?��4?
s떡懷֋?��?
Ÿ㭯0̃HTTP/1.1 200 OK Date: Wed, 16 Apr 
2003 06:05:11 GMT Server: Apache X-Powered-By: PHP/4.2.2 
Content-Encoding: gzip Keep-Alive: timeout=15, max=999 
Connection: Keep-Alive Transfer-Encoding: chunked Content-
Type: text/html 5719 ?xځW?l>

well, i can tell you, that's some ++++ed up sh*t, and as far as i know, this cannot be caused by my hack i think...
did you try to remove that templatesused (as it's not needed) line and see if any effect?
Reply With Quote
  #47  
Old 04-16-2003, 07:56 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:44 PM FlyingDutchman said this in Post #45
well, i can tell you, that's some ++++ed up sh*t, and as far as i know, this cannot be caused by my hack i think...
did you try to remove that templatesused (as it's not needed) line and see if any effect?

In my Admin CP, vB does not call any template, at all. All the redirect was used as the echo command

so, I remove all the "standardredirect" parts, and use echo. The problem's fixed.

here's one place that I change (do the same for other standardredirect calls):

PHP Code:
// eval("standardredirect(\"".gettemplate("redirect_undorequest")."\",\"recycle.php?
// s=$session[sessionhash]&action=edit\");");
  
echo "<p>You have successfully undone the request for deletion of this thread.</p>"
Reply With Quote
  #48  
Old 04-16-2003, 08:10 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-17-03 at 04:39 PM amykhar said this in Post #26
Enhancements desired, and I am willing to help if you want.

1. I would like to be able to use the admin options to recycle threads.

2. I would like to be able to recycle posts too. Currently it only works on threads. I believe that using the code to split a thread and move it to a new forum could be used to accomplish this.

3. I need to figure out how to adjust this hack to accomodate the multiple quote hack that I have installed.

Amy
Did you have these functions added on?

1- For "Admin Option" to recycle, I think it's almost the same as what you have in the hack, which move the thread to trash

2 - Recycle posts could be complicated ... to "restore".
The process to delete would be,
- find out if the thread has more than 1 posts. (if there's only 1 post, apply the delete/recycle thread)
- split the post in that thread, destination is the Recycle Bin board.

In order to restore, you'll have to know the original board (you already have this), and "Original Thread". If the Original Thread is different from the thread that the post is being restored, then doing a merge. otherwise, moving to original forum would be enough.

Waiting for your update

Great hack, FlyingDutchman
Reply With Quote
  #49  
Old 04-22-2003, 03:10 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am still looking for an answer here. Other than installing the other hack, is there a way to add the "Recycle" option to the other "Delete Thread / Post" options such as you see in the "Admin CP" on each post?

mtha, I see what you are saying, but some instructions on how to add it to that section would be helpful.
Reply With Quote
  #50  
Old 04-22-2003, 07:28 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:10 PM bitg said this in Post #48

mtha, I see what you are saying, but some instructions on how to add it to that section would be helpful.


PHP Code:
// eval("standardredirect(\"".gettemplate("redirect_undorequest")."\",\"recycle.php?
// s=$session[sessionhash]&action=edit\");");
  
echo "<p>You have successfully undone the request for deletion of this thread.</p>"
Just look for the places that use standardredirect, and replace that line with echo, just like the one above.
You, ofcourse. have to change the echo quote, with the text in each template that the standardredirect line used.
Reply With Quote
  #51  
Old 04-25-2003, 08:54 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the recycle bin turned on. I have journals, where users are added as moderators, but not moderators by usergroup. I have ALL of my usergroup and forum permissions set up fine, but they STILL cannot delete posts! The two mods of one of the journals can delete posts, but not threads. The mods of other journals can do it fine in his, and when I added him to theirs, that as well. WHAT could be stopping these two from recycling threads?!?!?
Reply With Quote
Reply


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 02:26 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.11012 seconds
  • Memory Usage 2,324KB
  • 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
  • (2)bbcode_code
  • (3)bbcode_php
  • (5)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