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)

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 12:34 PM.

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.01241 seconds
  • Memory Usage 1,761KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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