Change Alpha Index Search Type in phpMyDirectory

In phpMyDirectory version 1.5.0, alpha search has change. The alpha search on the index page and browse categories page searches for categories with the letter selected. On the browse locations page, it searches locations with the letter selected.

In the previous version of phpMyDirectory it searches for listings with the letter selected regardless of which page you are on.

To simplify, in phpMyDirectory version 1.5.0 alpha search which shows something like this

while for previous version it show

If you are using phpMyDirectory version 1.5.0 but would like the old system, you need to edit a few files,


1. /template/YOURTEMPLATE/browse_categories.tpl


<?php echo $this->block('search_alpha_categories'); ?>


2. /template/YOURTEMPLATE/browse_locations.tpl


<?php echo $this->block('search_alpha_locations'); ?>


3. /template/YOURTEMPLATE/index.tpl

Find both code as in 1 & 2


Replace it with

<?php echo $this->block('search_alpha_listings'); ?>

0 comments… add one

Leave a Comment