vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - vBRecycle for 3.8.x (https://vborg.vbsupport.ru/showthread.php?t=215623)

Computer_Angel 06-07-2009 10:00 PM

vBRecycle for 3.8.x
 
1 Attachment(s)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= 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/plug...?do=productadd
Select product-vbrecycle***.xml.

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


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


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

Quote:

Originally Posted by CareyCrew (Post 1825487)
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

Quote:

Originally Posted by rob01 (Post 1826779)
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

Quote:

Originally Posted by f4vn (Post 1827800)
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

Quote:

Originally Posted by Makc666 (Post 1827826)
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

Quote:

Originally Posted by f4vn (Post 1830138)
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:
  1. You have to go to the thread and move them from there.
  2. 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:

Code:

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

Above: Add The Code Below:


Code:


<!-- 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

Quote:

Originally Posted by Sayid (Post 1843830)
https://vborg.vbsupport.ru/attachmen...1&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:
HTML Code:

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

PHP Code:

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


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

File:
includes/adminfunctions_template.php

PHP Code:

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

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

PHP Code:

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

PHP Code:

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


PHP Code:

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



Makc666 08-13-2010 07:44 AM

Quote:

Originally Posted by f4vn (Post 1895139)
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
  1. will move the option in Moderation menu to the first place so there was no any need to select it from there
  2. not allow to show the option to move to Recycle bin inside the Recycle forum

HTML Code:

/////////////////////////////////
// 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  //
///////////////////////////////



All times are GMT. The time now is 03:03 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.01770 seconds
  • Memory Usage 1,826KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete