如何将评论框添加到我的网页 [英] How to Add Comments box to My Webpage

查看:85
本文介绍了如何将评论框添加到我的网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的网页上添加评论框?不要添加Facebook评论框。



示例: - Google博客类型评论框。



1.写评论



2.选择个人资料(评论为)



3.然后提交电子邮件&密码



4.发布

How to Add Comments box to My Webpage? Do not add facebook Comments box.

Example:- Google blogger type comment box.

1. write comment

2. Select profile (Comment as)

3. Then submit Email & Password

4. Publish

推荐答案

嗨朋友,



如果你想要一个编程的通用注释框,那么在实现它时你必须看看以下几点。



这些是:

1.带有textarea输入,选择框,电子邮件ID和密码等少量文本框以及提交按钮的简单表格。



2.然后使用CSS来设置样式并让它看起来很酷:)还有一件事是你应该使用jQuery来设计某种非常酷的插件或简单的页面也可以。



3.现在你必须设计一个后端系统。如果你正在使用php,那么设计一个php脚本,它实际上会收到发布的评论和其他信息,然后很少有其他东西,比如使用电子邮件和密码来确认这个人,你可以使用你自己的数据库给用户,或者你可以阅读谷歌更多关于使用谷歌帐户这样做。然后你必须发送一些细节到谷歌进行进一步处理,以找出谁是评论者。



4.现在验证成功后,使用简单的数据库操作在帖子的表格中插入新的评论,其中post_id是当前的帖子ID:)



5.现在,如果你正在使用javascript AJAX,你可以在不离开页面的情况下实际完成所有这些事情,然后你可以实时更新评论列表fb :)



希望这些指针可以帮助你继续前进。我很抱歉,目前我甚至无法为你提供虚拟代码。



有问候

Tushar Srivastava
hi friend,

If you want to have a generic comment box programmed by you, then you have to look at the following points while implementing it.

These are :
1. A simple form with a textarea input, a selectbox, few textboxes for email id and password etc. and a submit button.

2. Then use CSS to style it and make it look cool :) One more thing is that you should either use jQuery to design some kind of plugin that will be really cool or simple page can also do.

3. Now you have to design a back-end system. If you are using php, then design a php script which will actually receive the posted comment and other information and then few other things like using the email and password to confirm the person, you can either use your own database for users or you can read more on google about using google account to do so. Then you have to send few details to google to do further processing to find out who the commenter is.

4. Now after successful validation, use a simple database operation to insert a new comment in a table of the post where post_id is the current post id :)

5. Now, if you are using javascript AJAX, you can actually do aall these things without leaving the page and then you can actually update the comment list in real time also like fb :)

Hope that these pointers may help you to move ahead. I am sorry though that at the moment I am unable to provide you even dummy codes.

With Regards
Tushar Srivastava


这篇关于如何将评论框添加到我的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