PDA

View Full Version : Add-On Releases - vBRecycle v3.0.9


Computer_Angel
01-31-2007, 10:00 PM
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/plugin.php?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.

Mr_Snob
02-01-2007, 05:34 AM
first install thank you very much

HMBeaty
02-01-2007, 05:38 AM
Ok, first small bug.....if you click "Edit Settings" or "Set Default" in the forumdisplay part of VBRecycle, they come up as "Invalid Forum Specified"

EDIT: Other than that, things seem to be working A LOT better than the version LNTT released, thank you

TheBlackPoet
02-01-2007, 06:30 AM
yeah... what Redline said.... other than that.... this is better than the other recycle..... or easier to use.....

Installed..

Snake
02-01-2007, 08:01 AM
Thanks for this but I'm afraid you'll need to have the author's full permission first to release this.

bashy
02-01-2007, 09:26 AM
I totally agree, I feel you will have this removed soon (i downloaded quick thanks ;))

Computer_Angel
02-01-2007, 09:42 AM
Ok, first small bug.....if you click "Edit Settings" or "Set Default" in the forumdisplay part of VBRecycle, they come up as "Invalid Forum Specified"

Thank you, I forgot that.
Thanks for this but I'm afraid you'll need to have the author's full permission first to release this.
I totally agree, I feel you will have this removed soon (i downloaded quick thanks ;))
I see, and still try to contacting him. But till now, got no response. And if the moderator here don't allow that so in that case - I will recode it again.

COBRAws
02-01-2007, 10:04 AM
This is geat! i've been asking for an upgrade for this hack, in the services forum. https://vborg.vbsupport.ru/showthread.php?t=131680


But I got Scammed by Kyle Korleski (https://vborg.vbsupport.ru/showthread.php?t=135542) who is now filling out papers with Canada government because I never paid him the rest of 50% agreed with him. The thing is that he never delivered me the product. Before some moderator deletes this message, first read PMID = 333277

Mevo
02-01-2007, 11:38 AM
Installed ..:) Thanks

Distance
02-01-2007, 11:59 AM
Thanks downloaded before removed :)

I hope this doesnt get removed

Renada
02-01-2007, 01:57 PM
Thank you for upgrading this. ::installed:: :)

Mastar
02-01-2007, 03:19 PM
Nice! I will surely try this version out.

farooqaaa
02-01-2007, 04:45 PM
Good HAck....

