PDA

View Full Version : Add-On Releases - vBRecycle for 3.8.x


Computer_Angel
06-07-2009, 10:00 PM
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= vBRecycle
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= Version : 1.00
=-=-=-=-=-=-=
-= Main Author: LNTT
-= Upgrade by : Computer_Angel
=-=-=-=-=-=-=
-= For vBulletin: 3.8.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 1.0.0

+ Upgrade from https://vborg.vbsupport.ru/showthread.php?t=138106
+ Fix cache templates (credit to mfyvie)

bartek24m
06-08-2009, 05:43 AM
what does this moditifation do ?
Meybe some screen shouts ?
However thanks for addon !

AdrianH
06-08-2009, 06:59 AM
It appears to be a copy/reworking of this mod https://vborg.vbsupport.ru/showthread.php?t=91961 without permission from the original coder.

Hornstar
06-08-2009, 07:04 AM
It appears to be a copy/reworking of this mod https://vborg.vbsupport.ru/showthread.php?t=91961 without permission from the original coder.

He released this in 2007. He explained why here: https://vborg.vbsupport.ru/showthread.php?t=138106

I think this is perfectly fine.

Thanks for the update!

anaksimandros
06-08-2009, 07:52 AM
thank you for hacks.

i would follow a long time. I noticed this new plug-in :)

thank you thank you :p

COBRAws
06-08-2009, 03:17 PM
You are the man!! Thanks for the update on this great hack

HMBeaty
06-08-2009, 10:18 PM
Awesome! I've been waiting for this. Tagged for now

Sworm
06-09-2009, 12:34 PM
Nothing demos?

Skyrider
06-09-2009, 02:00 PM
^ wondering the same. Pictures/Demo's would be great.

Makc666
06-09-2009, 11:15 PM
Computer_Angel, is there any hope there will be an option of this mod in "Inline Moderation" menu (this is on forumdisplay.php page in "Modderation")?

rob01
06-10-2009, 03:11 AM
wish is better vbTrash or vbRecycle?

saadessa
06-10-2009, 05:19 AM
thank you

Makc666
06-10-2009, 12:56 PM
wish is better vbTrash or vbRecycle?

vbTrash - is very easy and lite in its options; also have inline moderation option. But I hope this gap (space) will be fixed in some future release of vbRecycle.

vbRecycle - I think, have some more options that can be helpful for big forums, like, for example, there can be several Trash forums.

f4vn
06-11-2009, 06:49 PM
I installed, set vBRecycle Permissions but Move to Recycle doesn`t show in Moderation menu. It show on Recycle Bin. Anyone can help me :( ?

Makc666
06-11-2009, 07:33 PM
I installed, set vBRecycle Permissions but Move to Recycle doesn`t show in Moderation menu. It show on Recycle Bin. Anyone can help me :( ?
About what page do you speak?

There is no item in "Modderation" menu for this mod on forumdisplay.php page.

KevinGupta
06-13-2009, 12:48 PM
Thanks dude :)

king854
06-14-2009, 01:28 PM
Excellent

f4vn
06-15-2009, 03:31 PM
About what page do you speak?

There is no item in "Modderation" menu for this mod on forumdisplay.php page.

So can you tell how to move threads to VBRecycle ? I can`t see that item "Move to Recycle " anywhere on forumdisplay.php page.

Makc666
06-15-2009, 07:58 PM
So can you tell how to move threads to VBRecycle ? I can`t see that item "Move to Recycle " anywhere on forumdisplay.php page.

From forumdisplay.php page there is no way.
There are only two ways:

You have to go to the thread and move them from there.
You have to use vBulletin's default future "Move Threads" and select the Recycles forum manyally.


Hope that Computer_Angel will be able to add this one future in the nearest future.

DobieGillis?
06-15-2009, 09:16 PM
installed! Nice job!

freeoffline
06-29-2009, 09:18 AM
10q

lordi
07-06-2009, 10:38 AM
man u r the best

OH GOD i've been waiting this to be updated to 3.8 long long time ago

I hated my forum without it

10xxxxxxx

Sayid
07-06-2009, 03:05 PM
<a href="https://vborg.vbsupport.ru/attachment.php?attachmentid=34461&d=1126703822" target="_blank">https://vborg.vbsupport.ru/attac...1&d=1126703822</a>

I think we can move threads from forumdisplay,

The future is available in the older versions

btw, thanks man , installed

princeedward
09-03-2009, 01:11 PM
thanks for this new upgrade for my new and latest vb 3.8.4.

but as the other said...can't view it or the Move to Recycle into Inline Moderation....to my skin styles

below forumdisplay page...

well manage to look around and test everything to make it appear on that place and make it work...pls. view my code below and try it also guys if you have the same problem...and hope it works also to your side...

