Use and optimization of wordpress Coupon plug-in DRP Coupon

Source: Internet
Author: User

 

Use and optimization of wordpress Coupon plug-in DRP Coupon

This is a foreign plug-in. You can try it as a coupon,

You can click the generated coupon to open the link and copy the coupon code at the same time. Function is not bad.

Usage:

After setting the coupon, you can add the corresponding coupon in the article.

When adding an article, select the coupon location :.

  

 

The small button on the Right of adding a media set is. Click it to jump out of the coupon selection page and select it.

Show effect of adding coupons to articles

  

 

Related questions:

What shadow will talk about today is some issues and precautions about the DRP Coupon plug-in.

1. Database Encoding

Just installed, you can search for DRP Coupon to install the plug-in the background.

After installation, modify the database Field encoding.

Locate the DRP Coupon data table and encode the field

Changed from latin1_swedish_ci to utf8_general_ci to support normal display of Chinese Characters

:

  

VcmRwcmVzc7LlvP7KsbP2z9bW0M7EwtLC67XEveK + 9re9t6g = "height =" 106 "src =" http://www.bkjia.com/uploads/allimg/131122/02514J0H-2.png "width =" 476 "/>

 

2. Enter the coupon Link

When you add a coupon, we enter the seller link.

By default, the URL without http: // is entered.

Some students want to enter the https: // link address and find that an error occurs when opening the address on the front-end coupon.

For example, when https://www.menglei.info/is opened, it becomes http//www.menglei.info/

To solve this problem, modify the code.

Open the file drp_coupon.php.

Locate:

  

 

Modify the following code in about 354 lines:

To:

(TIPS: if you are a copyparty, copy and modify the comma, single quotation marks, double quotation marks, and other characters in the Code .)

Use the if statement to determine whether the link address starts with http: // or https: //, and automatically add http: // to the link address that does not start with http ://.

3. Encoding Problems.

Open the plug-in file with notepad ++ and change the code to UTF-8 to support Chinese.

(TIPS: Change the file encoding method, first cut all the code, then format> In UTF-8 without BOM format encoding, Then paste the original code .)

For example:

Modify

Expiration time: format ("m/d/Y"): 'never expired';?>

There will be no gibberish issues.

4. Localization

If Chinese characters are to be written on the webpage, encoding conversion in step 3 is required.

In the background, you can find relevant content and replace Chinese characters.

Backup is recommended before Localization

If garbled characters appear, perform encoding conversion.

For more information about the DRP Coupon plug-in, click here. New discoveries will be continued.

Original shadow text link: http://www.menglei.info/1095/download. Please refer to the link for help. Thank you for your cooperation.

Related Article

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.