PDA

View Full Version : vbTrash


Dismounted
19 Apr 2007, 12:42
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
19 Apr 2007, 12:42
/me Reserves

Get Shorty
19 Apr 2007, 12:45
Very nice!

WhaLberg
19 Apr 2007, 12:48
Rated 'Excellent'.

Reserved this mod for future use.

elmati
19 Apr 2007, 13:31
wow, very nice. ill test this one...
just what im waitin for!

*Clicks install

Get Shorty
19 Apr 2007, 13:32
Installed with no problems at all on a modified board.

johnrizz
19 Apr 2007, 14:23
Isn't this the same as soft delete?

Get Shorty
19 Apr 2007, 14:45
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
19 Apr 2007, 15:01
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
19 Apr 2007, 15:21
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 (http://www.vbulletin.org/forum/showthread.php?t=106327) and one with the ability of having different trash forums (http://www.vbulletin.org/forum/showthread.php?t=138106).

NolF
19 Apr 2007, 15:42
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
19 Apr 2007, 16:15
very nice :)

Get Shorty
19 Apr 2007, 17:22
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
19 Apr 2007, 18:40
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
19 Apr 2007, 19:09
very cool... installed and rated excellent!!

LadyHoney
19 Apr 2007, 19:30
when that bug is fixed im definately interested in this mod!!!

NolF
19 Apr 2007, 20:10
The bug seems to be placed on the plugin called "Edit Template (showthread)". When disabled the polls show correctly ^^

Snake
19 Apr 2007, 21:58
Uhh what is this? I have already made a hack such as this one. :\

*looks at sig*

Lionel
20 Apr 2007, 00:16
I've got an issue with this addon. When enabled, no poll option displays.

Lionel
20 Apr 2007, 00:24
I think it's because it is using $option which is reserved for the poll

Lionel
20 Apr 2007, 00:27
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
20 Apr 2007, 01:24
So is the official code updated now? I'm interested in this myself.

Get Shorty
20 Apr 2007, 02:12
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
20 Apr 2007, 02:12
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
20 Apr 2007, 02:38
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
20 Apr 2007, 08:39
cool. thanks a lot.

bjhuang
20 Apr 2007, 10:44
i'd like to trash single posts.

Dismounted
20 Apr 2007, 10:53
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
20 Apr 2007, 10:55
You're a big help GetShorty!

C_P
20 Apr 2007, 14:10
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
20 Apr 2007, 14:30
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?

C_P
20 Apr 2007, 14:34
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:
http://img408.imageshack.us/img408/4276/vbtrashra3.gif

Charlie98902
20 Apr 2007, 14:48
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
20 Apr 2007, 17:13
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
20 Apr 2007, 17:47
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.

C_P
20 Apr 2007, 17:54
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
20 Apr 2007, 17:58
Hi,

I got that. Thank you very much Charlie and C_P.

Get Shorty
20 Apr 2007, 18:08
Just in case anyone is wondering, this works just fine with vbSEO installed.

gg_luna128
20 Apr 2007, 21:01
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
21 Apr 2007, 02:56
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
21 Apr 2007, 07:28
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
21 Apr 2007, 07:57
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
21 Apr 2007, 16:25
ill tag this for future installation

thanks for the nice mod:)

C_P
21 Apr 2007, 16:58
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
21 Apr 2007, 22:58
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
22 Apr 2007, 01:32
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.

C_P
22 Apr 2007, 05:29
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
22 Apr 2007, 06:50
Hack Updated!

22/04/2007 - Version 1.2
- Fixed Non-Array Bug

Note: You only need to upgrade if you are getting errors.

C_P
22 Apr 2007, 06:53
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
22 Apr 2007, 22:15
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
23 Apr 2007, 07:17
PM me with your forum's url and login details for an admin account and I'll check it out for you.

Majest
05 May 2007, 07:50
Great hack.

*Installed

Invalid ID
20 May 2007, 16:33
Does it effect the post counter?

Dismounted
21 May 2007, 07:39
No, it doesn't.

petertdavis
31 May 2007, 05:56
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
31 May 2007, 08:57
Wouldn't soft-delete work in those cases?

petertdavis
31 May 2007, 14:29
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
01 Jun 2007, 11:41
I'll have a think about how not to make it messy :p.

Sophonax
28 Jun 2007, 13:09
/me subscribes.

In other words, bookmarked. =) Thanks for the awesome mod.

Terrasoft
03 Jul 2007, 23:01
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
04 Jul 2007, 06:43
Hmmm, it shouldn't leave a redirect. I'll look into it.

Terrasoft
04 Jul 2007, 12:33
Except for the admin usergroup, I had set forum moderators to be allowed to trash threads and that happened.

BadgerDog
13 Aug 2007, 14:04
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
13 Aug 2007, 16:15
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
14 Aug 2007, 12:03
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
14 Aug 2007, 14:32
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
03 Sep 2007, 23:40
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
04 Sep 2007, 08:36
And how did SMF manage these posts? Create a new thread for each trashed post?

djilou
04 Sep 2007, 11:55
yes! it's not a MOD it's built in

Dismounted
05 Sep 2007, 08:29
What a nightmare! I can already imagine random threads scattered everywhere just for one post...