ACP > Styles & Templates > Style Manager > CHOOSE YOUR SKIN STYLES > FIND FORUMDISPLAY TEMPLATE:

Find Code Below:


</optgroup>
</if>
<optgroup label="____________________">


Above: Add The Code Below:




<!-- vBRecycle Code Start-->
<option
value="moverecycle">$vbphrase[vbr_move]</option>
<!-- / vBRecycle Code End -->



Save And Make A Test!


hope this help anyone who got problem too...and if works...please don't forget
Thank you for supporting this modification -> Click to Mark as Installed

best regards

:p:up:

f4vn
10-05-2009, 01:58 PM
https://vborg.vbsupport.ru/attachment.php?attachmentid=34461&d=1126703822

I think we can move threads from forumdisplay,

The future is available in the older versions

btw, thanks man , installed

My friend helped me fix it so I will show you how to fix :).

Find plugin *vBRecycle v3* - Forum Display - Edit Template end replace with:
/////////////////////////////////
// Start - FD - Edit Template //
///////////////////////////////

if ($foruminfo[forumid]) $vbr_ifr = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "forum WHERE forumid = $foruminfo[forumid]");



if ($vbr_ifr['recycle']==1) {
$vbr_id=$vbr_ifr['forumid'];
eval('$vbrecycle_tools = "' . fetch_template('vbrecycle_tools') . '";');
} else {
eval('$vbrecycle_fdt = "' . fetch_template('vbrecycle_fdt') . '";');
eval('$vbrecycle_tools = "' . fetch_template('vbrecycle_blank') . '";');
}

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


/////////////////////////////////
// End - FD - Edit Template //
///////////////////////////////

Click save.

Done !

It is working well on my forum !

OcR Envy
05-06-2010, 12:23 PM
Works with 4.x ?

washingtonboise
07-12-2010, 01:20 PM
Subscribed to thread, standing by for updates to 4.x

Makc666
08-13-2010, 06:46 AM
Does this one really works for others in AdminCP?

In file:
./includes/adminfunctions_vbrecycle.php

There is function:

function cache_styles($getids = false, $styleid = -1, $depth = 0){
...
}

But there is already such function in vBulletin's code:

File:
includes/adminfunctions_template.php

function cache_styles($getids = false, $styleid = -1, $depth = 0)
{
...
}

So when in AdminCP you try to access "vBRecycle Options -> Main Settings" or any other you just get an error:
Fatal error: Cannot redeclare cache_styles() (previously declared in /.../includes/adminfunctions_template.php:2410) in /.../includes/adminfunctions_vbrecycle.php on line 219


Also there is second function in file:
./includes/adminfunctions_vbrecycle.php


function print_style_chooser_row($name = 'parentid', $selectedid = -1, $topname = NULL, $title = NULL, $displaytop = true)
{
...
}

which also gives the same error.

Solution for me:

I have just removed both functions from file ./includes/adminfunctions_vbrecycle.php

function cache_styles($getids = false, $styleid = -1, $depth = 0){
...
}


function print_style_chooser_row($name = 'parentid', $selectedid = -1, $topname = NULL, $title = NULL, $displaytop = true)
{
...
}

Makc666
08-13-2010, 07:44 AM
My friend helped me fix it so I will show you how to fix :).

Find plugin *vBRecycle v3* - Forum Display - Edit Template end replace with:

I just wanted to note that it is better to replace with this one below.

This will also


will move the option in Moderation menu to the first place so there was no any need to select it from there
not allow to show the option to move to Recycle bin inside the Recycle forum


/////////////////////////////////
// Start - FD - Edit Template //
///////////////////////////////

if ($foruminfo[forumid]) $vbr_ifr = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "forum WHERE forumid = $foruminfo[forumid]");

if ($vbr_ifr['recycle']==1) {
$vbr_id=$vbr_ifr['forumid'];
eval('$vbrecycle_tools = "' . fetch_template('vbrecycle_tools') . '";');
} else {
eval('$vbrecycle_tools = "' . fetch_template('vbrecycle_blank') . '";');
eval('$vbrecycle_fdt = "' . fetch_template('vbrecycle_fdt') . '";');

$vbulletin->templatecache['FORUMDISPLAY'] = str_replace(
array(
'<option value=\"deletethread\">$vbphrase[delete_threads]</option>',
'$navbar'
),
array(
'$vbrecycle_fdt <option value=\"deletethread\">$vbphrase[delete_threads]</option>',
'$navbar $vbrecycle_tools'
),
$vbulletin->templatecache['FORUMDISPLAY']
);
}

/////////////////////////////////
// End - FD - Edit Template //
///////////////////////////////