Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
vbTrash Details »»
vbTrash
Version: 1.2, by Dismounted Dismounted is offline
Developer Last Online: Apr 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.x Rating:
Released: 04-18-2007 Last Update: Never Installs: 223
Uses Plugins Template Edits
 
No support by the author.

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

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 04-19-2007, 11:27 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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']
);
}
Reply With Quote
  #23  
Old 04-20-2007, 12:24 AM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So is the official code updated now? I'm interested in this myself.
Reply With Quote
  #24  
Old 04-20-2007, 01:12 AM
Get Shorty's Avatar
Get Shorty Get Shorty is offline
 
Join Date: Jun 2006
Location: Baton Rouge, LA
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
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!
Reply With Quote
  #25  
Old 04-20-2007, 01:12 AM
Get Shorty's Avatar
Get Shorty Get Shorty is offline
 
Join Date: Jun 2006
Location: Baton Rouge, LA
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
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.
Reply With Quote
  #26  
Old 04-20-2007, 01:38 AM
tehPARADOX tehPARADOX is offline
 
Join Date: Feb 2007
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Get Shorty View Post
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.
Reply With Quote
  #27  
Old 04-20-2007, 07:39 AM
fsakbas fsakbas is offline
 
Join Date: Oct 2006
Location: Istanbul,Turkey
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool. thanks a lot.
Reply With Quote
  #28  
Old 04-20-2007, 09:44 AM
bjhuang bjhuang is offline
 
Join Date: Jul 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'd like to trash single posts.
Reply With Quote
  #29  
Old 04-20-2007, 09:53 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bjhuang View Post
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
Reply With Quote
  #30  
Old 04-20-2007, 09:55 AM
Red Matrix Red Matrix is offline
 
Join Date: Jun 2006
Location: Texas
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're a big help GetShorty!
Reply With Quote
  #31  
Old 04-20-2007, 01:10 PM
C_P's Avatar
C_P C_P is offline
 
Join Date: Sep 2004
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 10:57 AM.


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.04519 seconds
  • Memory Usage 2,304KB
  • Queries Executed 26 (?)
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
  • (7)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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