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)

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


All times are GMT. The time now is 05:39 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.02019 seconds
  • Memory Usage 1,737KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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