Jump to content

Add comment script


Chappers

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
Link to comment
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...
Link to comment
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]
Link to comment
Share on other sites

  • 3 weeks later...
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  :)
Link to comment
Share on other sites

  • 1 month later...
[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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.