Any demo please :( ?

Distance
02-01-2007, 04:56 PM
You need to change the installation file.. it says its for 3.5 on there

Distance
02-01-2007, 05:07 PM
Also.. This is a nice mod but how about the option to restore recycled threads

Also how about if we want to recycle just a single post?

Also how about adding move to recycle bin in the dropdown moderator options?

Maybe a link in postbit to bin the topic/post also?

COBRAws
02-01-2007, 06:39 PM
Im getting the same error as with the original hack. When archieving one or more threads with the inline moderation dropdown, i get the following error:

Fatal error: Call to undefined function unsubscribe_users() in /xxxxxxxxx/inlinemod.php(228) : eval()'d code on line 292

Staxed
02-01-2007, 06:47 PM
what changes were made in the update?...do we just need to reimport the product? reupload files?....you didn't but this update in the updating instructions in the readme file

Computer_Angel
02-01-2007, 11:34 PM
Im getting the same error as with the original hack. When archieving one or more threads with the inline moderation dropdown, i get the following error:

Also.. This is a nice mod but how about the option to restore recycled threads

Also how about if we want to recycle just a single post?

Also how about adding move to recycle bin in the dropdown moderator options?

Maybe a link in postbit to bin the topic/post also?

Thanks, I'll take a look at it.

HMBeaty
02-02-2007, 01:57 AM
Ok, upgrade to 3.0.9 didn't go so well, when importing the product and allow overwrite is set to yes, I got the following error:

Database error in vBulletin 3.6.4:

Invalid SQL:
CREATE TABLE vb_vbr_config (oid int(11) NOT NULL default 1, active int(11) NOT NULL default 1, forumid int(11) NOT NULL default 0, linkamfd int(11) NOT NULL default 2, linkamst int(11) NOT NULL default 1, typem int(11) NOT NULL default 1) ENGINE=MyISAM COMMENT='vBRecycle Config';;

MySQL Error : Table 'vb_vbr_config' already exists
Error Number : 1050
Date : Thursday, February 1st 2007 @ 08:54:51 PM
Script : /admincp/plugin.php?do=productimport
Referrer : /admincp/plugin.php?do=productadd
IP Address : 68.10.99.56
Username : Redline
Classname : vb_database

Computer_Angel
02-02-2007, 02:16 AM
Ok, upgrade to 3.0.9 didn't go so well, when importing the product and allow overwrite is set to yes, I got the following error:

Database error in vBulletin 3.6.4:

Invalid SQL:
CREATE TABLE vb_vbr_config (oid int(11) NOT NULL default 1, active int(11) NOT NULL default 1, forumid int(11) NOT NULL default 0, linkamfd int(11) NOT NULL default 2, linkamst int(11) NOT NULL default 1, typem int(11) NOT NULL default 1) ENGINE=MyISAM COMMENT='vBRecycle Config';;

MySQL Error : Table 'vb_vbr_config' already exists
Error Number : 1050
Date : Thursday, February 1st 2007 @ 08:54:51 PM
Script : /admincp/plugin.php?do=productimport
Referrer : /admincp/plugin.php?do=productadd
IP Address : 68.10.99.56
Username : Redline
Classname : vb_database

Oops, missing prefix for table. It's done now. Could you check it again ?

v5etboyphc
02-02-2007, 06:08 AM
umm help? i have error it with my vbplaza
http://img113.imageshack.us/img113/8042/erroryj7.jpg
if you can see the link well click on it

soulface
02-02-2007, 10:42 AM
2 uncached templates on recycle forum.
Page generated in 0.36101 seconds with 34 queries (2 queries for uncached templates) [Server Loads: 0.32 0.37 : 0.32]
Uncached templates: vbrecycle_fdt (1)
Uncached templates: vbrecycle_tools (1)

1 uncached templates on forums, where threads moved to recycle forum.
Page generated in 0.41072 seconds with 32 queries (1 queries for uncached templates) [Server Loads: 0.19 0.21 : 0.23]
Uncached templates: vbrecycle_blank (1)

HMBeaty
02-02-2007, 07:52 PM
Oops, missing prefix for table. It's done now. Could you check it again ?

Works good now, thanks :)

sait.dogan
02-06-2007, 10:12 PM
Thank you for upgrading this mod.

lovelypk
02-09-2007, 11:32 PM
thanks for this cool mod.

itsblack
02-10-2007, 07:50 PM
thank you Computer_Angel, installed.

I have a question: Is it possible, let the vBRecycle totally replace the vb Delete funktion?
I mean when someone delete a thread or post, the deleted thread or post will be forced moved into the Recycle bin.

yingzhou
02-13-2007, 12:58 PM
I think you could add the Confirmation Dialog before Move to Recycle. :D

djbaxter
02-13-2007, 01:57 PM
Why are there two separate downloads for this? What is the difference?

AzzidReign
02-13-2007, 05:42 PM
Quick question...can you set it so that when someone deletes a message, its sent to this recycle bin? And then from there we can clear it out periodically...

yingzhou
02-14-2007, 11:37 PM
Quick question...can you set it so that when someone deletes a message, its sent to this recycle bin? And then from there we can clear it out periodically...

You can use the shedule in the ACP for this action.

I think we must be confirmation before throw it into the recycle bin. :D

yingzhou
02-15-2007, 02:28 AM
I have this message: You do not have permission to manage deleted threads and posts in the destination forum. Why is it?

djbaxter
02-15-2007, 12:01 PM
I have this message: You do not have permission to manage deleted threads and posts in the destination forum. Why is it?

Either
you are not signed in as an administrator; or
you have not correctly set up the administrators' permissions; or
you need to modify your config.php file in /includes/

ZomgStuff
02-15-2007, 12:22 PM
I get this error.

Database error in vBulletin 3.6.4:

Invalid SQL:
CREATE TABLE IF NOT EXISTS vbr_config (oid int(11) NOT NULL default 1, active int(11) NOT NULL default 1, forumid int(11) NOT NULL default 0, linkamfd int(11) NOT NULL default 2, linkamst int(11) NOT NULL default 1, typem int(11) NOT NULL default 1) ENGINE=MyISAM COMMENT='vBRecycle Config';;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ENGINE=MyISAM COMMENT='vBRecycle Config'' at line 1
Error Number : 1064
Date : Thursday, February 15th 2007 @ 06:19:58 AM
Script : http://www.zomgstuff.net/forum/admincp/plugin.php?do=productimport
Referrer : http://www.zomgstuff.net/forum/admincp/plugin.php?do=productadd
IP Address : 63.227.65.11
Username : David Hasselhoff
Classname : vb_database

