MyUPB.com Discussion forums
You are not logged in. Please Register or Login.

Announcements

This project is not completely dead. I've just started work on localisation.
Please email me at clark@NOSPAMmyupb.com once you've registered so I can activate your account (remove "NOSPAM" from the email address)
~~~~ Clark


If you're getting a "Deprecated" error message, follow the instructions here

URGENT Security Patch for ≤ v2.2.6
A security hole has been discovered, follow the instructions and download the patch at the topic page.
Did the patch break your search page? Search Patch

Download myUPB
Version 2.2.7 Released - 24th December 2010


Posted: Dec 12, 2007 7:20:47 am
sunryko



Dear all friends,
I'm tried to try to edit the php with the display language in the massage >_<
Can anyone help me and teach me ? I like this forum but I still need to using on
"Big5" language >_<
I edited the head.php "charset="big5" , The display of topic is ok ,
Just still have problem when the visitor's message use chinese charator >_<
it will transfer to symbol =.=" how can i do ? please help~

A chinese word sample "中文"

i'm thinking about is it cannot convert to database when "POST" or cannot convert when "GET" from the textDB >_<
And how can i fix it ~

waiting for yours respone~

sincerely,
Sunry

Posted: Dec 12, 2007 12:34:59 pm
Clark



In the file "includes/inc/post.inc.php"

Add the line

PHP Code:
$msg = str_replace(&quot;<_>&quot;,&quot;&#20013;文",$msg);


after

PHP Code:
$msg = $text;


in function UPBcoding

I'm working on a way of adding custom coding like this in the Admin Panel

You can add as many of these as you want for different characters

If this doesn't work you may have to try

PHP Code:
$msg = str_replace(&quot;&lt;_&gt;&quot;,&quot;&#20013;文",$msg);
because of html restrictions in posts
myUPB Developer

Powered by myUPB v2.2.6  ·   © PHP Outburst 2002 - 2013

Creative Commons License