vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - 'Check Version' for all hacks (https://vborg.vbsupport.ru/showthread.php?t=133366)

Brew 02-01-2010 05:59 PM

Do you have plans to update this to 4.01/4.02?

Thanks!

Brew 02-01-2010 06:28 PM

Quote:

Originally Posted by mtha (Post 1927052)
Installed and it works for vb4, with minor modification

replace plugin Aktuellste Versionen anzeigen
with


PHP Code:

if ($_REQUEST['do'] == 'product')
{
    
$html = @ob_get_contents();
    while (@
ob_end_clean());
    if (!empty(
$html))
    {
        global 
$products$bgcounter$stylevar;

        @
ob_start();

        
$search = array(
            
"<form action=\"plugin.php?do=productexport\" method=\"post\" target=\"download\" name=\"cpform\" id=\"cpform\">",
            
"<td class=\"tcat\" align=\"center\" colspan=\"4\"><b>$vbphrase[installed_products]</b></td>",
            
"<td class=\"thead\">$vbphrase[version]</td>",
            
"<strong>vBulletin</strong></td>\n\t<td class=\"alt1\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\">" $vbulletin->options['templateversion']
        );

        
$replace = array(
            
"<p align=\"center\"><a href=\"plugin.php?do=productadd\">[$vbphrase[add_import_product]]</a> - <a href=\"misc.php?do=updateversions\">[$vbphrase[check_all_products]]</a></p>\n<form action=\"plugin.php?do=productexport\" method=\"post\" target=\"download\" name=\"cpform\" id=\"cpform\">",
            
"<td class=\"tcat\" align=\"center\" colspan=\"5\"><b>$vbphrase[installed_products]</b></td>",
            
"<td class=\"thead\">$vbphrase[version]</td>\n\t<td class=\"thead\">$vbphrase[latest_version]</td>",
            
"<strong>vBulletin</strong></td>\n\t<td class=\"alt1\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\">" $vbulletin->options['templateversion'] . "</td>\n\t<td class=\"alt1\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\">$vbphrase[latest_version_available_x]</td>"
        
);
    
        
$vbulletin->db->data_seek($products0);
        
$bgcounter 1;
        while (
$product $vbulletin->db->fetch_array($products))
        {
            
$bgclassfetch_row_bgclass();
            
$title htmlspecialchars_uni($product['title']);
            if (!
$product['active'])
            {
                
$title "<strike>$title</strike>";
            }
            if (
$product['url'])
            {
                
$title '<a href="' htmlspecialchars_uni($product['url']) . "\" target=\"_blank\">$title</a>";
            }
            
$product['version'] = htmlspecialchars_uni($product['version']);
            if (
is_newer_version($product['latestversion'], $product['version']))
            {
                
$search[] = "$title</td>\n\t<td class=\"$bgclass\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\">$product[version]";
                
$replace[] = "<strong>$title</title></td>\n\t<td class=\"$bgclass\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\"><span style=\"color: #AA0000\"><strong>$product[version]</strong></span></td>\n\t<td class=\"$bgclass\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\"><span style=\"color: #AA0000\"><strong>$product[latestversion]</strong></span></td>";
            }
            else
            {
                
$search[] = "$title</td>\n\t<td class=\"$bgclass\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\">$product[version]";
                
$replace[] = "$title</td>\n\t<td class=\"$bgclass\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\">$product[version]</td>\n\t<td class=\"$bgclass\" align=\"".vB_Template_Runtime::fetchStyleVar('left') ."\">$product[latestversion]</td>";
            }
        }
        echo(
str_replace($search$replace$html));
    }



Are you saying to replace the contents of pvcron.php with your code?

Thanks!

tmiland 05-14-2010 02:57 PM

Quote:

Originally Posted by Brew (Post 1972396)
Are you saying to replace the contents of pvcron.php with your code?

Thanks!

Edit the xml file, reinstall.

Works with vbulletin 4.0.3 :)

hurik 12-11-2010 10:52 AM



All times are GMT. The time now is 05:02 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.01396 seconds
  • Memory Usage 1,762KB
  • 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
  • (1)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
  • (4)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