Thinkphp on the use of multi-comment plugin method _php instance

Source: Internet
Author: User
The examples in this paper describe how to use the thinkphp comment plugin. Share to everyone for your reference. The implementation method is as follows:

Previous visits to some of the Web sites, their better parts have undergone changes, such as the article's Review module design harmonious aesthetics, set expression and sharing tools in one, and can be built-in comments, then I really praised, really cow ah, can open such a comment module! Later chat I only know, originally they are used to say comment plugin.

What is more to say?

More say is a pursuit of the ultimate experience of the social comment box, you can use Weibo, QQ, everyone, watercress and other accounts login and comment, with social account login, comment, and forward to the social platform (optional), to reply, Mark like, forward action. The cross-platform review aggregation effect is helpful to improve the return traffic. Say that you have high-quality user experience, speed and stability, social recommendations and built-in program depth integration, spam review filtering and other features.

Experience a little more in thinkphp.

The comment module of my blog in the development process encountered a bottleneck, more said the appearance is undoubtedly at the vista suddenly surprise.
My blog is based on the thinkphp development, want to see how others on the Baidu thinkphp on the use of more comments, but later a bit disappointed--it seems that the shortest way to go, that only their own groping.

I thought the use of more than said is how complex, it seems that I worry about, study for one or two hours, the results come out, now share the experience.

First, registered account

Go to http://duoshuo.com to register an account. To register an account.

Second, create a site

Login to say the account number, and then create a site:

Very simple, you just fill in the good:
1. Site name
2. Site Address
3, more say the domain name (that is, more say the allocation of a two-level domain name, custom. )
As for the other options, leave it blank and choose it yourself. At the end of this step, click Create to OK.

Third, get the code

Based on the previous creation of a good site, click on the background management, in the drop-down menu will appear the name of the site just created,

Click on the site you created earlier, where I created the blog. After opening the page, click on the tool, then get the code, note, to select the common code:

Look, many web systems have dedicated code, but there is no thinkphp.

Here is the creation code for my weblog blog:
Copy the Code code as follows:



Copy the site to create the corresponding generic code, and paste it to your Web page code and anywhere between. If your site uses a template, paste it into the template code. If you do not understand, then you will paste the generic code to the article template page, and then the article and refresh, you will see the effect, then the appropriate adjustment of the CSS layout can be.

Using the above method, you can put the comment module of your website removed, of course, commenting on the function of the plug-in never stop here, the rest of the stay for a slow discussion later.

Finally, the next one is done:

It is hoped that this article will be helpful to everyone's thinkphp framework design.

  • 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.