Question regarding case transformation of bridged user group names Question regarding case transformation of bridged user group names
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Question regarding case transformation of bridged user group names

Started by digitaldream, April 03, 2010, 11:38:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

digitaldream

Hello,

i have a rather basic question regarding Coppermine doing a case transformation on the user groups of a bridged SMF board.

Coppermine Version is 1.5.3 RC
Bridged app is SMF 1.1.11
Gallery at www.mbfr.org/galerie/

The code in question is in bridge/smf10.inc.php in the following function:


            function collect_groups()
            {
                    // Use this version to exclude true post based groups
                    //$sql ="SELECT * FROM {$this->groupstable} WHERE minposts=-1";

                    // Use this version to include all SMF groups
                    $sql ="SELECT * FROM {$this->groupstable}";

                    $result = cpg_db_query($sql, $this->link_id);

                    $udb_groups = array(3 => 'Guests');

                    while ($row = mysql_fetch_assoc($result))
                    {
                            $udb_groups[$row[$this->field['grouptbl_group_id']]+100] = utf_ucfirst(utf_strtolower($row[$this->field['grouptbl_group_name']]));
                    }

                    return $udb_groups;
            }


The bold marked code transforms the group's name taken from SMF and actually leads to some ugly looking group names.

My question now is: Can I safely remove (or maybe replace) those two functions to have my groups the same notation as in SMF or not? The thing is, Coppermine uses UTF-8 whereas my SMF does not... Any chance to have the group names a litle bit 'nicer'?  ::)

Thanks in advance,
Rainer

(Oh... and happy easter!)



Joachim Müller


Joachim Müller

Happy easter to you.

Quote from: digitaldream on April 03, 2010, 11:38:30 PMThe bold marked code transforms the group's name taken from SMF and actually leads to some ugly looking group names.
Nobody sees them, so why bother?

Anyway, as your issue is solved, please do as suggested in Common policies: Resolve your threads

digitaldream

Quote from: Joachim Müller on April 04, 2010, 06:04:09 PM
Nobody sees them, so why bother?

Any member restricting access to one of his personal albums sees them in the dropdown list in modifyalb.php

Quote from: Joachim Müller on April 04, 2010, 06:04:09 PM
Anyway, as your issue is solved, please do as suggested in Common policies: Resolve your threads

Sorry, I overlooked that. I'm reading tons of coppermine documentation and code these days... :)