forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: mimatadero on December 31, 2011, 03:26:42 pm
-
hello
is possible that the usergal_alphatabs plugin show the numbers for search in gallery?
thankU
-
I don't understand what you're asking for, sorry.
-
hello
i have a user gallery with the plugin "jump by username" like:
http://www.cienciaengalego.org/Coppermine/index.php?cat=1
I will also appear the numbers 0 through 9 for the users that their names start with numbers
thank you
-
Open codebase.php, find
function makejumpbox(){
global $lang_plugin_php;
starttable('100%', $lang_plugin_php['usergal_alphatabs_jump_by_username'], 26);
echo '<tr>';
foreach (range('A', 'Z') as $letter){
echo '<td width="'.(100/26).'%" align="center"><a href="index.php?cat=1&letter='.$letter.'"> '.$letter.' </a></td>';
}
echo '</tr>';
endtable();
}
and replace with
function makejumpbox(){
global $lang_plugin_php;
starttable('100%', $lang_plugin_php['usergal_alphatabs_jump_by_username'], 36);
echo '<tr>';
foreach (array_merge(range(0, 9), range('A', 'Z')) as $letter){
echo '<td width="'.(100/36).'%" align="center"><a href="index.php?cat=1&letter='.$letter.'"> '.$letter.' </a></td>';
}
echo '</tr>';
endtable();
}
additionally, replace all occurrences of
$superCage->get->getAlpha
with
$superCage->get->getAlNum
-
is perfect!!
but...the 0 number dont work!!!! (1-9 work good)
-
i found the error. in line 300 replace
if ($l = $getLetter) $sql .= "AND UPPER({$f[\'username\']}) LIKE \'$l%\' ";
by
if ($l == $getLetter) $sql .= "AND UPPER({$f[\'username\']}) LIKE \'$l%\' ";
thnak you again