How to add Chinese verification code with Discuz

Source: Internet
Author: User

Method:

1. Obtain the font file from the Windows system: Windows/fonts directory under C-disk such as SIMHEI.TTF/SIMSUN.TTC;

2. Linux (centos6.5)/usr/share/fonts/under mkdir Chinese directory;

3. Give operation permission: Chmod-r 755/usr/share/fonts/chinese;

4. Install Ttmkfdir to search all font information in the directory yum-y install Ttmkfdir ttmkfdir-e/usr/share/x11/fonts/encodings/encodings.dir after installation;

5. Modify Font profile vi/etc/fonts/fonts.conf Join a line to see

6. Refresh the in-memory font cache fc-cache View the font list fc-list (Linux font configuration complete!) )

(the above 6 steps are after the 7th step configuration, the verification code does not appear in the case of Chinese)

7. Also upload the two font files of SIMHEI.TTF/SIMSUN.TTC to Discuz project/ Static/image/seccode/font/ch (or en directory, depending on discuz background requirements) Under . all configurations end!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.