News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

usergal_alphatabs with numbers

Started by mimatadero, December 31, 2011, 03:26:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mimatadero

hello

is possible that the usergal_alphatabs plugin show the numbers for search in gallery?

thankU

Αndré

I don't understand what you're asking for, sorry.

mimatadero

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

Αndré

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

mimatadero

is perfect!!

but...the 0 number dont work!!!!     (1-9 work good)

mimatadero

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