Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2652

Extensions in Development • Re: [3.2][RC] Topic Template

$
0
0
I would like to include emoji in the topic template.
Now I get:

Code:

SQL ERROR [ mysqli ]Incorrect string value: '\xF0\x9F\x93\xA6 E...' for column `admin_phpbbextnl`.`phpbb_config_text`.`config_value` at row 1 [1366]SQLUPDATE phpbb_config_text SET config_value = 'a:1:{s:9:\"templates\";a:2:{i:4;s:379:\"[b]📦 Extensienaam:[/b] [color=#BF0000][b]###[/b][/color] \n[b]🔢 Versie:[/b] [color=#BF0000][b]###[/b][/color] \n[i]🌍 Vertaald door [u]SpIdErPiGgY[/u][/i]\n\n[b]🔗 Volledige versie:[/b] \n➡️ [url=###]phpBB.com extensiepagina[/url]\n\n\n[Bijlage]\n\n\n[img]https://www.phpbbextnl.be/ext/dmzx/imageupload/img-files/2/2b564d0/907661c/8282b8a83d1eb2c94e55224a5c0966fe.png[/img]\";i:11;s:171:\"[b]Extensienaam:[/b]\n[b]Versie:[/b] [color=#BF4000][/color]\n[b]Auteur:[/b] [color=#BF0000][b]SpIdErPiGgY[/b][/color]\n\n[b][u]Beschrijving:[/u][/b]\n\n[b][u]Vereisten:[/u][/b]\";}}' WHERE config_name = 'marttiphpbb_topictemplate'
They work in my forum, just not in this ext.

Fix
Find:

Code:

$topic_template = utf8_normalize_nfc($this->request->variable('forum_marttiphpbb_topictemplate', '', true));
Replace with:

Code:

$topic_template = utf8_encode_ucr($this->request->variable('forum_marttiphpbb_topictemplate', '', true));

Statistics: Posted by SpIdErPiGgY — Sun Apr 13, 2025 5:18 pm



Viewing all articles
Browse latest Browse all 2652

Trending Articles