I was thinking about adding a feature to my website where visitors can add comments, BUT.........
I do not want to use a wordpress theme or any other template. I just want to add the feature to a few pages.
I really have very little experience of php or other scripting so I was wondering how difficult it is to do. Is there a script I can just add to the HTML code to accomplish this or is it more complicated than I think?
Or, is it a function of the Wordpress templates?
You can do anything with PHP if You want and can.
For example, I have site bwebi.com ... it's 100% made by me ... including PHP. On tutorials I have comments.
In Your casem Just write simple comments form + php script to handle it and simple MySQL table. You can find lot of tutorials on internet.
Just look on google and You will find what You want
Remember - user comments = DANGER ... You will get Spam, Bots, Attacks (SQL Injection for example) ... maybe just look for a simple free script on hotscripts.com and integrate it with your website ?
Thanks,
I thought about Hotscripts, but I didn't really know what to look for.
So your saying it can be done with a php script. Great. I peeked at your source code. The php script is just called with the form submit button? Does it require a database?
I have been wanting to learn php for quite some time now. There's tons of things I would like to add to my website. I just lack the time to sit down and really learn.
One day I hope.
Thanks again. You've given me a place to start.
you need a database to store the comments. And to pull the data out the database and to put the data in you could use php. This database could be a txt file or mysql or some other database type but I'd recommend mysql.
If you want more help about how to do this in php please ask in the php forum.
And in the source code you won't find any php. Php isn't send to the client, only the output of a php script is send to the client.
This is a practical tip. Save the IP-address of sender. I had webform to send me contact for email. Some bots found it and started to spam. I made an IP-address array and if the address of sender is on it, the script will block the send. Now I don't get spam anymore, so it worked 
| SamiTheBerber wrote: |
This is a practical tip. Save the IP-address of sender. I had webform to send me contact for email. Some bots found it and started to spam. I made an IP-address array and if the address of sender is on it, the script will block the send. Now I don't get spam anymore, so it worked  |
I made more drastic thing ... i check for "a href" , if there is such thing in mail - bye bye
This same thing is with comments - I don't allow URL's at all
If no URL allowed - why to spam ? 
you can use the guestbook where the visitors can post the comments on the page of your website.
This all can done by php ,asp ;you can get the free guestbook by searching on google .
Use the keywords like free php guestbook script.
when you will find the guestbook ;upload it in your account & make a guestbook navigation bar.
you should know a little bit php so that you can modify the guestbook & add your own heading of guestbook ,your own mail address to notify you when someone post the comment.
| ginny2689 wrote: |
you can use the guestbook where the visitors can post the comments on the page of your website.
This all can done by php ,asp ;you can get the free guestbook by searching on google .
Use the keywords like free php guestbook script.
when you will find the guestbook ;upload it in your account & make a guestbook navigation bar.
you should know a little bit php so that you can modify the guestbook & add your own heading of guestbook ,your own mail address to notify you when someone post the comment. |
Never thought of that. I guess it's pretty much what I want to do.
Of course, now that I want to make some big changes to my site I got a hundred things going on.
If you want a really simple way to add comments to a webpage check out Disqus.
It's really simple, and you don't really need any knowledge of php or mysql.
All you need to do is insert a tiny bit of javascript on your page.
Then Disqus takes care of the rest.
http://disqus.com/
(I use this for my Tumblr account)
just do a little search for comment scripts. you will get more than wat u asked for. there are plenty of scripts available out there and just ready to use. flatfile or mysql. anything u want. search in hotscript