Jump to content

Lamez

Members
  • Posts

    1,686
  • Joined

  • Last visited

    Never

Everything posted by Lamez

  1. ok I am having some trouble with my side column, and top bar. if you click the link below you can see the 1px space between the top and column. Also the div box in the middle that says "Hello" it way to close the side. None of this happened until I added my menu. Also when the menu item is selected I want the background color to stay the same as when you hover over it. How would I do this, I have been working on this for the last hour. Here are some links that will help you help me Current Template w/ Menu: http://lamezz.com/_NEW/ Older Template w/o Menu: http://uploads.lamezz.com/New%20Template (I want my side column and logo header to look like this one) Current CSS w/Menu http://lamezz.com/_NEW/style/default.css Please help me guys on these issues I am really lost at this point. -Thanks, James Little
  2. I did not find what I was looking for, but can you tell me how can I make a button? I was lets say a grey box, with white test, then when you hover over it changes to white, and the font changes to orange, how can I do this. The hover over part. -Thanks Guys!
  3. lol oh yea. Thanks!
  4. TheFilmGod, I understand what you are coming from, if you are still using dial-up get of my site, I know how you feel, I never worry about dial-up users. But seriously, you might want to look at www.servage.net
  5. hey guys, I need some help here. I want a tabbed menu up at the top of my template, by where it says "Lamez's Corner" a little to the right of the R in Corner. Link to template: http://lamezz.com/_NEW/index.html Link to CSS: http://lamezz.com/_NEW/style/default.css I have no idea where to start can anyone help me? Thanks
  6. I am talking the rounder corners for the main content on this website: http://mystickyposts.com/
  7. would I put that in my members page?
  8. here is an off-topic question, but how did you get your rounded corners?
  9. yea in my config.php its ac_users or in my words account users
  10. I only thing I do not like is the red and light grey, that just burns my eyes. If you are going to have bandwidth issues, then take a look at servage.net, here is their only plan for $6.45 a month use coupon code lamez to get 25gbs more.
  11. Lamez

    Side Box

    I know I am having some login troubles my self, its rather annoying, thanks for the help I will give that a shot. here is my login trouble in case you are interested http://www.phpfreaks.com/forums/index.php/topic,156762.0.html
  12. that script was my script to log you in from the users input, or the form action here is the form action url http://lamezz.com/_bin_/login.php here is the form http://lamezz.com/login.php here is the login form code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../style/default.css"/> <?php include ("style/include/title.php"); ?> </head> <script type="text/javascript"> function setFocus(aField) { document.forms[0][aField].focus(); } function isAnEmailAddress(aTextField) { if (document.forms[0][aTextField].value.length<5) { return false; } else if (document.forms[0][aTextField].value.indexOf("@") < 1) { return false; } else if (document.forms[0][aTextField].value.length - document.forms[0][aTextField].value.indexOf("@") < 4) { return false; } else { return true; } } function isEmpty(aTextField) { if ((document.forms[0][aTextField].value.length==0) || (document.forms[0][aTextField].value==null)) { return true; } else { return false; } } function validate() { if (isEmpty("username")) { alert("Please fill your username."); setFocus("username"); return false; } if (isEmpty("password")) { alert("Please fill in your password."); setFocus("password"); return false; } return true; } </script> <body> <div class="logo"><?php include ("style/include/header.php"); ?></div> <div class="spacer"></div> <?php include ("menu/menu.php");; ?> <?php $getlink = $_GET["id"]; if ($getlink == "new_user") { print <<<NEW <div class="box"> <font size="3"><center>Welcome New User!<br>Please sign in for the first time!<center></font> </div> <div class="box"> <p align="center"><font size="4" color="#FFFFFF"><u>Login</u></font></p><br /> <center><form action="_bin_/login.php" method="post" onSubmit="return validate()"> <font size="2">Username: <input type="text" name="username" size="20"><br><br /> Password: <input type="password" name="password" size="20"></font><br> <p align="center"><input type="submit" value="Log In"> <br /> <br> <a href="login.php?id=forgot_password"><font size="3">Forgot Password?</font></a> </p> </form></center> </div> NEW; } elseif ($getlink == "forgot_password") { print <<<FRO <div class="box"> <p><center><font size="4" color="#FFFFFF"><u>Forgot Password</u></font></p><br /> <form action="_bin_/e_mail.php" method="post"> <font size="2"> <p>Username:<br /> <input type="text" name="username" size="20"> <br /> <br> New Password:<br /> <input type="password" name="password" size="20"> <br /> <br> Email:<br /> <input type="text" name="email" size="20"> <br /> <br> <input type="submit" value="Send"> </p> <font size="3"><a href="login.php#">Login!</a> </form> </div> FRO; } elseif ($getlink == "sent") { print <<<SEN <meta http-equiv="refresh" content="6;url=index.php"> <div class="box"> <center> <font size="3">Your forgot password form has been sent.</font><p></p> <font size="3" color="#FF0000">Please Allow 48 hours for your password to be changed!<p></p> <font size="3"><a href="index.php">Return to Home</a></font> </font> </center> </div> SEN; } else { print <<<DEF <div class="box"> <p align="center"><font size="4" color="#FFFFFF"><u>Login</u></font></p><br /> <center><form action="_bin_/login.php" method="post" onSubmit="return validate()"> <font size="2">Username: <input type="text" name="username" size="20"><br><br /> Password: <input type="password" name="password" size="20"></font><br> <p align="center"><input type="submit" value="Log In"> <br /> <br> <a href="login.php?id=forgot_password"><font size="3">Forgot Password?</font></a> </p> </form></center> </div> DEF; } ?> <?php include ("style/include/footer.php"); ?> </body> </html>
  13. nope, man I am tired of this, I am going to go to sleep for a while, thanks though
  14. <?php ob_start(); // <-- move to top ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../style/default.css"/> <?php include ("../style/include/title.php"); ?> </head> <body> <div class="logo"><?php include ("../style/include/header.php"); ?></div> <div class="spacer"></div> <div class="box"><font size="3"><center> <?php ob_start(); include("config.php"); // connect to the mysql server $link = mysql_connect($server, $db_user, $db_pass) or die ("Could not connect to mysql because ".mysql_error()); // select the database mysql_select_db($database) or die ("Could not select database because ".mysql_error()); $match = "select id from $table where username = '".$_POST['username']."' and password = '".$_POST['password']."';"; $qry = mysql_query($match) or die ("Could not match data because ".mysql_error()); $num_rows = mysql_num_rows($qry); if ($num_rows <= 0) { echo "Invalid Username or Password<br>"; echo "<br />"; echo "<a href=../login.php>Try again</a>"; exit; } else { setcookie("loggedin", "".$_POST['username']."", time()+(3600 * 24)); setcookie("username", "".$_POST['username'].""); echo "Welcome <strong>".$_POST['username']."</strong><br>"; echo "<br />"; } ob_end_flush(); ?> Logging In <br /> <img src="../style/img/bar.gif" /> <meta http-equiv="Refresh" content="5; URL=../login/_members/members.php"> </center> </font> </div> <?php include ("../style/include/footer.php"); ?> </body> </html>
  15. are you talking about sharing data? Such as the websites send files to each other by a script? If so look in to databases and such.
  16. My Database is online. I am not sure what the heck is going on. Do you think it could be my login script? Man I am so lost.
  17. I am using sessions from what I understand, is that the same thing as a cookie? Sorry I am a PHP noob still learning.
  18. just make the background of the image the color of the page you are placing it on.
  19. I believe so I think this is what is giving me trouble <?php //makes sure the user is logged in $username = $_COOKIE['loggedin']; if (!isset($_COOKIE['loggedin'])) die("You are not logged in, <a href=../../login.php>click here</a> to login."); echo "<u>Welcome</u> <b>$username</b>"; ?>
  20. When I tried to sign up, I could not see the captcha, so I was unable to signup, I am using FireFox. I am not a professional, but I would check your site in all browsers or most commonly used ones.
  21. I have been trying to fix this annoying script error for hours and nothing is working. This has been working until now. I log in, and it recognizes my username and password and allows me to login, but when I get to the members page it says I am not logged in. The only page I modified is the members page. Here is my member's page script <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../../style/default.css"/> <?php include ("../../style/include/title.php"); ?> </head> <body> <div class="logo"><?php include ("../../style/include/header.php"); ?></div> <div class="spacer"></div> <?php include ("menu/menu.php"); ?> <div class="box"><font size="3"> <center> <?php //makes sure the user is logged in $username = $_COOKIE['loggedin']; if (!isset($_COOKIE['loggedin'])) die("You are not logged in, <a href=../../login.php>click here</a> to login."); echo "<u>Welcome</u> <b>$username</b>"; ?> </center></font></div> <?php $getlink = $_GET["process"]; if ($getlink == "members_list") { print <<<MBL <div class="box"> <p><center><font size="3">Coming Soon!</font></center></p> </div> MBL; } else { //The Main Links print <<<NEW <div class="boxn"> <font size="3"> </u> <div class="left"> <br /> <p><a href="upload/udsection.php">Upload\Download Section</a> <br /> <br /> <a href="proxy/goto.php">Lamez's Proxy</a> <br /> <br /> <a href="arcade/playgame.php">Arcade</a><font color="#FF0000" size="1"><font color="#000000">*</font>Coming Soon!</font></p> </div> <div class="right"> <br /> <p><a href="contact.php">Suggestions\Contact Lamez</a> <br /> <br /> <a href="news/news.php">Website News</a> <br /> <br /> <font color="#FF0000" size="1">Coming Soon!<font color="#000000">*</font></font><a href="lamez/corner.php">Lamez's Corner</a></p> </div> </div> NEW; } ?> <?php include ("../../style/include/footer.php"); ?> </body> </html> You can try it here as USERNAME: test PASSWORD: test http://www.lamezz.com/login.php Please help me guys, thanks again!
  22. Lamez

    Side Box

    Hi guys I am wanting to put a side box on to my CSS sheet, but I am really lost on how about doing this. I want a left side box and a right one. Like a vertical box. Here is my current CSS sheet /* Copytight by James Little */ /* www.lamezz.com */ /* Background */ body { background-image: url('img/bg.gif'); background-repeat: repeat-x; background-color: #0000fa; margin: auto; margin-top: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; width: 550px; } /* Wrapper */ div.wrapper { width: 550px; margin: auto; margin-top: 10px; } /* Logo */ div.logo { color: #FFFFFF; text-align: center; background: url('img/logo.png'); border: 2px solid #41416f; height: 150px; width: 550px; } /* Menu */ div.menu { background: #000000 url('img/menustrip.gif'); text-align: center; width: 551px; height: 31px; padding-top: 5px; border: 1px solid #41416f; } div.menu ul { margin: auto; padding: 0px 2px 2px 2px; list-style-type: none; text-align: center; width: 550px; line-height: 30px; } div.menu a { display: block; color: #ffffff; text-decoration: none; } div.menu li { margin: center; background: url('img/menub.gif') repeat-x; display: block; float: left; width: 100px; padding: 6px 4px 8px 3px; line-height: 14px; text-align: center; margin-right: 2px; } div.menu li:hover { background-image: url('img/linkhover.gif'); } div.menu li.selected { background-image: url('img/linkhover.gif'); color: #FFFFFF; text-decoration: none; } div.menu li.selected:hover { background-image : url('img/linkhover.gif'); } /* spacer */ div.spacer { padding: 3px 0px 3px 0px; } /* Links */ a:link, a:visited, a:active { COLOR: #41416f; text-decoration: none; } a:hover { COLOR: #FFFFFF; text-decoration: underline; } /* headers */ h2 { text-align: left; text-decoration:underline; color: #ffffff; } h3 { text-align: center; color #999999; } h1 { margin-top: 50px; text-align: center; color #999999; } /* Boxes */ div.right { margin: 0px; padding: 0px; float: right; text-align: right; list-style: none; width: 50%; } div.left { margin: 0px; padding: 0px; float: left; text-align: left; list-style: none; width: 50%; } div.boxn { width: 530px; height: 150px; margin-top: 10px; background-color: #000000; padding: 10px; border: 1px solid #41416f; color: #ffffff; } div.boxa { width: 530px; height: 150px; margin-top: 10px; background-color: #000000; padding: 10px; border: 1px solid #41416f; color: #ffffff; } div.box { width: 530px; margin-top: 10px; background-color: #000000; padding: 10px; border: 1px solid #41416f; color: #ffffff; } div.nambox { width: 155px; margin-top: 10px; background-color: #000000; padding-left: 10px; padding: 10px; border: 1px solid #41416f; color: #ffffff; } div.footer { text-align: center; width: 530px; margin-top: 10px; background-color: #000000; padding: 10px; border: 1px solid #41416f; color: #FFFFFF; } /*Colums*/ ul.leftcol { margin: 0px; padding: 0px; float: left; text-align: left; list-style: none; width: 50%; } ul.rightcol { margin: 0px; padding: 0px; float: right; text-align: right; list-style: none; width: 50%; } If you want to see what it looks like now you can view my site here www.lamezz.com/!_index.php login as Username: test Password: test the members page is where I want the box, please help me I am lost.
  23. so are you saying I have to put it on a whole new page?
  24. ok I am the noobie that is asking a lot of questions, but the best way for me to learn is to get hands on. Anyways here is my problem I want to include my logout session in my members page so it would be members.php?process=logout the problem is, its not logging the user out. I get this error here is line 44 and 45 setcookie("loggedin", "TRUE", time()-(3600 * 24)); //logs the uer out setcookie("$username"); here is whole code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../../style/default.css"/> <?php include ("../../style/include/title.php"); ?> </head> <body> <div class="logo"><?php include ("../../style/include/header.php"); ?></div> <div class="spacer"></div> <?php include ("menu/menu.php"); ?> <div class="box"><font size="3"> <center> <?php $username = $_COOKIE['loggedin']; if (!isset($_COOKIE['loggedin'])) die("You are not logged in, <a href=../../login.php>click here</a> to login."); //add meta redirect here echo "<u>Welcome</> <b>$username</b>"; ?> </center></font></div> <?php $getlink = $_GET["process"]; if ($getlink == "members_list") { print <<<MBL <div class="box"> <p><center><font size="3">Coming Soon</font></center></p> </div> MBL; } elseif ($getlink == "logout") { setcookie("loggedin", "TRUE", time()-(3600 * 24)); //logs the uer out setcookie("$username"); print <<<LOG <meta http-equiv="Refresh" content="5; URL=../../index.php"> <div class="box"> <center><font size="3">You are logged out.</font></center> </div> LOG; } else { //The Main Links print <<<NEW </u> <div class="boxn"> <font size="3"> </u> <div class="left"> <br /> <br /> <p><a href="upload/udsection.php">Upload\Download Section</a> <br /> <br /> <a href="proxy/goto.php">Lamez's Proxy</a> <br /> <br /> <a href="arcade/playgame.php">Arcade</a><font color="#FF0000" size="1"><font color="#000000">*</font>Coming Soon!</font></p> </div> <div class="right"> <br /> <br /> <p><a href="contact.php">Suggestions\Contact Lamez</a> <br /> <br /> <a href="news/news.php">Website News</a> <br /> <br /> <font color="#FF0000" size="1">Coming Soon!<font color="#000000">*</font></font><a href="lamez/corner.php">Lamez's Corner</a></p> </div> </div> NEW; } ?> <?php include ("../../style/include/footer.php"); ?> </body> </html> what am I doing wrong? I Please Help! Thanks Guys!
  25. wow that space fixed it all. Thanks Guys!
×
×
  • 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.