forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: digitaldream on April 03, 2010, 11:38:30 pm
-
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/ (http://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!)
-
Removing them is fine.
-
Thanks for your quick reply.
-
Common policies: Resolve your threads (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631)
-
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 (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631)
-
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 (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631)
Sorry, I overlooked that. I'm reading tons of coppermine documentation and code these days... :)