vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - vbTrash (https://vborg.vbsupport.ru/showthread.php?t=145258)

Dismounted 04-18-2007 10:00 PM

vbTrash
 
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

Quote:

Originally Posted by stone0075 (Post 1231234)
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 and one with the ability of having different trash forums.

NolF 04-19-2007 02:42 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

Invalid ID 04-19-2007 03:15 PM

very nice :)

Get Shorty 04-19-2007 04:22 PM

Quote:

Originally Posted by NolF (Post 1231280)
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.

Attachment 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:

Quote:

Originally Posted by NolF (Post 1231280)
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!!!

NolF 04-19-2007 07:10 PM

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)

Quote:

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

Quote:

Originally Posted by Lionel (Post 1231577)
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

Quote:

Originally Posted by Charlie98902 (Post 1231611)
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

Quote:

Originally Posted by Get Shorty (Post 1231630)
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

Quote:

Originally Posted by bjhuang (Post 1231840)
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!

C_P 04-20-2007 01:10 PM

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:
Quote:

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
Quote:

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

Quote:

Originally Posted by Dismounted (Post 1231846)
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 04-20-2007 01:34 PM

Quote:

Originally Posted by Charlie98902 (Post 1231956)
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

Quote:

Originally Posted by Dotara (Post 1232061)
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 04-20-2007 04:54 PM

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

Quote:

Originally Posted by C_P (Post 1231958)
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.
Quote:

Originally Posted by gg_luna128 (Post 1232188)
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.


All times are GMT. The time now is 12:46 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.01420 seconds
  • Memory Usage 1,818KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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