форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.5.x > Hacks, mods and scripts [3.5.x]
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default Advanced Plugin Manager Продвинутый плагин-мененджер. Из серии Must Have!
1

vB Version: 3.5.0 RC2

Advanced Plugin Manager

Намного удобнее и упорядоченнее дефолтного.
Смотрите сами скриншот.
Attached Thumbnails
plmanager.jpg  
Attached Files
File Type: zip advplugins.zip (3.2 KB, 69 views)
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default Group Plugins by Product in the ACP Plugin Manager
1

Group Plugins by Product in the ACP Plugin Manager

Simply find this section of code in the admincp/plugin.php file ;


PHP Code:
Code:
if ($_REQUEST['do'] == 'modify') 
{ 
$products = fetch_product_list(true); 

print_form_header('plugin', 'updateactive'); 
print_table_header($vbphrase['plugin_system'], 4); 
print_cells_row(array($vbphrase['title'], $vbphrase['product'], $vbphrase['active'], $vbphrase['controls']), 1); 

$plugins = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "plugin ORDER BY hookname, title"); 
$prevhook = ''; 
while ($plugin = $db->fetch_array($plugins)) 
{ 
if ($plugin['hookname'] != $prevhook) 
{ 
$prevhook = $plugin['hookname']; 
print_description_row("$vbphrase[hook_location] : " . $plugin['hookname'], 0, 4, 'tfoot'); 
} 

$product = $products[($plugin['product'] ? $plugin['product'] : 'vbulletin')]; 
if (!$product) 
{ 
$product = array('title' => "<em>$plugin[product]</em>", 'active' => 1); 
} 
if (!$product['active']) 
{ 
$product['title'] = "<strike>$product[title]</strike>"; 
} 

$title = htmlspecialchars_uni($plugin['title']); 
$title = ($plugin['active'] AND $product['active']) ? $title : "<strike>$title</strike>"; 

print_cells_row(array( 
"<a href=\"plugin.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;pluginid=$plugin[pluginid]\">$title</a>", 
$product['title'], 
"<input type=\"checkbox\" name=\"active[$plugin[pluginid]]\" value=\"1\"" . ($plugin['active'] ? ' checked="checked"' : '') . " />", 
construct_link_code($vbphrase['edit'], "plugin.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;pluginid=$plugin[pluginid]") . 
construct_link_code($vbphrase['delete'], "plugin.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&amp;pluginid=$plugin[pluginid]") 
)); 
} 

print_submit_row($vbphrase['save_active_status'], false, 4); 

echo '<p align="center">' . construct_link_code($vbphrase['add_new_plugin'], "plugin.php?" . $vbulletin->session->vars['sessionurl'] . "do=add") . '</p>'; 
}
and replace it with this ;


PHP Code:
Code:
if ($_REQUEST['do'] == 'modify') 
{ 
$products = fetch_product_list(true); 

print_form_header('plugin', 'updateactive'); 
print_table_header($vbphrase['plugin_system'], 4); 
print_cells_row(array($vbphrase['title'], $vbphrase['hook_location'], $vbphrase['active'], $vbphrase['controls']), 1); 

$plugins = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "plugin ORDER BY product, hookname, title"); 
$prevhook = ''; 
while ($plugin = $db->fetch_array($plugins)) 
{ 
$product = $products[($plugin['product'] ? $plugin['product'] : 'vbulletin')]; 
if ($plugin['product'] != $prevhook) 
{ 
$prevhook = $plugin['product']; 
print_description_row("(" . $plugin['product'] . ") : " . $product['title'], 0, 4, 'tfoot'); 
} 
if (!$product) 
{ 
$product = array('title' => "<em>$plugin[product]</em>", 'active' => 1); 
} 
if (!$product['active']) 
{ 
$product['title'] = "<strike>$product[title]</strike>"; 
} 

$title = htmlspecialchars_uni($plugin['title']); 
$title = ($plugin['active'] AND $product['active']) ? $title : "<strike>$title</strike>"; 

print_cells_row(array( 
"<a href=\"plugin.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;pluginid=$plugin[pluginid]\">$title</a>", 
$plugin['hookname'], 
"<input type=\"checkbox\" name=\"active[$plugin[pluginid]]\" value=\"1\"" . ($plugin['active'] ? ' checked="checked"' : '') . " />", 
construct_link_code($vbphrase['edit'], "plugin.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;pluginid=$plugin[pluginid]") . 
construct_link_code($vbphrase['delete'], "plugin.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&amp;pluginid=$plugin[pluginid]") 
)); 
} 

print_submit_row($vbphrase['save_active_status'], false, 4); 

echo '<p align="center">' . construct_link_code($vbphrase['add_new_plugin'], "plugin.php?" . $vbulletin->session->vars['sessionurl'] . "do=add") . '</p>'; 
}
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 12:12 AM.


Powered by vBulletin® Version 3.5.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...