SMF bridge user groups error SMF bridge user groups error
 

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

SMF bridge user groups error

Started by thatdarncat, November 27, 2005, 10:03:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thatdarncat

I have the following issue when trying to bridge coppermine and smf:

member groups imported from SMF display only their first letter

eg: Adminstrators = A, Global Moderators = G, Jr. Members = J

Coppermine install: http://www.guildofgeeks.org/mastersofevil/gallery/index.php
Forum install: http://www.guildofgeeks.org/mastersofevil/index.php
Coppermine version: cpg1.4.2
Forum version: SMF 1.1 RC1
Test user account: will provide via PM if needed as user would have administrator privilages

BridgeManager settings:
Forum URL:  http://www.guildofgeeks.org/mastersofevil/gallery
Relative path to your BBS's config file:  ../
Use post-based groups?:  yes

edit: added screenshot of error

Nibbler

This issue is unrelated to bridging and has already been fixed elsewhere.

thatdarncat

Fair enough :) I assumed it was related to the bridging as it only showed up after I initiated the bridge.

Is there a patch yet that you know of?

Nibbler

include/mb.inc.php

find:


function mb_substr($str, $start, $end=null) {
global $mb_utf8_regex;
preg_match_all("#$mb_utf8_regex".'|[\x00-\x7F]#', $str, $str);
$str = array_slice($str[0], $start, $end);
return implode('', $str);
}


change to


function mb_substr($str, $start, $end=null) {
global $mb_utf8_regex;
preg_match_all("#$mb_utf8_regex".'|[\x00-\x7F]#', $str, $str);
$str = empty($end) ? array_slice($str[0], $start) : array_slice($str[0], $start, $end);
return implode('', $str);
}

Satyr

#4
Hm, the changement in this script does not resolve my problems with the grouprights.  :(

Edit: This helped me, thanks GauGau!
http://forum.coppermine-gallery.net/index.php?topic=24357.msg112047#msg112047
Kein Support über PN. Bitte im Forum posten, dann ist anderen auch geholfen.

http://www.gothicmodels.net/gothicmodels/gallery/

Testuser: Test23 PW: 123456