Search
Left Quote    Every day I get up and look through the Forbes list of the richest people in America. If I
- Robert Orben    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Comment Scripts, display Multiple
  This user is offline  achardrys
  Subject: "Comment Scripts, display Multiple" Posted: @ 11:41 pm on Apr 30 2008   
Member #: 677
Rank: User - (4)
Since: 04/30/08
Posts: 4

My website has a member community part of it, and I want to embed the comment script created by bs0d onto each profile. How I would do that is by using
Code:
<? include("c omment.php" ; ?>

onto it, but I each profile to get one. Each user has their own user_id, and that's what I would like the "comment page id" or whatever you call it, to be.

Is there a code I could add to the
Code:
<? include("c omment.php" ; ?>

like "
Code:
<? include("c omment.php" ; $comment_id=394 2;?>
", something like that?

Thanks!!

Edited at 11:45:53 pm on 04/30/08


    Viewed: 8,128 Times | Reply to This | To top
  This user is offline  achardrys
  Subject: "re: Comment Scripts, display Multip..." Posted: @ 12:04 am on May 01 2008    
Member #: 677
Rank: User - (4)
Since: 04/30/08
Posts: 4

also, it deletes each comment like after 5 minutes or somethin... why?




    Viewed: 8,119 Times | Reply to This | To top
  This user is offline  achardrys
  Subject: "re: Comment Scripts, display Multip..." Posted: @ 12:04 am on May 01 2008    
Member #: 677
Rank: User - (4)
Since: 04/30/08
Posts: 4

Ohh.. now i see, sorry im talking to myself...

It doesn't delete, but it doesn't show if I don't have a ".php&qu ot; extension after it.. because i made the comment on it when it had the extension ".php&qu ot;

is there a way to grab the comments whether the url is "myprofil e.php" or "myprofil e"




    Viewed: 8,116 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Comment Scripts, display Multip..." Posted: @ 12:49 am on May 01 2008    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

You could check if .php is the last 4 characters of the requested URL; and if it's not, add it. Or, if it is, remove it- however you want. Then proceed with your query.

Say you have a members.php script, just include it at the bottom. Comments will be unique to each member because comments are queried based on the URL.




-bs0d | AllSyntax.com

    Viewed: 8,113 Times | Reply to This | To top
  This user is offline  achardrys
  Subject: "re: Comment Scripts, display Multip..." Posted: @ 11:27 pm on May 01 2008    
Member #: 677
Rank: User - (4)
Since: 04/30/08
Posts: 4

Yeah but see I have a community that I want comments for profile pages.
If someone does
www.mydomain.co m/users/achardr ys/
www.mydomain.co m/users/achardr ys/index
www.mydomain.co m/users/achardr ys/index.php
u.mydomain.com/ achardrys/index .php
users/mydomain. com/achardrys/i ndex

and so on, the comments would not display. is there another way I could just put in a Page ID manually in the PHP include?




    Viewed: 8,089 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank