SMF bridge user groups error SMF bridge user groups error
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

SMF bridge user groups error

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

Previous topic - Next topic

0 Members and 2 Guests 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