Jump to content

Archived

This topic is now archived and is closed to further replies.

Chappers

Add comment script

Recommended Posts

Hi

I'm trying to find a good script that will allow me to put a little 'add your comments' box on any page on my website.

I tried guestbook scripts, but they'd need separate MySQL tables creating for each page, and a new installation for each one. I need something I can add quickly and easily to any page I create, which will then allow comments to be added to that page, and shown on that page - but only that page. Not something that shows the collective comments from every page that has the facility.

Nothing fancy, anything basic would do. I just can't seem to find anything and my knowledge of PHP is still far too limited for making something myself.

Could someone recommend something suitable please?

Many thanks in advance,
James

Share this post


Link to post
Share on other sites
you could create a DB with a field of `page` and set that to the page name or id or something, then just add in a small form at the bottom of each page, submitting the page_id in the sql like:

$sql = "INSERT INTO `comments` (`user`, `page` `comment`)"; etc...

Share this post


Link to post
Share on other sites
You're welcome to look at - and use if you want - my comment script thing.

[a href=\"http://www.digitalmidget.com/php_noob/comment.php\" target=\"_blank\"]http://www.digitalmidget.com/php_noob/comment.php[/a]

Share this post


Link to post
Share on other sites
Hi

Thank you both for your replies. As often happens, some time after posting I found a comment script which I then implemented. I thought I'd searched everywhere (had been searching on Google for hours) but just goes to show how a different search term here and there can make a difference  :-\

For anyone interested, it can be found here:

[url=http://www.zimmertech.com/tutorials/php/25/comment-form-script-tutorial.php]http://www.zimmertech.com/tutorials/php/25/comment-form-script-tutorial.php[/url]

Thanks again  :)

Share this post


Link to post
Share on other sites
How come you just don't make your own? The link that you found is great, but I think it is overly bulky for just a comment section. You could make one yourself that is a lot smaller and faster.

-Chris

Share this post


Link to post
Share on other sites
[quote author=Chappers link=topic=96095.msg391700#msg391700 date=1152062861]
Hi

Thank you both for your replies. As often happens, some time after posting I found a comment script which I then implemented. I thought I'd searched everywhere (had been searching on Google for hours) but just goes to show how a different search term here and there can make a difference  :-\

For anyone interested, it can be found here:

[url=http://www.zimmertech.com/tutorials/php/25/comment-form-script-tutorial.php]http://www.zimmertech.com/tutorials/php/25/comment-form-script-tutorial.php[/url]

Thanks again  :)
[/quote]

Looks pretty good. I'd be interested in getting it to integrate with the logins from my SMF forum so that a user's login would roam all over the site.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.