Home Backend Development PHP Tutorial ThinkPHP上使用多说评论插件的方法_PHP

ThinkPHP上使用多说评论插件的方法_PHP

May 31, 2016 pm 07:28 PM
thinkphp use plug-in Comment

ThinkPHP

本文实例讲述了ThinkPHP上使用多说评论插件的方法。分享给大家供大家参考。具体实现方法如下:

先前访问网友的一些网站,他们好些的局部都发生了变化,如文章的评论模块设计得和谐美观,集表情和分享工具于一体,而且可以盖楼式评论,当时我真是称赞不已,真牛啊,能开发出这样的评论模块!后来聊天我才知道,原来他们是使用了多说评论插件。

什么是多说?

多说是一款追求极致体验的社会化评论框,可以用微博、QQ、人人、豆瓣等帐号登录并评论,用社交账号登录,进行评论,同时转发到社交平台(可选),进行回复、标记喜欢、转发操作。跨平台的评论聚合效应,有利于有效提高回访流量。多说具备优质用户体验、速度和稳定性、社会化推荐和建站程序深度整合、垃圾评论过滤等特性。

在ThinkPHP中体验一下多说

正值我博客的评论模块在开发过程中遇到了瓶颈,多说的出现无疑是在山穷水尽处突然柳暗花明又一村的惊喜。
我的网志博客是基于ThinkPHP开发的,想百度一下看看别人是如何在ThinkPHP上使用多说评论的,但后来有点失望了--看来捷径走不通,那只有自己摸索了。

我还以为使用多说是如何的复杂,看来是我多虑了,研究了一两个小时,成果出来了,现在把经验分享一下。

一、注册帐号

