Jump to content


how do i do this?


7 replies to this topic

#1 hammer

    Young Padawan

  • Members
  • Pip
  • 105 posts
  • Location:Sweden ,MF! =D
  • Interests:gay porno,gay porno,OMG LOL what i just wrote =D

Posted 22 May 2005 - 05:45 AM

hi again.

It's like this: I want people to be able to comment the tutorial(s) so i'm making a special area on my site for that (like a box under the site).So now i'm asking for some kind of code that will make people able to comment the tutorials and also be able to view other visitors comments.What i mean is that when a visitor posts a comment it will emidiately (or after a wile) show up in the "comments area"...hope you understand,just ask if i'm not clear enough lol

(really sorry for my sucky english :))

thnx in advance

//jake

#2 hammer

    Young Padawan

  • Members
  • Pip
  • 105 posts
  • Location:Sweden ,MF! =D
  • Interests:gay porno,gay porno,OMG LOL what i just wrote =D

Posted 22 May 2005 - 07:48 AM

common i really need this,i know that there are many good coders in here

#3 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 22 May 2005 - 07:49 AM

Have you already checked the P2L php tutorials?
I've found something a while ago that does what you want.. But didn't bookmarked it...

#4 Stu

    Retired P2L Staff

  • Publishing Betazoids
  • PipPipPipPip
  • 1,761 posts
  • Gender:Male

Posted 22 May 2005 - 08:16 AM

i think you ll need something that works in the same way as a guestbook? i suppose the theory behind it would be enter the info from the fields into your database then retrieve it and output it onto your page.
you might be able to do it yourself if you manage to find a tutorial.
if not try www.hotscripts.com and search for a comments script or guestbook and then just change it about to suit your needs?

dont take my word for it though lol... im no expert when it comes to this kind of thing :D

Edit: just realised this is about 4 months old, do people come back and check? :D

#5 fiv3isaliv3

    Young Padawan

  • Members
  • Pip
  • 258 posts
  • Gender:Male

Posted 22 May 2005 - 01:04 PM

someone asked me to do a tutorial on commenting. i'll most likely post one to my site today and then submit it to p2l.

#6 hammer

    Young Padawan

  • Members
  • Pip
  • 105 posts
  • Location:Sweden ,MF! =D
  • Interests:gay porno,gay porno,OMG LOL what i just wrote =D

Posted 23 May 2005 - 07:57 AM

lol it's probably just me that was to tired to set the date,posted it on may 22th
:D

#7 iPixel

    Young Padawan

  • Members
  • Pip
  • 18 posts

Posted 23 May 2005 - 11:22 AM

Assuming your tutorials have some sort of ID that will make it differ from all others they best way to do this comment thing is to have a nother table .. like so :

tutID | comment | cID
=================
23 | Sweet Tut.. | 1

and your tuts can simply pull the comments based on tutID :lol:

#8 fiv3isaliv3

    Young Padawan

  • Members
  • Pip
  • 258 posts
  • Gender:Male

Posted 23 May 2005 - 04:48 PM

the way i do commenting for my site since i have many pages which allow for commenting on different articles (news, tutorials, shoutbox etc) i setup my commenting table in such a way that i didn't need multiple tables for commenting on different things.

the table includes three important things, id, article_id and type. the id is the id of the comment, the article_id is the id the comment is tied to while the type is what the type of comment it is, such as a news comment or tutorial comment. this helps if a news article and tutorial article have the same id in that i can specify in the query "SELECT * FROM comments WHERE article_id='$id' AND type='$type'" this allows me to not accidently display the tutorial AND news comments on the same page.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users