View Full Version : Administrative and Maintenance Tools - vbTrash
Dismounted
04-18-2007, 10:00 PM
vbTrash
Description:
This mod adds functionality with a 'trash' forum.
Installation:
All the installation information is in the package.
Changes:
10 Plugins
17 Phrases
Change Log:
22/04/2007 - Version 1.2
- Fixed Non-Array Bug
20/04/2007 - Version 1.1
- Fixed Poll Bug
19/04/2007 - Version 1.0
- Initial Release
Dismounted
04-19-2007, 11:42 AM
/me Reserves
Get Shorty
04-19-2007, 11:45 AM
Very nice!
WhaLberg
04-19-2007, 11:48 AM
Rated 'Excellent'.
Reserved this mod for future use.
elmati
04-19-2007, 12:31 PM
wow, very nice. ill test this one...
just what im waitin for!
*Clicks install
Get Shorty
04-19-2007, 12:32 PM
Installed with no problems at all on a modified board.
johnrizz
04-19-2007, 01:23 PM
Isn't this the same as soft delete?
Get Shorty
04-19-2007, 01:45 PM
Isn't this the same as soft delete?
No. It doesn't actually delete the threads. It just moves them to a designated forum.
AzzidReign
04-19-2007, 02:01 PM
This is what I've been waiting for! I use to run an IPB board and I liked how when you deleted a thread, it would be moved to a forum (if you wanted). I loved that feature.
Anyways, thanks for this mod! I'll be installing it later tonight!
*Clicks install
COBRAws
04-19-2007, 02:21 PM
A little more information please? Can we set default trash forums for diferent forums?
There are already 2 different hacks for this, one acting as a general "trash" forum (https://vborg.vbsupport.ru/showthread.php?t=106327) and one with the ability of having different trash forums (https://vborg.vbsupport.ru/showthread.php?t=138106).
There is a bug with the polls when I enable this hack.
Not sure as why this happens but I hope the picture explains it better than words.
The upper poll is with the hack installed but disabled (normal poll behavior), while the lower one us with the hack enabled. As you can see it doesn't work right. [see attach img]
If you need anything, I'll try to help us much as possible :)
PS vb 3.6.5 and many hacks installed
Invalid ID
04-19-2007, 03:15 PM
very nice :)
Get Shorty
04-19-2007, 04:22 PM
There is a bug with the polls when I enable this hack.
Not sure as why this happens but I hope the picture explains it better than words.
The upper poll is with the hack installed but disabled (normal poll behavior), while the lower one us with the hack enabled. As you can see it doesn't work right. [see attach img]
If you need anything, I'll try to help us much as possible :)
PS vb 3.6.5 and many hacks installed
I'm having the same problem.
63369
That should be 1-10...
tehPARADOX
04-19-2007, 05:40 PM
This is a great hack, I've been looking for something similar to this.
Although I also can confirm this bug:
There is a bug with the polls when I enable this hack.
Not sure as why this happens but I hope the picture explains it better than words.
The upper poll is with the hack installed but disabled (normal poll behavior), while the lower one us with the hack enabled. As you can see it doesn't work right. [see attach img]
If you need anything, I'll try to help us much as possible :)
PS vb 3.6.5 and many hacks installed
TheBlackPoet
04-19-2007, 06:09 PM
very cool... installed and rated excellent!!
LadyHoney
04-19-2007, 06:30 PM
when that bug is fixed im definately interested in this mod!!!
The bug seems to be placed on the plugin called "Edit Template (showthread)". When disabled the polls show correctly ^^
Snake
04-19-2007, 08:58 PM
Uhh what is this? I have already made a hack such as this one. :\
*looks at sig*
Lionel
04-19-2007, 11:16 PM
I've got an issue with this addon. When enabled, no poll option displays.
Lionel
04-19-2007, 11:24 PM
I think it's because it is using $option which is reserved for the poll
Lionel
04-19-2007, 11:27 PM
yeah! I replaced $option with $trashoption and that fixed it
plugin: Edit Template (showthread)
if ($threadinfo['forumid'] != $vbulletin->options['vbtrash_forumid'] AND (is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['vbtrash_usergroups'])) OR ($vbulletin->options['vbtrash_modallow'] == 1 AND can_moderate($foruminfo['forumid'], '', $vbulletin->userinfo['userid']))))
{
$trashoption = '<div><label for="ao_vbt"><input type="radio" name="do" id="ao_vbt" value="trash" />' . $vbphrase[vbtrash_movet] . '</label></div>';
$vbulletin->templatecache['SHOWTHREAD'] = str_replace(
'$vbphrase[remove_redirects]</label></div>',
'$vbphrase[remove_redirects]</label></div>$trashoption',
$vbulletin->templatecache['SHOWTHREAD']
);
}
Charlie98902
04-20-2007, 12:24 AM
So is the official code updated now? I'm interested in this myself.
Get Shorty
04-20-2007, 01:12 AM
yeah! I replaced $option with $trashoption and that fixed it
plugin: Edit Template (showthread)
There are four instances of $option in the xml. I changed them all to $trashoption and it works perfectly now.
Thanks!
Get Shorty
04-20-2007, 01:12 AM
So is the official code updated now? I'm interested in this myself.
The code isn't updated, but it's simple to change until the author releases it.
Just find & replace all instances of $option with $trashoption in the XML file.
tehPARADOX
04-20-2007, 01:38 AM
The code isn't updated, but it's simple to change until the author releases it.
Just find & replace all instances of $option with $trashoption in the XML file.
thanks, fix works great.
fsakbas
04-20-2007, 07:39 AM
cool. thanks a lot.
bjhuang
04-20-2007, 09:44 AM
i'd like to trash single posts.
Dismounted
04-20-2007, 09:53 AM
i'd like to trash single posts.
That would make it unmanageable. Use soft delete for that instead.
Hack Updated!
Version 1.1 (20 Apr 2007)
- Fixed Poll Bug
Red Matrix
04-20-2007, 09:55 AM
You're a big help GetShorty!
I just installed this 1.1 version after creating a forum called Thread Review. I set the vB options for this to point to that forum and set permissions in the 'vbTrash' options. I then created a test thread and sent it to Trash Thread. I clicked on Thread Review link and receive:
Fatal error: [] operator not supported for strings in /home/cpfools/public_html/forum/forumdisplay.php(106) : eval()'d code on line 54
Now, if I select the Go To Last Post arrow, I can see this post. However, when I attempt to delete it, I get Fatal error: [] operator not supported for strings in /home/cpfools/public_html/forum/forumdisplay.php(106) : eval()'d code on line 54
again. It does delete the post, but these errors are an issue.
Here is the thread:
http://www.cpfools.com/forum/forumdisplay.php?f=97
Note, you too will receive an error.
http://www.cpfools.com/forum does not show the error
Charlie98902
04-20-2007, 01:30 PM
That would make it unmanageable. Use soft delete for that instead.
Hack Updated!
Version 1.1 (20 Apr 2007)
- Fixed Poll Bug
Marks installed works perfect on a custom board.
To the above poster are you sure that you put the ID's in and not the ulr's?
To the above poster are you sure that you put the ID's in and not the ulr's?
Thanks Charlie for the question. Yes, here is the screen shot of it showing 97 and
Here is the thread:
http://www.cpfools.com/forum/forumdisplay.php?f=97:
https://vborg.vbsupport.ru/
Charlie98902
04-20-2007, 01:48 PM
I wished I can help but still learning this stuff the XML files are my favorite as I really hate coding, that's one of the reasons I moved from PHP to vb. Maybe Dismounted can assist you.
Dotara
04-20-2007, 04:13 PM
I'm a little bit confused. Like I created a category call Trash and a forum call Trash under it but I don't know the forum ID. How do I know the forum ID for Trash? Pardon me for my silly Q. I'm new at VB.
Charlie98902
04-20-2007, 04:47 PM
I'm a little bit confused. Like I created a category call Trash and a forum call Trash under it but I don't know the forum ID. How do I know the forum ID for Trash? Pardon me for my silly Q. I'm new at VB.
Go into the admin panel click to edit the trash thread oe thread you want to send to and look at the top of that to get the ID for the thread.
You can also hold your cursor over the thread title and the ending number of the url will show the ID as well. Example will show url of your board and then f=(Forum ID number)
Dotara
04-20-2007, 04:58 PM
Hi,
I got that. Thank you very much Charlie and C_P.
Get Shorty
04-20-2007, 05:08 PM
Just in case anyone is wondering, this works just fine with vbSEO installed.
gg_luna128
04-20-2007, 08:01 PM
Suggestion/Feature:
It will be really really useful to have an option to move an X number of selected posts, click on mod options, "Trash posts", and then let us choose a name for the thread created with that posts.
Dismounted
04-21-2007, 01:56 AM
Thanks Charlie for the question. Yes, here is the screen shot of it showing 97 and
Here is the thread:
http://www.cpfools.com/forum/forumdisplay.php?f=97:
http://img408.imageshack.us/img408/4276/vbtrashra3.gif
What hacks do you have installed? Judging from the error, I reckon another hack is using the variable $replace as a string instead of an array.
Suggestion/Feature:
It will be really really useful to have an option to move an X number of selected posts, click on mod options, "Trash posts", and then let us choose a name for the thread created with that posts.
Again, this would make it really unmanageable. But I'll have a look at it.
Factory Ten
04-21-2007, 06:28 AM
This mod is great! I like it so far. Just wondering if it would be possible to automatically close the threads when they get trashed.
Dismounted
04-21-2007, 06:57 AM
It would be possible, but an easier way would be just to set the option 'Allow New Posts' in the trash forum to no.
akulion
04-21-2007, 03:25 PM
ill tag this for future installation
thanks for the nice mod:)
What hacks do you have installed? Judging from the error, I reckon another hack is using the variable $replace as a string instead of an array.
Well, thank you for the suggestion but since I have a few modifications added to this board and this hack does not like one, I will be clicking uninstall. Maybe if someone has another one I will try it.
Thanks anyway.
BadgerDog
04-21-2007, 09:58 PM
Installed... thanks..... :)
A small point ....
The "Trash Thread" option appears in the moderation drop down box (bottom) when you view the entire forum and in the top drop down thread tools when you view from within the thread, but not in the drop down moderation options at the bottom when viewing from within a thread?
For consistency, can that be added?
Regards,
Badger
Dismounted
04-22-2007, 12:32 AM
Well, thank you for the suggestion but since I have a few modifications added to this board and this hack does not like one, I will be clicking uninstall. Maybe if someone has another one I will try it.
Thanks anyway.
Maybe if you aren't so impatient, we could work out your problem.
Installed... thanks..... :)
A small point ....
The "Trash Thread" option appears in the moderation drop down box (bottom) when you view the entire forum and in the top drop down thread tools when you view from within the thread, but not in the drop down moderation options at the bottom when viewing from within a thread?
For consistency, can that be added?
Regards,
Badger
No, because this hack doesn't trash individual posts.
Maybe if you aren't so impatient, we could work out your problem.
Hey, I am all for you looking into this however, as I stated I have several modifications on my site and no less than nothing about coding and not sure I have time to go through one by one to see what may be the cause. If you would like to check this out on my site PM me and we can see. This may also help you modify this so others can use it as you may find the culprit and adjust your code accordingly for others.
Let me know as I am willing to give it a shot.
Dismounted
04-22-2007, 05:50 AM
Hack Updated!
22/04/2007 - Version 1.2
- Fixed Non-Array Bug
Note: You only need to upgrade if you are getting errors.
Thanks much for the fix and all is working now. CLicking install and suggesting this should be added to bas product as we all need a Forum for topics that need review!
LadyHoney
04-22-2007, 09:15 PM
i installed product thru admin cp... i set the admin cp settings. . none of the options are showing .. i reinstalled .. .same problem would love to use this product. Im not getting any errors just no options
I am using vbulletlin 3.65
Dismounted
04-23-2007, 06:17 AM
PM me with your forum's url and login details for an admin account and I'll check it out for you.
Majest
05-05-2007, 06:50 AM
Great hack.
*Installed
Invalid ID
05-20-2007, 03:33 PM
Does it effect the post counter?
Dismounted
05-21-2007, 06:39 AM
No, it doesn't.
petertdavis
05-31-2007, 04:56 AM
Very nice, my mods love it..... and they want more. ;)
They're asking if it can be made to do posts as well as threads.
Would be a big helper when we get those spammers who like to spam existing threads instead of making new ones.
Dismounted
05-31-2007, 07:57 AM
Wouldn't soft-delete work in those cases?
petertdavis
05-31-2007, 01:29 PM
Well, soft-delete is another way of handling it, but everyone is really liking how the 'trash' function sends the thread away and wanting the same function for posts.
Dismounted
06-01-2007, 10:41 AM
I'll have a think about how not to make it messy :p.
Sophonax
06-28-2007, 12:09 PM
/me subscribes.
In other words, bookmarked. =) Thanks for the awesome mod.
Terrasoft
07-03-2007, 10:01 PM
Hi, I just recently installed this and I noticed that if a staff member aside from admins "trash" a thread, it leaves a redirect. I turned the disable hard delete to off and I still am having this issue. I was wondering if there was a way to make it so it doesnt redirect so the forum will be cleaned out without all those redirects.
Dismounted
07-04-2007, 05:43 AM
Hmmm, it shouldn't leave a redirect. I'll look into it.
Terrasoft
07-04-2007, 11:33 AM
Except for the admin usergroup, I had set forum moderators to be allowed to trash threads and that happened.
BadgerDog
08-13-2007, 01:04 PM
Anyone else having a problem "Emptying Trash"?
I check the option and execute it, don't get a confirmation box or anything at all. Instead, I get this IE display error:
Line: 842
Char: 1
Error: Object Expected
Code: 0
URL: http://www.xxx.com/forumdisplay.php?f=4&daysprune=1&order=desc&sort=lastpost
I'm able to select posts and move them to the trash forum, but not empty the trash from the forum using the "tools" drop down" selection.
Thanks .. :)
Regards,
Badger
thedvs
08-13-2007, 03:15 PM
Is it possible to have the trash option when viewing a thread with lots of posts, so that say,
eg: post #4 has bad links/offensive, so it can be trashed?
I don't see one in mine..
Dismounted
08-14-2007, 11:03 AM
Anyone else having a problem "Emptying Trash"?
I check the option and execute it, don't get a confirmation box or anything at all. Instead, I get this IE display error:
I'm able to select posts and move them to the trash forum, but not empty the trash from the forum using the "tools" drop down" selection.
Thanks .. :)
Regards,
Badger
I cannot reproduce this error.
Is it possible to have the trash option when viewing a thread with lots of posts, so that say,
eg: post #4 has bad links/offensive, so it can be trashed?
I don't see one in mine..
You cannot trash individual posts, and I do not have it planned as I'm running short of time.
BadgerDog
08-14-2007, 01:32 PM
I cannot reproduce this error.
Thanks....
I tried to uninstall and re-install the mod, but I still get an IE error, just for the "Trash Bin" forum.
Regards,
Badger
djilou
09-03-2007, 10:40 PM
I cannot reproduce this error.
You cannot trash individual posts, and I do not have it planned as I'm running short of time.
to bad:(
my staff use to trash individual posts on my old SMF board :erm:
Dismounted
09-04-2007, 07:36 AM
And how did SMF manage these posts? Create a new thread for each trashed post?
djilou
09-04-2007, 10:55 AM
yes! it's not a MOD it's built in
Dismounted
09-05-2007, 07:29 AM
What a nightmare! I can already imagine random threads scattered everywhere just for one post...
AllenSam
09-05-2007, 11:39 PM
I would like to see 'trash single posts' too...It wouldn't matter if it got messy, it's a trash forum...trash is supposed to be messy. :p
At my forum, we don't delete anything, even spam, we just send it to trash. If it's a single post, it comes up as a new thread in the trash forum.
hddstudio
10-20-2007, 04:13 PM
*Still wishing for update for single Post deletion to Trash*
nyunyu
12-07-2007, 08:07 PM
great hack! looking for this the whole while..finally. Thanks
Arbit3r
12-08-2007, 03:05 PM
Great thanks!
papill0n
12-15-2007, 09:06 AM
Nice mod thanks but but would be soooo much nicer if it had single post deletion :)
Empoeq
12-18-2007, 08:38 PM
thanks
archonus
12-28-2007, 03:14 PM
no work for me... overwrite mod permissions (delete all only leave "move to trash")
KURTZ
12-28-2007, 03:19 PM
Dismounted, i love your hacks, any chance to get this onto 3.7.x?
Dismounted
12-29-2007, 12:48 PM
Dismounted, i love your hacks, any chance to get this onto 3.7.x?
Thanks. I haven't had a chance to play with 3.7 yet, so I don't have any ETAs. But they will get there eventually.
XxBuLLeTz
12-29-2007, 01:15 PM
good hack...thanks a lot:D
anyone got any probs in 3.7? :)
Dismounted
03-28-2008, 06:03 AM
I have not tried installing it on vBulletin 3.7 yet.
installed in 3.7 and works fine.
Dismounted
03-28-2008, 09:17 AM
Thanks for letting me know. :)
Mrdby
04-04-2008, 01:40 AM
The main purpose of this hack is?
Dismounted
04-04-2008, 04:41 AM
Moves selected threads to "trash" forum, and allows you to empty the trash forum with one click.
Gersfan
04-06-2008, 08:13 AM
Does this delete from your forum stats, If you trash 1000 posts does your stats go back down 1000 posts if you trash the trash..?
Thanks, Great mod!
Dismounted
04-06-2008, 08:46 AM
If you set the trash forum to not count in post counts, yes.
SEdwards1
04-07-2008, 11:40 AM
yeah, im going to be using this :)
Charlie98902
04-30-2008, 07:12 PM
Just so everyone knows this works just fine with 3.7.0 gold.
Dismounted
05-01-2008, 05:56 AM
Thanks for letting me know.
Charlie98902
05-03-2008, 01:44 AM
Anytime this indeed is a great mod to have. Might want to port it over in that section now too?
Dismounted
05-03-2008, 04:44 AM
I need to test everything myself before I feel happy to post it over there.
Big Boss
05-07-2008, 08:57 PM
Is this going to work fine on 3.7.x I wonder?
echo2kk5
05-08-2008, 12:41 AM
I have it installed on 3.7 Gold and it works perfectly. :)
Charlie98902
05-08-2008, 01:19 AM
I am using it right now on 3.7.0.
ShadowOne
05-09-2008, 12:59 PM
i have a custom skin where i click thread tools and it brings me to the bottom to choose... and trash thread does not appear...is there a piece of coding i can add to the dropdown list maybe?
ShadowOne
05-09-2008, 01:19 PM
okay well i did get it to work...i added this to my showthread template...
<option value="trash">$vbphrase[vbtrash_movet]</option>
is there a condition i need to wrap around it or will the rest of the hack do that automaticly?
Dismounted
05-10-2008, 05:15 AM
Check in the XML file, I believe you need to add a conditional to prevent it from showing to any user (we wouldn't want that! ;)).
Deadly Assassin
05-16-2008, 04:06 AM
Brilliant :up:
GhOsTxX
05-26-2008, 10:16 PM
i would love to use, but it doesnt seem to wanna work. Like it doesnt even show up in the drop down menu. any help?
xoclanes
06-02-2008, 04:47 PM
i would love to use, but it doesnt seem to wanna work. Like it doesnt even show up in the drop down menu. any help?
same problem
xoclanes
06-02-2008, 04:58 PM
I unistalled and installed again and its works only for thread but no for post...is that normal?
Dismounted
06-03-2008, 04:28 AM
You can only "trash" threads.
car20
07-07-2008, 11:03 AM
dear Dismounted
can i use this mod for vb 3.7.2?
Dismounted
07-08-2008, 05:18 AM
If you read a few posts up...it should work.
car20
07-08-2008, 11:17 AM
thanks alot . installed
tazzarkin
07-13-2008, 05:28 PM
So, this could be almost like a Modification Graveyard?
Dismounted
07-14-2008, 06:05 AM
Yep.
KAWIE1
07-24-2008, 05:40 PM
Thanks, I will try this on my 3.6.8
m002.p
07-26-2008, 01:59 PM
Fantastic but simple mod. Congratulations & will look forward to an official 3.7 release.
Installed
EagleNick
08-07-2008, 12:44 AM
Would you be able to add a feature to Trash a Post, too?
Other than that, I love this Mod ;)
m002, it works fine on 3.7. (I'm using it on 3.7.2PL1)
ArnyVee
08-07-2008, 01:07 AM
Is there a way to change the verbiage "trash threads" to something else?
I have a 'already used news' forum for items that have been reported on the forums already but we receive another RSS feed for the same item.
I'd like to change it to "already used" or "already used news". Any thoughts?
deadlySniper
01-12-2009, 08:10 PM
Will this mod work on 3.7.x and 3.8.0?
Dismounted
01-13-2009, 04:14 AM
As the poster a few posts up mentioned, yes, it should work.
Thanks for letting me know. :)
has some phrase problem in 3.8. any hints? :o
Dismounted
01-24-2009, 12:13 PM
What phrase problems?
zefyx
01-31-2009, 08:52 AM
What phrase problems?
In vBulletin 3.8.0 where normally "Trash Thread" would show up (moderation dropdown) you see nothing but blank white space. Setting still works, simply white space though (no text).
Dismounted
02-01-2009, 09:13 AM
I have not tested the modification on 3.8, but I will see if I get the time to do so some time soon.
RTMdotORG
04-13-2009, 10:01 PM
In vBulletin 3.8.0 where normally "Trash Thread" would show up (moderation dropdown) you see nothing but blank white space. Setting still works, simply white space though (no text).
do u have vboptimize?
trying flushing your cache...
i did that and it worked...
bigcurt
04-23-2009, 11:02 AM
Works perfectly fine for me on 3.8.
kavehch
05-02-2009, 12:07 PM
do u have vboptimize?
trying flushing your cache...
i did that and it worked...
hi
i have this problem if disable vboptimize work but able vboptimize not work and empty text pleae help
Dismounted
05-03-2009, 04:47 AM
Then it is not a problem with this modification - but with the other modification.
EagleNick
05-03-2009, 03:59 PM
Would you be able to add a feature to Trash a Post, too?
Other than that, I love this Mod ;)
m002, it works fine on 3.7. (I'm using it on 3.7.2PL1)
Any plans/intentions?
Sunka
05-03-2009, 11:17 PM
Any plans/intentions?
I am wondering too..
vBTrash for posts and topics...in vB v3.8.2
Stormlilly
05-04-2009, 10:20 AM
I am wondering the same thing. I am setting up a moderator system and want our moderators to be able to use a "move to trash" option rather than the soft delete system. This way all of the deleted content is moved to one place where it can be reviewed.
This option currently only moves threads to trash, can this be tweaked to move the posts as well?
Or does someone know of a similar solution?
Thanks for your help. :)
Dismounted
05-05-2009, 05:53 AM
Any plans/intentions?
As always - it'll be done when it's done. :)
This option currently only moves threads to trash, can this be tweaked to move the posts as well?
I don't understand what you're trying to say? Any posts inside that thread will be moved along with the thread when it is trashed.
Sunka
05-05-2009, 06:00 PM
I don't understand what you're trying to say? Any posts inside that thread will be moved along with the thread when it is trashed.
No, no....
Option to move just some post to Trash, not whole thread if we do not need.
Dismounted
05-06-2009, 07:01 AM
No, no....
Option to move just some post to Trash, not whole thread if we do not need.
I wasn't quoting you... I saw your post, and replied to the parent post.
RTMdotORG
05-09-2009, 02:32 AM
this works fine for me with 3.8...
this would be hard to move post to trash....
cuz you'd have to make a thead just to move posts too...
basically its a whole new modification..
Jamey
08-22-2009, 11:24 AM
So this does work with 3.8.4?
Charlie98902
11-15-2009, 11:28 PM
I have been using this since you first released it. Is there any way to update it for vb4? I'll gladly test for you.
Thanks
xoclanes
02-02-2010, 09:10 PM
any updates to make it work with vB 4?
Shogo
03-05-2010, 05:21 PM
any updates to make it work with vB 4?
+1
really need it!
KyleWhitey
03-09-2010, 03:05 PM
Works on 3.8.2 thanks
Macindy
07-05-2010, 03:48 PM
Does this plugin work with 4.0.4?
LOKIN510051
12-17-2010, 02:53 AM
gracias me ha funcionado de maravilla
Arianismmm
06-30-2012, 12:32 PM
can i find this hook for vb 4 ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.