到多说官网(http://duoshuo.com)去注册一个帐号。去注册一个帐号。

二、创建站点

登陆多说帐号,然后创建站点,如图所示:

很简单,你只需填写好:
1、站点名称
2、站点地址
3、多说域名(即多说分配的一个二级域名,自定义的。)
至于其它选项,想留空的就留空,自己选择吧。这一步的最后,点击创建就OK了。

三、获取代码

在前面创建好站点的基础上,点击后台管理,在下拉菜单中会出现刚才创建的站点的名称,如图

点击前面创建的站点,这里我创建的是“网志博客“。打开页面后,点击工具,然后获取代码,注意,要选择通用代码,如图所示:

看看上图,很多网站系统都有专用的代码了,唯独没有ThinkPHP的。

下面是我的网志博客对应的创建代码:

代码如下:


    




复制站点创建对应的通用代码,并粘帖到您网页代码与间的任意位置。如果您的网站使用模板,请粘帖到模板代码中。如果还不理解,那你就把通用代码粘帖到文章模板页,然后浏文章并刷新,你就会看到效果了,这时适当的调整css布局就可以了。

使用上面的方法,你可以把你的网站的评论模块去掉了,当然,多说评论插件的功能决不止于此,剩下的留作以后慢慢讨论吧。

最后,再上一张做好后的效果图:

希望本文所述对大家的ThinkPHP框架程序设计有所帮助。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to run thinkphp project How to run thinkphp project Apr 09, 2024 pm 05:33 PM

To run the ThinkPHP project, you need to: install Composer; use Composer to create the project; enter the project directory and execute php bin/console serve; visit http://localhost:8000 to view the welcome page.

How to use Baidu Netdisk app How to use Baidu Netdisk app Mar 27, 2024 pm 06:46 PM

Cloud storage has become an indispensable part of our daily life and work nowadays. As one of the leading cloud storage services in China, Baidu Netdisk has won the favor of a large number of users with its powerful storage functions, efficient transmission speed and convenient operation experience. And whether you want to back up important files, share information, watch videos online, or listen to music, Baidu Cloud Disk can meet your needs. However, many users may not understand the specific use method of Baidu Netdisk app, so this tutorial will introduce in detail how to use Baidu Netdisk app. Users who are still confused can follow this article to learn more. ! How to use Baidu Cloud Network Disk: 1. Installation First, when downloading and installing Baidu Cloud software, please select the custom installation option.

How to pin comments to the top of Xiaohongshu on the computer? Where are the private messages on the computer? How to pin comments to the top of Xiaohongshu on the computer? Where are the private messages on the computer? Mar 28, 2024 pm 12:36 PM

On Xiaohongshu, users can browse a variety of beauty, fashion, travel and other content, while also expressing their own opinions and comments. Some users encountered the problem of how to pin comments when using the Xiaohongshu computer version. 1. How to pin comments to the top of Xiaohongshu on the computer? 1. Open the computer version of Xiaohongshu and enter the post or update you want to comment on. 2. In the comment area, find the comment you want to pin. 3. Click on the comment and you will see a "Pin" button. 4. Click the "Pin" button, and the comment will appear at the top of the comment area and become a pinned comment. It should be noted that the Xiaohongshu computer version currently only supports pinning your own comments, and the pinning function is only valid in the comment area of ​​posts or updates, and cannot be pinned on topic pages or global comment areas. two,

Will I be reminded if my Xiaohongshu comment is deleted by the blogger? What should I do if my comments in Xiaohongshu are deleted? Will I be reminded if my Xiaohongshu comment is deleted by the blogger? What should I do if my comments in Xiaohongshu are deleted? Mar 28, 2024 am 11:46 AM

Xiaohongshu is a content-rich and interactive social platform where users can post and comment on various contents. Sometimes we may encounter situations where our comments are deleted by bloggers. So, will the blogger be reminded if a Xiaohongshu comment is deleted? What should we do if it is deleted? 1. Will the blogger be reminded if a Xiaohongshu comment is deleted? After a Xiaohongshu comment is deleted by the blogger, the system will provide a notification to the user. Users can check the notification in Xiaohongshu’s message center to learn why their comments were deleted. Users can also find their deleted comments in the comment record on their personal homepage and view the relevant situation. 2. What should I do if my comments in Xiaohongshu are deleted? 1. Stay calm: First of all, we need to stay calm and don’t panic or get angry. Bo

How to use NetEase Mailbox Master How to use NetEase Mailbox Master Mar 27, 2024 pm 05:32 PM

NetEase Mailbox, as an email address widely used by Chinese netizens, has always won the trust of users with its stable and efficient services. NetEase Mailbox Master is an email software specially created for mobile phone users. It greatly simplifies the process of sending and receiving emails and makes our email processing more convenient. So how to use NetEase Mailbox Master, and what specific functions it has. Below, the editor of this site will give you a detailed introduction, hoping to help you! First, you can search and download the NetEase Mailbox Master app in the mobile app store. Search for "NetEase Mailbox Master" in App Store or Baidu Mobile Assistant, and then follow the prompts to install it. After the download and installation is completed, we open the NetEase email account and log in. The login interface is as shown below

How to add people who comment on WeChat video accounts as friends? How do you know who the person who commented on the video account is? How to add people who comment on WeChat video accounts as friends? How do you know who the person who commented on the video account is? Apr 01, 2024 pm 05:06 PM

As the functions of WeChat video accounts continue to be upgraded, users have higher and higher requirements for the interactivity of video accounts. Among them, many people hope to find their favorite friends through comments and then add them as WeChat friends. So, how to add people who comment on WeChat video accounts as friends? 1. How to add people who comment on WeChat video accounts as friends? 1. Find the comments from your favorite friends. First, you need to find the comment in the WeChat video account that makes your heart move. This can be achieved by browsing the comment section of the video account. When you find an interesting comment, you can click on the commenter's avatar to enter his personal homepage. 2. Follow the video account and send a private message to the commenter's personal homepage. You can see their WeChat name and avatar. At this time, you can first follow the video account and then click

How to unblock Xiaohongshu comments that have been banned for 7 days? Can it be broadcast live if its comments are banned for 7 days? How to unblock Xiaohongshu comments that have been banned for 7 days? Can it be broadcast live if its comments are banned for 7 days? Mar 30, 2024 pm 12:21 PM

Xiaohongshu is a content-rich social platform where users can share their lives and exchange experiences. Sometimes user comments may violate platform regulations and result in being banned. Recently, some users encountered the problem of their comments being banned for 7 days. So, how to unban them and can they live broadcast during the ban period? This article will discuss these two issues. 1. How to unblock Xiaohongshu comments that have been banned for 7 days? First, we need to understand Xiaohongshu’s rules for banning comments. Generally speaking, banning occurs because a user's comments violate platform regulations, such as advertising, spam, malicious attacks, etc. 2. If you are unfortunately banned, you should first check your recent comments to find out the possible reasons for the ban. 3. During the ban period, you can check the ban rules on the Xiaohongshu platform to learn the solutions.

How to remove comment restrictions on video accounts? What is the word limit for comments on a video account? How to remove comment restrictions on video accounts? What is the word limit for comments on a video account? Mar 22, 2024 pm 02:11 PM

With the popularity of video accounts on social media, more and more people are beginning to use video accounts to share their daily lives, insights and stories. However, some users may experience comments being restricted, which can leave them confused and dissatisfied. 1. How to remove comment restrictions on video accounts? To lift the restriction on commenting on a video account, you must first ensure that the account has been properly registered and real-name authentication has been completed. Video accounts have requirements for comments. Only accounts that have completed real-name authentication can lift comment restrictions. If there are any abnormalities in the account, these issues need to be resolved before comment restrictions can be lifted. 2. Comply with the community standards of the video account. Video accounts have certain standards for comment content. If the comment involves illegal content, you will be restricted from speaking. To lift comment restrictions, you need to abide by the community of the video account

See all articles