| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 7630|Reply: 8
Collapse the left

[Help] Getting messy code while adding plugin in app center

[Copy link]
Post time: 2014-06-12 04:46
| Show all posts |Read mode
本帖最后由 shinstar 于 2014-6-14 06:32 编辑

I am testing this amazing forum software using X3ML. Thanks for the good work
After installing plugin through comsenz app center, I am geting messy code interface of the plugin.
I am guessing most of the plugin would not be compatiable with Discuz!ML?

I noticed that you start moding original version to international version using GBK encoding package.

Is that the cause of problem?

 Author| Post time: 2014-06-14 05:30
| Show all posts
本帖最后由 shinstar 于 2014-6-14 18:37 编辑
vot 2014-6-12 19:35
Discuz!ML works ok with UTF-8 encoding.
So you can use ANY plugin used the same UTF-8 encoding.
When ...

While in Admincp-app center, choose one plugin
and I think it automatically installed an utf-8 encoding package.I've checked the plugin files, it's utf-8 encoding.


it's just messy code... see attached image

I think the plugin works fine but just doesnt show rightly.

Although the app center doesnt have other language plugin, at least it should show SC correctly.

I assume it may show right when use a gbk encoding package, but it won't work then.

PS, the apps are installed automatically, and I am not sure how to install them and choose the encoding package manually.



This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2014-06-12 18:35
| Show all posts
Discuz!ML works ok with UTF-8 encoding.
So you can use ANY plugin used the same UTF-8 encoding.
When install a plugin, just choose one of UTF-8 languages, i.e. SC_UTF8.
If you installed with GBK, you must convert all the plugin files to SC_UTF8.

 Russia

Post time: 2014-06-14 17:03
| Show all posts
Check, what the encoding used in your database.
it must be "utf8" (utf8-general-ci) everywhere.
 Author| Post time: 2014-06-14 17:35
| Show all posts
本帖最后由 shinstar 于 2014-6-14 18:39 编辑

Yes, database is utf8-general-ci encoding

you guys do not have this problem?

I've tested X2.5 X3 and X3.1, still the same
 Author| Post time: 2014-06-14 17:47
| Show all posts
本帖最后由 shinstar 于 2014-6-14 18:48 编辑
vot 2014-6-14 18:03
Check, what the encoding used in your database.
it must be "utf8" (utf8-general-ci) everywhere.

Yes, database is utf8-general-ci encoding

you guys do not have this problem? Can you use any chinese utf8 plugin from app center?

I tested X2.5 X3 and X3.1, still the same.=.=!!

If you guys donot have this problem, I should focus on checking my enviroment setting or something else.

I test with the orginal discuzX3 sc-utf8 version, nothing goes wrong. plugin installs and shows correctly.

so frastrating


 Russia

Post time: 2014-06-14 19:03
| Show all posts
Original CHinese plugins are mostly incompatible with ML version.
Because of it uses XML with non-utf-8 encoding.
Try to change the plugin XML encoding:

Find XML files and change the first line:
Original:
<?xml version="1.0" encoding="ISO-8859-1"?>
Multilingual:
<?xml version="1.0" encoding="UTF-8"?>
 Author| Post time: 2014-06-16 15:11
| Show all posts
本帖最后由 shinstar 于 2014-6-16 16:16 编辑
vot 2014-6-14 20:03
Original CHinese plugins are mostly incompatible with ML version.
Because of it uses XML with non-ut ...

Thanks  @vot
You are right, it's because the xml encoding declaration.

But just change the first line of xml will not help.
Problem is that wrong encoding data will be automatically import to mysql while installing, and after that change the xml will not work.
And this moment we cant install plugins manually, so its not possible to re-install them using changed xml files.
Seems there is no easy way to fix this.
I am thinking using original discuz and install the plugin, then export the plugin data. Haven't test whether there would be more function problems with some plugins.

Any other more brilliant ideas? guys

Thanks

 Russia

Post time: 2014-06-16 16:17
| Show all posts
Your idea is quite nice.
I wanted to suggest the same...
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 15:37 GMT+3 , Processed in 0.085228 sec., 14 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list