Embeded in phpBB

webmastair
webmastair's picture

Joined: 2005-06-09
Posts: 25
Posted: Tue, 2007-02-06 17:21

Hi,

I use the G2 embeded in the last version of phpBB forums.

Everyting seems to worked fine but when I goes in G2 by the forums, the characters looked like "Album : Galeries photos priv饳" (and characters of the forums too)... and when I goes directly in G2 without the phpBB intergration interface, everything was ok (forums & G2).

I have done a modify in the files "g2helper.inc" !

I changed this functions :

	function _utf8Translate($value) {
		return (defined('UTF8_TRANSLATE')) ? utf8_encode($value) : $value;
	}

	function utf8Untranslate($value) {
		return (defined('UTF8_TRANSLATE')) ? utf8_decode($value) : $value;

... like this :

	function _utf8Translate($value) {
		return (defined('UTF8_TRANSLATE')) ? $value : $value;
	}

	function utf8Untranslate($value) {
		return (defined('UTF8_TRANSLATE')) ? $value : $value;

... so that it has no effect on the "html" translate !

With this change, it's now the characters of the forums (Derni貥 visite le Aujourd'hui, ࠱0:08) that are bad when we are looking from into the photo's albums (everything is back ok when we are out of the albums).

Is there anybody who's know what to do ?

----------------------------------
Gallery informations :
Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 apache
Webserver = Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Database = mysql 5.0.27-standard, lock.system=database
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, full/900
Operating system = Linux vancouver1.bhservers.com 2.4.21-47.0.1.ELsmp #1 SMP Thu Oct 19 11:33:45 EDT 2006 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

----------------------------------
WebmastAir (from CompAir)

 
webmastair
webmastair's picture

Joined: 2005-06-09
Posts: 25
Posted: Wed, 2007-02-07 10:44

I changed back this code in his usual state and disable the "UTF-8 Translation" in the ACP.

Everything is back ok except when i go directly into G2 to manage albums and users... there is now the same problem «Album: Election Comit頦quot;Cumulus Hoppers"» (My gallery DB is "utf8_unicode_ci").

Did somedbody have an idea to help me ?

WebmastAir (from CompAir)