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

Reply
 
Thread Tools
vBRecycle v3.0.9 Details »»
vBRecycle v3.0.9
Version: 1.00, by Computer_Angel Computer_Angel is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.4 Rating:
Released: 01-31-2007 Last Update: 02-01-2007 Installs: 122
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

This upgrade is base on the vBRecycle v3.0.7 by LNTT at https://vborg.vbsupport.ru/showthread.php?t=91961. I've try to contact him many times for the upgrade but no successed. So I've decided to upgrade it my own. Made some modification for Vbb 3.6.4. And try to fixed some small error which i've got when using this mod.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= vBRecycle
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= Version : 3.0.9
=-=-=-=-=-=-=
-= Main Author: LNTT
-= Upgrade by : Computer_Angel
=-=-=-=-=-=-=
-= For vBulletin: 3.6.x
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

::::::::::::::::::::::::::::::::::::::::
::::FEATURES
::::::::::::::::::::::::::::::::::::::::
  • Easily install & uninstall with Product Installer. *NEW
  • Main Settings
    • Quick active or disable recycle.*NEW
    • Select default recycle.
    • Auto convert normal forum => recycle forum.*NEW
    • Set type move(Copy thread to destination forum, Move and leave redirect in previous forum and Move to destination forum)
  • Recycle Manager
    • Easily edit settings.
    • Delete forum recycle.
    • Unlimited recycle.
    • Set default recycle.
    • Select recycle for special forum.
  • Empty Recycle Bin.
  • Link After Moved.
    • Options in showtheard, inline mod.
  • Quick Create Recycle*NEW
  • Scheduled Tasks Recycle*NEW
    • Auto empty recycle*NEW
  • Set permissions for each usergroup.
  • Add "vBRecycle Options" in "Add New Forum" & "Edit Forum" *NEW

::::::::::::::::::::::::::::::::::::::::
::::INSTALL
::::::::::::::::::::::::::::::::::::::::

==================================
[Step 1][Upload Files]
==================================


Copy all files to their respective location:
  • admincp/vbrecycle_admin.php
  • images/misc/vbrecycle_lock.gif
  • images/misc/vbrecycle_default.gif
  • images/misc/vbrecycle_scheduledtask.gif
  • images/misc/vbrecycle_edit.gif
  • images/misc/vbrecycle_empty.gif
  • includes/adminfunctions_vbrecycle.php
  • includes/cron/vbrecycle_clean.php
  • includes/xml/bitfield_vbrecycle.xml
  • includes/xml/cpnav_vbrecycle.xml

==================================
[Step 2][Run the Product Installer]
==================================

URL: http://www.yoursite.com/admincp/plug...?do=productadd
Select product-vbrecycle***.xml.

==================================
[Installation Completed]
==================================


::::::::::::::::::::::::::::::::::::::::
::::HISTORY
::::::::::::::::::::::::::::::::::::::::

  • Version 3.0.8
    • Modification code for VBB 3.6.0
    • Fixed bug don't cron.
    • Fixed vbflush() error.
  • Version 3.0.8a
    • Fixed missing forumid in forum display part (Thanks Redlinemotorsports)
  • Version 3.0.9
    • Improve installation/upgrade product code. Now you can upgrade plugin without losing old configuration.
    • Fixed: Call to undefined function unsubscribe_users() bugs.

Supporters / CoAuthors

Show Your Support

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

Comments
  #42  
Old 04-20-2007, 12:10 PM
itsblack itsblack is offline
 
Join Date: Dec 2005
Location: Augsburg
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will be nice let the cron job just delete the threads in recycle bin for x days old, but not empty them all.
Reply With Quote
  #43  
Old 04-20-2007, 02:01 PM
mhmd1983 mhmd1983 is offline
 
Join Date: Apr 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

man , this really great mod you have just upgrade thanks , installed
Reply With Quote
  #44  
Old 05-18-2007, 12:11 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soulface View Post
2 uncached templates on recycle forum.


1 uncached templates on forums, where threads moved to recycle forum.
I found some more. This means that the total of uncached templates in this mod are as follows:

View thread:
vbrecycle_stt

View forum:
vbrecycle_blank
vbrecycle_fdt

View recycle bin
vbrecycle_fdt
vbrecycle_tools

According to this post the best person to address these issues is the mod author, since this template caching should be incorporated into the mod itself.

I'm investigating how to do it myself, but it should probably also be addressed for future of the mod.
Reply With Quote
  #45  
