vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Recycle Bin Hack (https://vborg.vbsupport.ru/showthread.php?t=49904)

FlyingDutchman 03-09-2003 10:00 PM

vB Recycle Bin Hack
 
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! (:D)


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 :D).
-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)

FlyingDutchman 03-10-2003 04:17 PM

<font color="red">D0H! I can't seem to attach any file at this moment, so no screenshots for now...</font>

uomoragno 03-10-2003 04:51 PM

there isn't the file rbh_install.php in the zip

Kars10 03-10-2003 04:53 PM

Cool!!
Ive waited for this!! :)
Can you please post instructions for us beta-testers (how to update)?

Thanks

FlyingDutchman 03-10-2003 07:25 PM

oh, heheh, well, it's updated now :) - sorry!

and about you kars, well, i guess you have to uninstall it manually, i might do a instruction file tomorrow if i have any time...

Xenon 03-10-2003 07:28 PM

the upload problem should be fixed now :)

Breaker 03-10-2003 07:29 PM

u realise that now anyone with or without real version of vb can download ur hack...

Breaker 03-10-2003 07:30 PM

The file uploaded on vb.org incase server goes down...

Note: this is V1.5 the latest is 1.5.1 which is on the first post

Breaker 03-10-2003 07:55 PM

hmm i deleted it and nothing happened :( the thread was deleted but it didn't move :( grrr

Breaker 03-10-2003 07:57 PM

aha worked it out, great hack m8

Kars10 03-10-2003 08:18 PM

Quote:

Originally posted by FlyingDutchman

and about you kars, well, i guess you have to uninstall it manually, i might do a instruction file tomorrow if i have any time...

Cool, thank you very much! :)

FlyingDutchman 03-11-2003 03:53 AM

Screenshot: Recycle bin options in the admin cp.

FlyingDutchman 03-11-2003 03:54 AM

Screenshot: Recycle bin forum showthread (restore & delete) buttons.

FlyingDutchman 03-11-2003 03:55 AM

Screenshot: vB Options: [Thread Display Options] with the hack installed.

Kars10 03-11-2003 07:29 AM

@ Flying Dutchman, maybe im just stupid, but i dont have the restore - delete buttons show up ... :(
Whats with that:
Code:

$recyclebinnewthread
and
Code:

recyclebinnewreply
?
Should we put this in showthread-template? :confused:

squawell 03-11-2003 07:32 AM

Quote:

Originally posted by FlyingDutchman
Screenshot: Recycle bin forum showthread (restore & delete) buttons.
i have this problem this two buttons did not show up....

can u tell me where do i doing wrong??thankz~

Kars10 03-11-2003 07:48 AM

I believe we must replace the newthreadlink and newreplylink with that varables.

Ive tested it and it works.

Code:

$recyclebinnewthread -  $recyclebinnewreply

squawell 03-11-2003 08:33 AM

Quote:

Originally posted by Kars10
I believe we must replace the newthreadlink and newreplylink with that varables.

Ive tested it and it works.

Code:

$recyclebinnewthread -  $recyclebinnewreply

yes....Kars10 u r right!!now it work~~~~~~:D:D:D:D

i find another problem

when i delete the post in recycle bin and i wrote why i want to

delete's reason but it bring me to this template"error_noid"

so what cause that??thankz~

Kars10 03-11-2003 11:15 AM

Quote:

Originally posted by squawell

yes....Kars10 u r right!!now it work~~~~~~:D:D:D:D

i find another problem

when i delete the post in recycle bin and i wrote why i want to

delete's reason but it bring me to this template"error_noid"

so what cause that??thankz~

Here the same... :paranoid: . I have a look later. ;)

Dark Shogun 03-11-2003 11:47 AM

Just wondering would it be possible to have it move the whole thread to the recycle bin?

Dark Shogun

FlyingDutchman 03-11-2003 12:20 PM

Quote:

Originally posted by Kars10
@ Flying Dutchman, maybe im just stupid, but i dont have the restore - delete buttons show up ... :(
Whats with that:
Code:

$recyclebinnewthread
and
Code:

recyclebinnewreply
?
Should we put this in showthread-template? :confused:

omg! :D, i just knew i forgot something :confused:
sorry...
i will update the install files now and check again for errors :paranoid:

sorry!

FlyingDutchman 03-11-2003 12:37 PM

new update! version 1.5.1

-bugs fixed: restore & delete button now show up
-bugs fixed: noid error when submitting request for deletion


new install: just download the file and install the hack using install.txt

upgrade from v1.5:

step 1: open rbh_install.php (the version 1.5 one!) and press the uninstall link, wait till it's finished.
step 2: download the new zip and overwrite the rbh_install.php file with the v1.5.1 one, execute it and click install.
step 3: open the new install.txt and follow steps 9 & 10

done!

Kars10 03-11-2003 01:12 PM

It works man!!
This hack is so cool!! :)

Thank you very much.
[high]* Kars10 klicks install![/high]

Big Daddy Chemo 03-17-2003 02:46 AM

hhmmm...I installed the hack but it does not function. I double checked the files changes, made sure the bin forum was created, enabled the bin in the options...help?

I've created some test threads and have deleted them by editing the post and through the admin options but they do not get moved to the recycle bin forum.

Chemo

amykhar 03-17-2003 02:37 PM

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

amykhar 03-17-2003 02:39 PM

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

amykhar 03-17-2003 03:52 PM

OK. I no longer need #1. I have that one done. If FlyingDutchman wants the code, I'll email it to him.

Amy

danielalon 03-18-2003 09:56 AM

i have installed the hack and when i delete a post it doesnt get to the recycle bin...
why?

FlyingDutchman 03-19-2003 04:39 AM

Quote:

03-17-03 at 06:52 PM amykhar said this in Post #27
OK. I no longer need #1. I have that one done. If FlyingDutchman wants the code, I'll email it to him.

Amy

ok, please e-mail me at: FlyingDutchman391@hotmail.com or just send me a pm...

i might do the other 2 today... i hope i can make it today, b/c next week will be a very busy one for me and there's no time for coding or anything really...

FlyingDutchman 03-19-2003 04:41 AM

Quote:

Yesterday at 12:56 PM danielalon said this in Post #28
i have installed the hack and when i delete a post it doesnt get to the recycle bin...
why?

can you please be more specific? it just says that the thread has been recycled but it actually isn't?
or do you press the admin delete function (which WILL delete the thread, at least at this moment)
does it give any error message?

Big Daddy Chemo 03-20-2003 07:47 PM

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

Dan 03-20-2003 09:01 PM

Works great thanks!

/me clicks install

Bison 03-21-2003 12:07 AM

Finally got around to installing this and it and it works great! :D

Big Daddy Chemo 03-29-2003 11:48 AM

Still trying to use the editpost to delete and they are not moving to the recycle bin. Someone help?

Breaker 03-29-2003 11:58 AM

u sure u installed properly, i would re hack all da files

Big Daddy Chemo 03-29-2003 03:54 PM

I've been over the install file several times and verified everything to the letter.

Breaker 03-29-2003 04:10 PM

u sure u uploaded all files and run all queries n stuff

FlyingDutchman 03-29-2003 04:14 PM

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...

Bison 03-29-2003 04:52 PM

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>

Holidazed 04-11-2003 06:49 PM

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.


All times are GMT. The time now is 04:49 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.01468 seconds
  • Memory Usage 1,820KB
  • 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
  • (6)bbcode_code_printable
  • (8)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
  • (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