Click here to Skip to main content
14,935,710 members
Please Sign up or sign in to vote.
1.60/5 (2 votes)
See more:
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
Posted
Comments
thatraja 11-Dec-13 5:49am
   
Are you using any blog system like blogspot or wordpress?
Arun-23 13-Dec-13 3:37am
   
what have you tried..??

1 solution

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
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900