Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
SCANU's Live Admincp Search - jQuery filtering search box on admincp! Details »»
SCANU's Live Admincp Search - jQuery filtering search box on admincp!
Version: 0.1, by Scanu Scanu is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.2.x Rating:
Released: 08-03-2014 Last Update: Never Installs: 13
Additional Files Translations  
No support by the author.

Description

This modification adds a search box at the top of the navigation menus on the left of the admincp.
The search box will filter navigation menus while you type, showing only the tabs containing the word you're looking for. This modification is made to make faster the forum administration so that you don't have to scroll the navtabs until you find the right one, just type it and click it! Look at the scrrenshot for more.

"Give me a jQuery library and I will change the web"
-Scanu

Features
  • 1 phrase, 1 navgroup
  • No changes to the admincp code
  • Uses jquery to handle search string and hide show tabs
  • Filter navtitles and navlinksat the same time
  • Instant live search

Installation
  1. Download LiveAdmincpSearch.zip from attachments
  2. Extract the archive
  3. Upload to your vbulletin folder the content of the upload folder
  4. Upload the product "product-scanusearch.xml" in your admincp
  5. That's done!

Compatibility

This should work in every vBulletin version (even vB3) but it has been tested just on 4.2.0 and 4.2.2 so let me know in a reply

Translations

As of this release could be hard to translate the search placeholder, if you want to translate it i'll be happy to help you

Restrictions/ Reported issues

As of this version when you start typing all navgroups are extended without the image changing (I'll fix this on the next version)
If you find any bug please let me know

PLEASE VOTE THIS MOD FOR MOTM CLICK HERE, AND CLICK MARK AS INSTALLED

To get support:
  1. Mark this mod as Installed
  2. Copy/Pasted errors or screenshots
  3. Source Code of the iframe containing the searchbox
  4. For further help you can pm me a moderator account with phrase permissions

More info about this mod

When i asked my brother to port the vb5 admincp style to vb4 I thought the admincp need even more to be modern, when i was using admincp with the new style I saw that as always i coudn't find tabs on the left so I decided to bring the vb5 search feature on vb4admincp. First i tought of a new page with php and queries but then i remembered of a jquery filter plugin; a jquery plugin would have been impossible to be adapted to the strange html structure of navtabs so i decided to code it by myself and using jquery apis i did this in just some hours!


To the coders: This mod use uses only a navgroup, where in the phrase there are jquery codes to inject the search box removing the navgroup itself and make the filtering of tabs. This isn't the best way to do it, but since the admincp is not customizable i ended up with this, in the next version i'll use templates to store jquery codes and search box, and i'll inject the search box without using navgroup


Follow me on twitter for updates

Download Now

File Type: zip LiveAdmincpSearch.zip (8.4 KB, 62 views)

Screenshots

File Type: jpg 1.jpg (62.1 KB, 0 views)
File Type: jpg 2.jpg (60.0 KB, 0 views)
File Type: jpg 3.jpg (66.6 KB, 0 views)
File Type: jpg 4.jpg (15.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Dr.CustUmz, tbworld

Comments
  #2  
Old 08-04-2014, 10:49 AM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change log

- 0.1 First beta release on Vbulletin.org

- 0.2 WORK IN PROGRESS
- No more navgroup, plugins used to inject search box and jquery
- Settings of the mod
- Phrase for the search placeholder
- jQuery codes and search box html stored in a template instead of in a phrase
- Fixed expanded image not changing when admin starts typing
- Restore already expanded panels when user cancel his search
Reply With Quote
  #3  
Old 08-04-2014, 10:49 AM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshots



Reply With Quote
  #4  
Old 08-04-2014, 10:50 AM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved
Reply With Quote
  #5  
Old 08-04-2014, 10:46 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

amazing tool!! just what I needed.

Thanks, Scanu for the great share and effort
Reply With Quote
  #6  
Old 08-05-2014, 08:35 AM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome I just did this for me cause I think it's useful, if i see that other people use it I'll release an update to use phrases, settings, plugins, and templates, but as now it's working just as I wanted it
Reply With Quote
Благодарность от:
fxdigi-cash
  #7  
Old 08-13-2014, 08:40 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea and great mod! Will save a lot of time. Thanks!

ps. what admincp style are you using?
Reply With Quote
  #8  
Old 08-13-2014, 01:09 PM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, I requested this style to my brother because I liked the vb5 admincp style and I hate all other admincp styles on vB.org lol
It isn't finished yet, here you can find the thread with the progress: https://vborg.vbsupport.ru/showthread.php?t=313380

If you want I can give you an incomplete beta of it
Reply With Quote
  #9  
Old 08-22-2014, 09:42 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scanu View Post
Thank you, I requested this style to my brother because I liked the vb5 admincp style and I hate all other admincp styles on vB.org lol
It isn't finished yet, here you can find the thread with the progress: https://vborg.vbsupport.ru/showthread.php?t=313380

If you want I can give you an incomplete beta of it
Yes please, that would be great
Reply With Quote
  #10  
Old 04-18-2016, 03:20 AM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this, I actually took and hard coded it into my backup so I never loose it =)

for any vb3 users interested in doing the same (not sure if its the same in vb4)

in includes/adminfunctions_navpanel.php
find:
Code:
<a href=\"#\" onclick=\"read_group_prefs(); return false\">$vbphrase[revert_prefs]</a>
		</div>
directly after before the " place (this is still scanu's code only removed comments and added escapes for php):
Code:
<br /><input placeholder=\"Search...\" id=\"scanusearch\" type=\"text\" style=\"margin-bottom: 12px; width: 162px;\" />
<script src=\"//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script>
<script type=\"text/javascript\">
$('#scanusearch').insertAfter('.navtitle').first();
$('.navtitle').first().remove();
$('#scanusearch').keyup(function(){
  var searchString = $(this).val().toLowerCase();
  var results = [];
  $('.navgroup').slice(1).each(function(){
    var key = $(this).attr('id');
    results[key] = 0;
    $(this).find('.navlink').each(function(){
      var text = $(this).text().toLowerCase();
      if (text.indexOf(searchString) != -1) {
        $(this).show();
        results[key]++;
      } else {
        $(this).hide();
      }
    });
    if (results[key] > 0) {
      $(this).prev('.navtitle').show();
      $(this).show();
    } else {
      $(this).hide();
      $(this).prev('.navtitle').hide();
    }
    if (searchString == '')
    $(this).hide();
  });
  $('.navtitle').each(function(){
    var text = $(this).text().toLowerCase();
    if (text.indexOf(searchString) != -1) {
      $(this).show();
      $(this).next().find('.navlink').show();
    }
  });
});
</script>
no need to import product, or upload any files other than the one you just edited. but still mark scanu's product as installed if you use this method =)
Reply With Quote
Благодарность от:
Scanu
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 07:46 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.04726 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
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_code
  • (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
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete