Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Question regarding case transformation of bridged user group names  (Read 6430 times)

0 Members and 1 Guest are viewing this topic.

digitaldream

  • Coppermine newbie
  • Offline Offline
  • Posts: 10

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!)
Logged

Nibbler

  • Guest
Re: Question regarding case transformation of bridged user group names
« Reply #1 on: April 03, 2010, 11:48:31 pm »

Removing them is fine.
Logged

digitaldream

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Question regarding case transformation of bridged user group names
« Reply #2 on: April 03, 2010, 11:54:08 pm »

Thanks for your quick reply.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Question regarding case transformation of bridged user group names
« Reply #4 on: April 04, 2010, 06:04:09 pm »

Happy easter to you.

The 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
Logged

digitaldream

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Question regarding case transformation of bridged user group names
« Reply #5 on: April 08, 2010, 09:33:42 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

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... :)
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.