Jump to content

Averice

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Averice's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok, its slowly coming together. this is all i need. (its only the right hand bar on the profile section thats not working properly. i need the "User Bar" in the profile to be up higher <--------- for internet explorer i need a substitute for "overflow:auto; <------ for opera and firefox.. well.. firefox works perfect on my site
  2. ok the nave bar isnt screwed anymore.. but when a user registers and they go to there profile while logged in some of the stuff is down the bottom and i have no idea how to fix it.. i have no "breaks" <br /> in my website so its not that.. everything is lined up with this @chatset "utf=8"; /*CSS Doc */ body { margin:0px auto; width:1000px; background:#000000; font-size:11px; color:#FFFFFF; font-family:Tahoma; font-weight:bold; } img{border:none;} ima a{border:none;} .blue{color:#0C77ED;} a, a:active, a:visited{text-decoration:none; color:#FFFFFF;} #container { width:1000px; margin:0px auto; background:#000000; float:left; } #header { width:1000px; height:120px; background:url(images/logofull.png) no-repeat #000000;; } #nav { width:960px; height:39px; font-size:16px; font-weight:bold; font-variant:small-caps } #content_wrap { width:954px; padding:3px; background:#000000; } #left { width:200px; float:left; } .box_wrap { width:200px; } .box_head { width:190px; height:17px; background:url(images/box_top.jpg) no-repeat; padding:5px; color:#00FF00; font-weight:bold; font-variant:small-caps; font-size:14px; } .box_content_normal { width:190px; background:#000000; padding:5px; text-align:center; } .box_foot { width:190px; height:1px; background:url(images/box_foot.jpg) no-repeat; padding:5px; text-align:right; } .box_content { width:196px; height:13px; background:url(images/box_content.jpg) no-repeat; padding:2px; } .box_content1 { width:196px; height:13px; background:url(images/box_content.jpg) no-repeat; padding:2px; float:left; } #content { width:500px; margin-left:25px; margin-right:10px; float:left; } #middle { width:500px; height:130px; float:left; } #middle_title { width:500px; height:27px; background:url(images/middle_head.jpg) no-repeat; color:#00FF00; font-weight:bold; font-variant:small-caps; font-size:14px; } #middle_content { width:480px; height:83px; padding:10px; text-align:center; } #right { width:200px; float:right; } .news { width:500px; float:left; } .news__head { width:500px; height:27px; background:url(images/news_head.jpg) no-repeat; } .news_image { width:480px; height:56px; text-align:center; padding:10px; } .news_content { width:480px; padding:10px; text-align:justify; background:#000000; border:solid thin #00FF00; }
  3. setting the position in every class and id? like #header and .box_content? all of them? thanks for your reply
  4. Hey, im not sure if this is html or css. My website works the way i want it with IE.6 but with firefox and higher versions of IE everything overlaps... like im not sure how to explain it... Say this is my menu/comment box or w/e: "Header picture goes here" fdgsdfgsdfgsdfg sfdgsdgfsdfgsdfg dsfgdsfgsdfgsdfg dsfgsdfgdsfgsdfg all my text ends up going into the header picture.. www.thegamespage.net is my website. Thanks, Averice
  5. I'm not much of a web creator myself seeing as im only new, but im not sure if there is really much to critique because ur using CMS/PORTAL. Good luck with your site mate. Thanks. Averice
  6. Thanks for your help everyone. its much appreciated
  7. ok well. i didn't wanna post my code because i know its probably all wrong. i will probably get flamed about "security risks" and other stuff, yea its good that your pointing out stuff to me but i think my code might be like really bad so i dont know if u guys will laught at it/flame at it or help me with it that is why i was scared to post my code. but seeing as i got no other option if i want this to work ill have to show u my code. This is my code where the person inputs there comment. <?php session_start(); include ("connect.php"); if (isset($_SESSION['username'])) { include ("component.php"); } else { die("You are not logged in"); header("Location: index.php"); } ?> <div id="right"> <div class="box_wrap"> <div class="box_head"><span style="color:#00FF00;">Post</span></div> <div class="box_foot"> <center> <form method="post" action="index.php?page=regiscom"> <table width='198' border='0' cellspacing='0' cellpadding='0'> <tr> <th align='left' colspan="2" scope="col">Comment</th> </tr> <tr> <th align='left' width="150" scope="row">Post:</th> <td align='left'><input width="100px" name="com" type="text" id="com" /></td> </tr> <tr> <th align='left' scope="row"></th> <td align='left'><input name="username" type="hidden" id="username" values="$user" /></td> </tr> <tr> <th align='left' scope="row"></th> <td align='left'><input name="userid" type="hidden" id="userid" values="<?php $_GET[username]; ?>" /> <tr> <th align='left' colspan="2" scope="row"><input name="reg" type="submit" id="reg" value="Post" /> <input type="reset" name="Reset" value="Clear" /></th> </tr> </table> </form> </center> This is the code where the comment input posts to mysql <div id="content"> <div id="middle"> <div id="middle_title"><span style="color:#00FF00;">Posting....</span></div> <div-id="middle_content"> <center> <table width="500" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th scope="col"><?php $comment=$_POST['com']; $userid=$_POST['userid']; $id = mysql_insert_id(); $SQL = "INSERT into comdb (userid, id, username, comment) VALUES ('$userid','$id','$user','$comment')"; mysql_query($SQL) or die("could not Post Comment"); print "<center>"; print "posting successful.<br>"; print "Click here to <A href='index.php'>Home</a>"; ?></th> </tr> </table> </center> </div> </div> This is the code that shows the Comments in the profile <div id="right"> <div class="box_wrap"> <div class="box_head"><span style="color:#00FF00;">Comments</span></div> <div class="box_foot"> <div style=" width:198px; height:280px; overflow:auto;"> <table width="198" height="400" scrolling="yes"> <tr> <td><?php $query = "SELECT * FROM comdb WHERE userid = '$username $_GET[id]' ORDER BY id DESC"; $doquery = mysql_query($query); while ($data = mysql_fetch_array($doquery)) { echo "<center>Poster: <a href=index.php?page=member/meminfo&id=$data[username]>$data[username]</a><br> Comment: $data[comment]<BR></center>"; } ?></td> </tr> </table> </div> </div> </div> <br> Its probably all wrong and to far to be fixed.. but hey atleast ill find out now or never eh?
  8. My Table Has: Userid <--- i want to fill this with the name of the persons profile in which they are viewing aka www.thegamespage.net/index.php?page=member/meminfo&id=Averice id <--- unique id for the comments made. (so i can order them from latest to earliest) Username <--- posts the username of the person who posted the comment Comment <---- the comment of the person. the comment box shows as Poster: Username <--- name of the person who submitted the comment. <---- works fine right now Comment: <--- the comment of the person. <--- works i want it as if somebody was viewing My Profile. and they decided to leave a comment. the comment they posted while viewing my profile would only be displayed in my profile. Whilst if somebody posted in www.thegamespage.net/index.php?page=member/meminfo&id=Danglies profile. the comment they posted while viewing Danglies profile would only be visible viewing Danglies profile.
  9. wait. forget the: $query = "SELECT * FROM comments WHERE user = '$_GET[user]'"; $doquery = mysql_query($query); -----SOME string thing here------------ $something = $_POST[user] $comment = $_POST[usercomment] $SQL = "INSERT * INTO comments (user, comment, posterid) VALUES ('$something','$comment','$username')"; $result = mysql_query($SQL)or die("fdgdsfgfdsG"); i relized its not in the comments table to be able to pull it out T_T back to my question. I would like to know, how do i get the username from the: www.mysite.com/profile.php?user=bollox i.e. bollox is ther username i want. how do i get that username. to be inserted into the userid section of my table so that only comments made whilest viewing that persons profile will be visible only on that persons profile. im not sure if the way to do this was in jaymc's code.. the code i got from jaymc works fine. except, there is no userid to select the comments from. thus every comment made still shows up in every profile comment box.
  10. yes, i get it (sorta ^^). But how do i put the username from the URL into the table? would it be: $query = "SELECT * FROM comments WHERE user = '$_GET[user]'"; $doquery = mysql_query($query); -----SOME string thing here------------ $something = $_POST[user] $comment = $_POST[usercomment] $SQL = "INSERT * INTO comments (user, comment, posterid) VALUES ('$something','$comment','$username')"; $result = mysql_query($SQL)or die("fdgdsfgfdsG"); yer i think i know but i dont think i kno, try not to laugh if that code is way off
  11. my "postcomment" form posts the Posterid and the Comment... i need to know the code to post the Username of the persons profile i am viewing.. say i am viewing the Profile of Averice how do i get the name of the persons profile im viewing (averice) to be posted into the Userid section of my table. also how would i order all the comments in the table to post only the comments where the userid matches the users profile i am viewing. Thanks. (EDIT): yea im using php and mysql.
×
×
  • 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.