Jump to content


Photo

Add comment script


  • Please log in to reply
5 replies to this topic

#1 Chappers

Chappers
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts

Posted 16 June 2006 - 10:01 PM

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

#2 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 16 June 2006 - 10:12 PM

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...
z..z..z..z..z..z..z..z..

#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 17 June 2006 - 02:23 AM

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]
Legend has it that reading the manual never killed anyone.
My site

#4 Chappers

Chappers
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts

Posted 05 July 2006 - 01:27 AM

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:

http://www.zimmertec...pt-tutorial.php

Thanks again  :)

#5 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 05 July 2006 - 02:01 AM

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

#6 Spork

Spork
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 09 August 2006 - 10:41 AM

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:

http://www.zimmertec...pt-tutorial.php

Thanks again  :)


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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users