View Full Version : Help:Adding user comments
ErikvD
05-05-2003, 05:55 PM
I've allready asked this questions before, but I was stupid enough to ask it in the client-side forum.
I want the visitors to be able to add their own comments on the bottom of each article. I believe this has to be done in php, but I can't find any clue to how it's done.
Does anyone have a clue for me or a link to a good tutorial/script?
Thanks
Mhtml
05-07-2003, 12:24 PM
Well firstly this woudn't be really hard to create at all! I suggest that you head to google and have a looky for php+MySQL™ tutorials!
Once you've done that you'll need to find out if your webhost even supports PHP, your script wouldn't have to be written in PHP...But you may as well..
There alternative languages such as CGI/Perl, ASP, ASP.NET or Python.
ErikvD
05-07-2003, 11:14 PM
After some trial and error I've been able to make some progress.
Story so far:
- Now users can click on a link that opens a popup with a form.
- The form adds the content to a database
- The popup can be closed
- The user comments are at the bottom of the article
But still two tiny little problems: 1- They have to refresh the page with the article before they can see the comment they just added.
How can I make it so that as soon as they submit the form, the page with the article is automaticly refreshed?
2- When they enter a longer text with blank lines in between the paragraphs the output is on big block of text, how can I change that?
P.s. I'm just starting with php, but allready I'm hooked!
ErikvD
05-08-2003, 12:19 AM
Problems solved.
Thanks you guys!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.