Can anyone help me?

yingzhou
02-15-2007, 03:48 PM
I think when you chose some Forum tobe Recycle Bin. The other members cant see anything on it. But they can move the Thread or post into the Recycle Bin. Only the administrator can view the Recycle Bin.

AMG021
02-22-2007, 01:06 AM
Database error in vBulletin 3.6.4:

Invalid SQL:
CREATE TABLE IF NOT EXISTS vbr_config (oid int(11) NOT NULL default 1, active int(11) NOT NULL default 1, forumid int(11) NOT NULL default 0, linkamfd int(11) NOT NULL default 2, linkamst int(11) NOT NULL default 1, typem int(11) NOT NULL default 1) ENGINE=MyISAM COMMENT='vBRecycle Config';;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ENGINE=MyISAM COMMENT='vBRecycle Config'' at line 1
Error Number : 1064
Date : Wednesday, February 21st 2007 @ 06:58:49 PM

please help

Gsmdenis
03-05-2007, 08:26 AM
i just install ,did not got SQL error, but in showthread or forumdisplay did not see" move threads to recycle " in thread tools or option, i will check that later

BR.,

Denis

mat.knott
03-16-2007, 08:21 PM
its installed find with out any problems but i cant get it to come up in the menu to recycle a post... what did i miss?

bonjurkes
03-17-2007, 10:35 AM
when i empty recycle forum it still shows the last post info at forumhome page.When i click the last topic it says thread cant be found (its normal because its deleted). I guess i need to rebuild forum info, but rebuild tools use much resource so it can be a problem for big boards ;)

it would be great if you can find a solution for it...

princeedward
03-30-2007, 01:27 PM
installed...thanks for this...work fine with vB 3.6.5 ;)

djbaxter
04-20-2007, 12:06 PM
Also how about if we want to recycle just a single post?

This would be nice.

itsblack
04-20-2007, 12:10 PM
It will be nice let the cron job just delete the threads in recycle bin for x days old, but not empty them all.

mhmd1983
04-20-2007, 02:01 PM
man , this really great mod you have just upgrade thanks , installed

mfyvie
05-18-2007, 12:11 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=104532) 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.

djbaxter
05-18-2007, 12:55 PM
Pardon a novice question, but why is an uncached template a problem? :o

mfyvie
05-18-2007, 01:15 PM
Uncached templates impact server performance, especially on busier systems

mfyvie
05-18-2007, 01:42 PM
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...

