Jump to content

ShaneW1992

New Members
  • Posts

    6
  • Joined

  • Last visited

ShaneW1992's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry for opening this back up, not a problem, just wanting a little further advice if possible to make sure I understand when & where to use different methods I have another site that I'm working on (http://gamer-cafe.net/), for that I use the other method of; position: absolute; left: ____; margin-left: ___; z-index: ___; Would using the margin: 0 auto; and floating elements accordingly benefit me better here for a cleaner layout, or would the current method be better for me this time around?
  2. Ahh, thanks! I'll have to read your tutorial, expand my knowledge a little bit I've changed everything to inside one container, and floated them accordingly (probably a little messy still, but it was definitely easier). Now I'm having issues with centring the header image. I can center it inside the container <div>, but outside inside its own <div> the margin: 0 auto; doesn't work. Nor does align="center" when I removed it from the <div> EDIT: Never-mind, got it centered now! Thanks so much for the help, and tips
  3. Can you use z-index with margin: 0 auto;? Or would you float the element inside the main content instead? Sorry, I'm used to doing it the way you've spotted aha
  4. Hello there, I'm updating my mothers site for her business and I think I'm going to run into a problem. I use nVidia surround to span my desktop across all three monitors (5030x900), so I'm fine with the current layout as long the the users resolution is > 1600x900 (or a tad lower). But I'm not sure how it looks so far at, say, 1024x768 (http://gamer-cafe.net/juliesjungle/index.html) without disabling two of my monitors in order to change my resolution to a single screen every time I wish to check how the layout fits to a lower resolution. Is there a Javascript/CSS solution to this if it is a problem?
  5. Thank you so much! I believe I was just missing the colon from each. I thought session.php is where it gets the variables etc. Was worth mentioning, I didn't get the original script as it is old and not secure, so I wasn't sure if it was calling the wrong variable for the logged in users or not.
  6. Hi there, I'm using Jmemeber77's user script (updated by another source for better security) over at http://gamer-cafe.net/ and I'm having a little trouble. I would like to show the log in area to guests; <form action="process.php" method="POST"> <p class="Loginform">Username:<input type="text" name="user" maxlength="15" value="<?php echo $form->value("user"); ?>"><?php echo $form->error("user"); ?> &nbsp&nbsp&nbsp&nbsp&nbsp Password:<input type="password" name="pass" maxlength="15" value="<?php echo $form->value("pass"); ?>"><?php echo $form->error("pass"); ?> &nbsp&nbsp&nbsp <input type="hidden" name="sublogin" value="1"> <input type="submit" value="Login" style="position: absolute; left: -9999px; width: 1px; height: 1px;"> <input type="checkbox" name="remember" <?php if($form->value("remember") != ""){ echo "checked"; } ?>> <a href="forgotpass.php">Forgot Password?</a></p> </form> then, once a users credentials are established and logged in, remove it and replace it with; <?php /** * User has already logged in, so display relavent links, including * a link to the admin center if the user is an administrator. */ if($session->logged_in){ echo "<h1>Logged In</h1>"; echo "Welcome <b>$session->username</b>, you are logged in. <br><br>" ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] " ."[<a href=\"useredit.php\">Edit Account</a>] "; if($session->isAdmin()){ echo "[<a href=\"admin/index.php\">Admin Center</a>] "; } echo "[<a href=\"process.php\">Logout</a>]"; } else ?> I know that's using echo, but I would like to use the system; <?php if ($session->logged_in) ?> /* Content for logged in users */ <?php else ?> /* Content for guests */ Which I had set-up previously for my user management, but when I use it with this, it gives me an unexpected error (or it displays the site content twice). I have skimmed through Session.php (http://ideone.com/FkxVfH) but I'm not really sure what to use. What am I doing wrong?
×
×
  • 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.