Old 05-18-2007, 12:55 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pardon a novice question, but why is an uncached template a problem?
Reply With Quote
  #46  
Old 05-18-2007, 01:15 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uncached templates impact server performance, especially on busier systems
Reply With Quote
  #47  
Old 05-18-2007, 01:42 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, well I tried to fix this uncached templates issue. I got about half way through, but couldn't find the correct place in the code to insert the changes.

I'll have to shelve this idea and hope that the original author picks up this issue. I have a system which is getting very close to capacity, so I really need to make things are optimised properly...
Reply With Quote
  #48  
Old 05-24-2007, 04:51 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those people running Moderation Auto-PM I've just released a bridge mod between vBRecycle and Moderation Auto-PM. It extends the functionality of Moderation Auto-PM to also generate PMs to users when the recycle function is used.

You can find this mod here.
Reply With Quote
  #49  
Old 05-25-2007, 01:24 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've managed to produce a plugin that fixes the uncached templates with this mod, as well as make another plugin that extends the functionality into searches. I've also fixed a small bug. I'll cover each point one by one.

Rather than have these fixes available as a separate file, it would be really great if Computer_Angel could merge these changes into a new version, that way everybody could benefit from the changes.

Uncached templates fixed

If you install the plugin attached to this post you'll find that all templates are now being cached correctly.

Recycle option now appears in searches

There is now an extra plugin that will show the recycle option on the moderator menu when viewing search pages. You are already allowed to select moderation options for threads displayed as search results, so why not have the recycle option here too?

This extra plugin is also included in the same file attached to the bottom of this message.

Bug fix - recycle options no longer appear in recycle bin

I discovered that when viewing threads which are already in the recycle bin the move to recycle option appeared. The same happened when viewing the forum view in the recycle bin. Since it doesn't make any sense to move a thread or threads to the same place the following edits will make sure that you don't get offered this option when in the recycle bin.

In your admincp select Plugins & Products -> Plugin Manager -> *vBRecycle v3* - Forum Display - Edit Template

Find:

Code:
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace(
	array(
		'$vbphrase[delete_threads]</option>',
                '$navbar'
	),
	array(
		'$vbphrase[delete_threads]</option> $vbrecycle_fdt',
                '$navbar $vbrecycle_tools'
	),
	$vbulletin->templatecache['FORUMDISPLAY']
);
Replace with:

Code:
if ($vbr_ifr['recycle']==1) {
    $vbulletin->templatecache['FORUMDISPLAY'] = str_replace(
	    array(
		    '$vbphrase[delete_threads]</option>',
                    '$navbar'
    	    ),
	    array(
		    '$vbphrase[delete_threads]</option> $vbrecycle_fdt',
                    '$navbar $vbrecycle_tools'
	    ),
	    $vbulletin->templatecache['FORUMDISPLAY']
    );
}
Click save

Then click on *vBRecycle v3* - Show Thread - Edit Template

Find:

Code:
$vbulletin->templatecache['SHOWTHREAD'] = str_replace(
    array(
        '$vbphrase[delete_thread]</label></div>'
    ),
    array(
        '$vbphrase[delete_thread]</label></div> $vbrecycle_stt'
    ),
    $vbulletin->templatecache['SHOWTHREAD']
);
Replace with:

Code:
if ($vbr_ifr['recycle']!=1) {
    $vbulletin->templatecache['FORUMDISPLAY'] = str_replace(
	    array(
		    '$vbphrase[delete_threads]</option>',
                    '$navbar'
    	    ),
	    array(
		    '$vbphrase[delete_threads]</option> $vbrecycle_fdt',
                    '$navbar $vbrecycle_tools'
	    ),
	    $vbulletin->templatecache['FORUMDISPLAY']
    );
} else {
    $vbulletin->templatecache['FORUMDISPLAY'] = str_replace('$navbar', '$navbar $vbrecycle_tools',$vbulletin->templatecache['FORUMDISPLAY']);
}
Please note: This post applies to version 3.0.9 of vBRecycle. I'm not the author of vBRecycle, but since I didn't have much other choice I've fixed this issue for my own board, and just thought I'd share the fixes.
Reply With Quote
  #50  
Old 05-25-2007, 01:41 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good stuff, mfyvie!
Reply With Quote
  #51  
Old 08-26-2007, 05:26 PM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

recycle bin set as a default not Searchable , so bin's posts should not appear in NEW POSTS , right ??

thanks
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 03:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.19364 seconds
  • Memory Usage 2,313KB
  • 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
  • (4)bbcode_code
  • (1)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
  • (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