Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Group Plugins by Product in the ACP Plugin Manager Details »»
Group Plugins by Product in the ACP Plugin Manager
Version: 1.01, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 11-04-2005 Last Update: Never Installs: 15
 
No support by the author.

This modification is no longer available or supported.

Having upgraded to vb 3.5.1 and now having over 60 plugins across 15 products I finally got fed up of the current way they are displayed so I simply switched the Products/Hooks around in the display to group plugins [for a product] together. Much easier to see what's related this way.

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

PHP 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'], 04'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'], false4);

    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:
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'], 04'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'], false4);

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

That's it, job done.




History:

v1.01 : First Release.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-06-2005, 04:03 AM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet. i also was getting annoyed with how it was displayed
/me clicks install
Reply With Quote
  #13  
Old 11-06-2005, 09:31 AM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Nice,
Click Install
Reply With Quote
  #14  
Old 11-11-2005, 02:45 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
60 Plugins? o.O
I got 297 ... and counting.
That's just greedy ...
Reply With Quote
  #15  
Old 11-11-2005, 10:47 AM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an excellent idea! Thanks Paul!!
Reply With Quote
  #16  
Old 11-15-2005, 10:30 AM
Moncal Moncal is offline
 
Join Date: Mar 2005
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea. I'll install this as soon as I upgrade to 3.5.1. Thanks.
Reply With Quote
  #17  
Old 02-25-2006, 12:23 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Estimated 500+ plugins Only got about a 20/th of the way up the page and gave up
got to 200 pmsl....if anyone wants to count them for me as i cant find anywahere to
list the totals lol let me know lol

Anyway...brilliant idea and i clicked install!!
Reply With Quote
  #18  
Old 05-30-2006, 12:13 PM
havefun's Avatar
havefun havefun is offline
 
Join Date: Jan 2002
Location: Spain & Austria
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice, thx!
Reply With Quote
  #19  
Old 05-31-2006, 03:02 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just reading the new features in the vB 3.6.0 beta thread at vb.com - grouping plugins by product has been included as part of standard vbulletin, so this hack will become redundant in 3.6.
Reply With Quote
  #20  
Old 06-02-2006, 10:22 AM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still nice to have with 3.5.4
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 03:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05943 seconds
  • Memory Usage 2,346KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete