[Plugin: Members List Plugin] searcha alphabetically by last name
-
Hello,
I have the members list set up and working. I do see on your sample that you have the ability to search by last name with letters going across the top. And I see in the code there is a function alpha, but what I don’t know is how to display this or where to to put the code. this is the code that I found.
function alpha($e=false) {
$a = array(‘a’,’b’,’c’,’d’,’e’,’f’,’g’,’h’,’i’,’j’,’k’,’l’,’m’,’n’,’o’,’p’,’q’,’r’,’s’,’t’,’u’,’v’,’w’,’x’,’y’,’z’);
$r = ‘<div class=”tern_members_alpha”>Search alphabetically <span>(by last name)</span>:- ‘;
- url.’&page=1&query=’.$v.’&type=alpha&sort=last_name”>’.strtoupper($v).’
foreach($a as $v) {
unset($c);
if($v == $_GET[‘query’]) {
$c = ‘class=”tern_members_selected”‘;
}
$r .= ‘‘;
}
$r .= ‘</div>’;
if($e) { echo $r; }
return $r;
}Thank you,
Aaron
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Members List Plugin] searcha alphabetically by last name’ is closed to new replies.