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

Reply
 
Thread Tools
Recycle Bin Hack v1.0b Details »»
Recycle Bin Hack v1.0b
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: 09-17-2002 Last Update: Never Installs: 6
Is in Beta Stage  
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, HENCE WHY IT'S LABELED BETA! I 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 ).
-More

Installation (also in the zip!!!):
Code:
************************************************
*   Installation instructions for              *
*   vB Recycle Bin Hack by                     *
*   Rick Jansen (aka FlyingDutchman)           *
*   ? copyright 2002, all rights reserved.     *
*   vBulletin is ? Copyright 2000-2002         *
*   by Jelsoft Enterprises Ltd.                *
************************************************

Files to edit: 3
Files to add: 2
Queries to run: 1
Templates to add: 12
Templates to edit: 0

Step 1.
Extract the files in the 'files' directory in the zip to your forums dir. Then open up '/admin/recycle.php' and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin.

Step 2.
Open 'templates.txt' with a text editor like notepad and search for and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin. Then add the needed templates.

Step 3.
Open 'files.txt' with a text editor like notepad and search for and replace any occurance of '5' (REMEMBER THAT '5' IS NOT THESAME AS '45' OR '85'!!!) with the forumid of your recycle bin. Then make the needed file modifications.

Step 4.
Open 'queries.txt' and run the queries as described.

Step 5.
Enjoy!
Notes: I've made this hack for vb 2.2.6, but it should work on 2.2.x too...
Can somebody please test it for vb 2.2.7 for me and tell me if it works? thanks.

Future additions-list:
-total new access mask (i.e. 'canrecycle')
-enable recycle bin on a per-forum basis (if requested only!!!)

Screenshots: See next posts.

Updates:

-09-25-02.-Fixed bug in template: editpost2 (updated the zip! - no need for fix when doing fresh install)

Show Your Support

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

Comments
  #22  
Old 11-19-2002, 07:11 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh right, I just misunderstood what he said then, that makes this a great hack...just to clear it up though:

Lets say there is a thread with, say 44 replies.

Now if I delete the first post in this thread, which is the initial post, will the whole thread be moved to the recycling bin, so I can go to the bin and look at the whole thread?
Reply With Quote
  #23  
Old 11-20-2002, 01:00 AM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by N9ne
Lets say there is a thread with, say 44 replies.

Now if I delete the first post in this thread, which is the initial post, will the whole thread be moved to the recycling bin, so I can go to the bin and look at the whole thread?
No, Read this:

Quote:
Features: -Only first post in thread will be recycled, 'normal' posts will still be fully deleted.
in other words, the other posts will be lost, all that will remain is the thread starters post, (at least that is how the author explained it).
Reply With Quote
  #24  
Old 11-20-2002, 03:04 AM
danrak danrak is offline
 
Join Date: Dec 2001
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Exo
i can not see the restore or delete button in the Thread?
I am having the same problem, were you able to fix it?
Reply With Quote
  #25  
Old 11-22-2002, 06:44 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So is there any way to make it so the whole thread is sent to the recylcing bin instead of just the first post?
Reply With Quote
  #26  
Old 11-28-2002, 11:04 AM
Exo's Avatar
Exo Exo is offline
 
Join Date: Nov 2001
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sebastian


No, Read this:



in other words, the other posts will be lost, all that will remain is the thread starters post, (at least that is how the author explained it).

wrong, it means when you edit the other posts you can delete it, but not if you move the first post that the others get lost, they still moved too.


Quote:
Originally posted by danrak

I am having the same problem, were you able to fix it?
the problem is that you must edit the showthread.php so that it use the showthread_recycle template.
Reply With Quote
  #27  
Old 11-29-2002, 01:43 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi people
i haven't been online much lately and therefore haven't had any time to fix the bugs and stuff

just let me be clear:

-when you recycle a thread, the WHOLE thread will be moved into the recycle bin
-you can still delete single posts INSIDE a thread (that's all posts that are not 1st post of a thread )

i hope that's clear enough...


and i'll fix the problem(s) when i have time, tomorrow or the day after possibly...
Reply With Quote
  #28  
Old 11-30-2002, 03:26 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's just what I wanted I asked the question three times, first time you said it just moves the first post, second time others said it moves the first post, third time the whole thread gets moved...so in other words, I'm gonna install this one
Reply With Quote
  #29  
Old 12-02-2002, 03:58 PM
DaMixer DaMixer is offline
 
Join Date: Nov 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Template : showthread_recycle

Don't Work After Delete Thread ?!
Reply With Quote
  #30  
Old 12-22-2002, 11:26 AM
Automated Automated is offline
 
Join Date: Sep 2002
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed works fine for me!

/me clicks install
Reply With Quote
  #31  
Old 01-26-2003, 02:57 AM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what will happen if i use "prune", will it move pruned thread to recyclebin forum?
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 06:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07367 seconds
  • Memory Usage 2,303KB
  • 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_code
  • (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
  • (3)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