Jump to content

Averice

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Everything posted by Averice

  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.
  12. i was talking about the "entering no information in the login boxes and getting logged in" thing.. it doesnt work like that.. even when i dont type information it doesnt let me log in so i dont see how it would be any different for u. and i did see the spam in my database with all the usernames like Fucker Fuck asshole yourabitch fucker.. some nice accounts u made there... shows some maturity doesnt it?
  13. Sorry if my little knowledge of php is starting to get annoying but. i've created a comment system which puts a comment box in each persons profile as they register on my website. but say if i put a comment in user no.1's profile.. it shows up in every comment box in every profile. how would i fix this? Thanks. Averice
  14. Thanks for the feedback, ill keep working on it. and about the login system, i dont see any flaw? i just pressed it without entering information and this came up But thanks everyone. your input is much appreciated.
  15. The Games Page! It's still a little under-construction. This website is build for the Clan Community. Where clans or even just players and people looking for clans can come and Discuss about various games out there. {removed a pitch for new members - please read the posting guidelines} Thank you for your time. Averice
  16. it works now, thank you to everyone who replied your help is muchly appreciated. Now, onto another question (very sorry, im really new to php) How would i make a comment system from scratch to go in the profiles. can anyone link me to a tutorial? or post a tutorial? and, if its possible to make it like.. (USER NUMBER 1's profile) --------- (PERSON POSTS IN UNSER NUMBER 1's PROFILE) | (PERSONS POST SHOWS UP IN USER NUMBER 1's PROFILE ONLY) (USER NUMBER 2's profile) --------- (PERSON POSTS IN UNSER NUMBER 2's PROFILE) | (PERSONS POST SHOWS UP IN USER NUMBER 2's PROFILE ONLY) sorry bout the bad diagram hehe. basically like a different comment box for each profile that shows only messages that were posted while in that persons profile. and if its possible for that to be run off a single table or maybe 2. if you can't understand what i mean ill try to explain it more. Thank you.
  17. yes the code works... but the url isnt putting the $id in it so i just get a blank page... if i type the id in manually i.e. "1" it will show up the way i want it.. but i want the url to automatically get the id of the persons name i clicked.
  18. Sorry, i dont mean to be a pain but, how would i do that... when i click the name the url shows as index.php?page=mem/memprof&id= <--- if i type 1 in there.. it comes up with the person whos id is number 1's information... but im unsure as to how i set it to get that persons id by itself. Thanks for your help.
  19. Hey, I've searched google for the last week looking for something to help me create a Member Profile page that is viewable by other members of the site, i have just the basic register and login stuff which is all working propoerly, I would just like to know if someone would be able to post the code to put on the Member profile page. i have each registered members name linked to index.php?page=mem/memprof&id=$id i have registration generating Unique ids.. i'm only new to the whole web-developeing thing so if there is more information that u request to be able to help me out please leave a reply. Any help is much appreciated. Thank you for reading. EDIT: didnt type the link for the members properly. fixed now
×
×
  • 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.