mfyvie
05-24-2007, 04:51 PM
For those people running Moderation Auto-PM (https://vborg.vbsupport.ru/showthread.php?t=115677) 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 (https://vborg.vbsupport.ru/showthread.php?t=148034).

mfyvie
05-25-2007, 01:24 PM
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:

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

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:

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

Replace with:

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.

djbaxter
05-25-2007, 01:41 PM
Good stuff, mfyvie! :D

Mecho
08-26-2007, 05:26 PM
recycle bin set as a default not Searchable , so bin's posts should not appear in NEW POSTS , right ??

thanks

cevatgungor
12-06-2007, 03:13 PM
sorry but i douldn't find a plugin file in http://www.yoursite.com/admincp/plugin.php?do=productadd
i think i missed something:(
help please

Makc666
07-21-2008, 02:34 PM
For all who use this product I advise to fix template vbrecycle_blank
Just open it and make it blank.
In other words remove &nbsp; from there.

If &nbsp; is there this one will add extra line on page forumdisplay.php after navbar if there is no vBRecycle controll panel there.

Was code:
<template name="vbrecycle_blank" templatetype="template" date="1127312286" username="Computer_Angel" version="3.6.4"><![CDATA[&nbsp;]]></template>

Correct one:
<template name="vbrecycle_blank" templatetype="template" date="1127312286" username="Computer_Angel" version="3.6.4"><![CDATA[]]></template>

Spicey LA
08-25-2008, 08:54 AM
will there be an upgrade to this to be compatiable with vb version 3.7 as i have it installed on that version thinkin it would work but it does not work...

unless am usin it wrong...how is it suppose to work as when i delete both physical and soft delete they still get deleted as they would without the recycle bin yet i dont see them bein moved to the recycle bin as i assume they would be...

am assumin is not compataible with vb version 3.7 and that bein said is there goin to be another upgrade to make it more compataible with vb version 3.7????

great mod as i need one of these for my forums...huge thanx in advance for all your help and support...great job btw

Makc666
08-25-2008, 01:49 PM
This one work with 3.7 on my several forums with out any problems for the functions I use.

Computer_Angel
09-15-2008, 04:52 AM
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...
For the cache template, we should hook the cache_template and put the following code:

$globaltemplates = array_merge($globaltemplates, array(
'vbrecycle_fdt',
'vbrecycle_tools',
'vbrecycle_blank',
'vbrecycle_stt'
));

Thanks mfyvie for pointing out the cache template and fixing the bug for VBRecycle.

g0dfather1984
10-14-2008, 02:24 AM
I keep receiving this message:

No Forum specified. If you followed a valid link, please notify the administrator

I just had it working, till I upgraded. Any ideas?

ZomgStuff
01-10-2009, 09:53 PM
Does not work with 3.8.0

sherwood
01-11-2009, 08:28 PM
any plan on releasing it for 3.8?

conker1
01-19-2009, 08:57 PM
any plan for 3.8 ?

Mecho
01-30-2009, 05:49 PM
doesnt work with 3.8 .

hope The Coder will update this great addon .

lordi
02-18-2009, 12:59 AM
Hello

I need it to work on 3.8.1

Any one can help plzzzzzzzz ????????????

lordi
02-18-2009, 01:37 PM
Hello Angel,

I have upgraded to 3.8.1

The VBrecycle stopped working

I reinstalled your mod, when I move thread it tells me to contact the administrator

I found a little problem maybe it's the cause:::

Whenever I enter the RECYCLE forum properties and try to set the second choice (in the picture) and save it, I find it set to NO again automatically

https://vborg.vbsupport.ru/

WHAT SHALL I DO ???? It's a very important issue for my forum

Please HElp me...I am waiting ur reply

intell_iut
03-22-2009, 07:31 PM
please release this mod for 3.8.x
thanks mod developer

ZomgStuff
05-12-2009, 05:05 AM
Hello Angel,

I have upgraded to 3.8.1

The VBrecycle stopped working

I reinstalled your mod, when I move thread it tells me to contact the administrator

I found a little problem maybe it's the cause:::

Whenever I enter the RECYCLE forum properties and try to set the second choice (in the picture) and save it, I find it set to NO again automatically

http://leb4all.com/upload/uploads/df86a1bb7e.jpg

WHAT SHALL I DO ???? It's a very important issue for my forum

Please HElp me...I am waiting ur reply

This mod doesn't work with 3.8.x

Computer_Angel
06-08-2009, 01:58 AM
Thanks for your feedback, I'll take a look and then release a fix for 3.8.x

Computer_Angel
06-08-2009, 05:28 AM
For 3.8.x, https://vborg.vbsupport.ru/showthread.php?t=215623

COBRAws
06-10-2009, 06:47 PM
Hello, I just wanne suggest a feature, since it happened quite a lot of times in my board.

When a thread has been moved to the Recycle forums, that recycle forum should not allow threads to "Move to Recycle" again.

I use the recycle hack in several forums, for instance in the reports section, and when 2 mods send the same report to the recycle at the same time, the first action moves the thread to the reports recycle, and the second mod action moves the thread from the reports recycle to the general recycle forum.

Hope it was clear.

Great hack, cya!

Fakher
03-10-2011, 05:40 AM
Need a help..
uploaded and installed now when ever i click in recycle forum i get this warning
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: vbrecycle_fdt in [path]/includes/functions.php on line 4097

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: vbrecycle_blank in [path]/includes/functions.php on line 4097
and this error
vBulletin Message
Unable to add cookies, header already sent.
File: /home/username/public_html/forums/includes/class_core.php
Line: 5403

Please help....

Makc666
03-15-2011, 11:55 AM
This is for version 3.6.* and not your one as I think.

COBRAws
03-22-2011, 01:33 PM
This is for version 3.6.* and not your one as I think.
It works on 4.x