AllenSam
06 Sep 2007, 00:39
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
20 Oct 2007, 17:13
*Still wishing for update for single Post deletion to Trash*

nyunyu
07 Dec 2007, 21:07
great hack! looking for this the whole while..finally. Thanks

Arbit3r
08 Dec 2007, 16:05
Great thanks!

papill0n
15 Dec 2007, 10:06
Nice mod thanks but but would be soooo much nicer if it had single post deletion :)

Empoeq
18 Dec 2007, 21:38
thanks

archonus
28 Dec 2007, 16:14
no work for me... overwrite mod permissions (delete all only leave "move to trash")

KURTZ
28 Dec 2007, 16:19
Dismounted, i love your hacks, any chance to get this onto 3.7.x?

Dismounted
29 Dec 2007, 13:48
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
29 Dec 2007, 14:15
good hack...thanks a lot:D

RvG2
28 Mar 2008, 05:11
anyone got any probs in 3.7? :)

Dismounted
28 Mar 2008, 07:03
I have not tried installing it on vBulletin 3.7 yet.

RvG2
28 Mar 2008, 08:55
installed in 3.7 and works fine.

Dismounted
28 Mar 2008, 10:17
Thanks for letting me know. :)

Mrdby
04 Apr 2008, 02:40
The main purpose of this hack is?

Dismounted
04 Apr 2008, 05:41
Moves selected threads to "trash" forum, and allows you to empty the trash forum with one click.

Gersfan
06 Apr 2008, 09:13
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
06 Apr 2008, 09:46
If you set the trash forum to not count in post counts, yes.

SEdwards1
07 Apr 2008, 12:40
yeah, im going to be using this :)

Charlie98902
30 Apr 2008, 20:12
Just so everyone knows this works just fine with 3.7.0 gold.

Dismounted
01 May 2008, 06:56
Thanks for letting me know.

Charlie98902
03 May 2008, 02:44
Anytime this indeed is a great mod to have. Might want to port it over in that section now too?

Dismounted
03 May 2008, 05:44
I need to test everything myself before I feel happy to post it over there.

Big Boss
07 May 2008, 21:57
Is this going to work fine on 3.7.x I wonder?

echo2kk5
08 May 2008, 01:41
I have it installed on 3.7 Gold and it works perfectly. :)

Charlie98902
08 May 2008, 02:19
I am using it right now on 3.7.0.

ShadowOne
09 May 2008, 13:59
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
09 May 2008, 14:19
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
10 May 2008, 06:15
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
16 May 2008, 05:06
Brilliant :up:

GhOsTxX
26 May 2008, 23:16
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
02 Jun 2008, 17:47
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
02 Jun 2008, 17:58
I unistalled and installed again and its works only for thread but no for post...is that normal?

Dismounted
03 Jun 2008, 05:28
You can only "trash" threads.

car20
07 Jul 2008, 12:03
dear Dismounted
can i use this mod for vb 3.7.2?

Dismounted
08 Jul 2008, 06:18
If you read a few posts up...it should work.

car20
08 Jul 2008, 12:17
thanks alot . installed

tazzarkin
13 Jul 2008, 18:28
So, this could be almost like a Modification Graveyard?

Dismounted
14 Jul 2008, 07:05
Yep.

KAWIE1
24 Jul 2008, 18:40
Thanks, I will try this on my 3.6.8

m002.p
26 Jul 2008, 14:59
Fantastic but simple mod. Congratulations & will look forward to an official 3.7 release.

Installed

EagleNick
07 Aug 2008, 01:44
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
07 Aug 2008, 02:07
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
12 Jan 2009, 21:10
Will this mod work on 3.7.x and 3.8.0?

Dismounted
13 Jan 2009, 05:14
As the poster a few posts up mentioned, yes, it should work.

RvG2
24 Jan 2009, 06:00
Thanks for letting me know. :)

has some phrase problem in 3.8. any hints? :o

Dismounted
24 Jan 2009, 13:13
What phrase problems?

zefyx
31 Jan 2009, 09:52
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
01 Feb 2009, 10:13
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
13 Apr 2009, 23:01
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
23 Apr 2009, 12:02
Works perfectly fine for me on 3.8.

kavehch
02 May 2009, 13:07
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
03 May 2009, 05:47
Then it is not a problem with this modification - but with the other modification.

EagleNick
03 May 2009, 16:59
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
04 May 2009, 00:17
Any plans/intentions?

I am wondering too..
vBTrash for posts and topics...in vB v3.8.2

Stormlilly
04 May 2009, 11:20
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 May 2009, 06:53
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 May 2009, 19:00
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
06 May 2009, 08:01
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
09 May 2009, 03:32
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
22 Aug 2009, 12:24
So this does work with 3.8.4?

Charlie98902
16 Nov 2009, 00:28
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 Feb 2010, 22:10
any updates to make it work with vB 4?

Shogo
05 Mar 2010, 18:21
any updates to make it work with vB 4?

+1
really need it!

KyleWhitey
09 Mar 2010, 16:05
Works on 3.8.2 thanks

Macindy
05 Jul 2010, 16:48
Does this plugin work with 4.0.4?

LOKIN510051
17 Dec 2010, 03:53
gracias me ha funcionado de maravilla