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 =)