Jump to content

Droid

Rookie
  • Posts

    13
  • Joined

  • Last visited

Droid's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. I'm not a big fan of the skin, but cool.
  2. 86 as you can see #category_86:after & #category_86.category_block Image: http://prntscr.com/4wzgfo
  3. I'm using IP.Board (Just not for my community, for a friends) It simply isn't working. Screenshot: http://prntscr.com/4wzflw Code: <if test="$cat_data['id'] = 1"> <php>$groups = array(5, 11, 2, 9, 7, 3, 1);</php> <if test="in_array($this->memberData['member_group_id'], $groups)"> <style type='text/css'> #category_86.category_block { position: relative; } #category_86:after { content: "Donators Only"; background: url("http://i.imgur.com/owF8hud.png") repeat; background: rgba(255, 255, 255, 0.8); position: absolute; top: 0; left: 0; right: 0; bottom: 0; font-size: 30px; line-height: 350px; text-align: center; z-index: 10; cursor: normal; } </style> </if></if>
  4. I've followed this tutorial, but it seems that it doesn't work correctly, would anyone beable to create a updated version for the most recent version of IP.Board (Not IPB4) as far as i'm aware its 3.4(or 5).7.
  5. I've fixed the issue from it being ignored, but now i have a new issue its related to the actual information.... When you input incorrect information it gives the error stated in the code, BUT when you give correct information it reloads the page and ignores the data (I've added the PHP) <?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_DATABASE', 'ajax_login'); $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); session_start(); if(isSet($_POST['login-uid']) && isSet($_POST['login-pwd'])) { $username = mysqli_real_escape_string($db,$_POST['login-uid']); $password = mysqli_real_escape_string($db, hash('whirlpool',$_POST['login-pwd'])); $result = mysqli_query($db, "SELECT uid FROM users WHERE AccountName='$username' and AccountPassword='$password'"); $count = mysqli_num_rows($result); $row=mysqli_fetch_array($result,MYSQLI_ASSOC); if($count == 1) { $_SESSION['AccountUID'] - $row['uid']; echo $row['uid']; } } ?> <!DOCTYPE html> <html class="bg-black"> <head> <meta charset="UTF-8"> <title>Account Management</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <link href="css/AdminLTE.css" rel="stylesheet" type="text/css" /> <script src="js/jquery.ui.shake.js"></script> <script src="js/bootstrap.min.js" type="text/javascript"></script> <script src="js/jquery-2.1.1.js" type="text/javascript"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> <script> $( document ).ready(function() { $( "#login_con" ).click(function( event ) { var UsernameString = $("#LoginUsername").val(); var PasswordString = $("#LoginPassword").val(); var FinalString = 'username='+UsernameString+'&password='+PasswordString; if($.trim(UsernameString).length > 0 && $.trim(PasswordString).length > 0) { $.ajax( { type: "POST", url: "ajaxlogin.php", data: FinalString, cache: false, beforeSend: function() { $('#login_con').val('Processing....');}, success: function(data) { if(data) { alert("Testing"); } else { alert("Incorrect information"); } } }); } else { } }); }); </script> </head> <body class="bg-black"> <!-- <div class="form-box" id="login-box"> <div class="header">Sign In</div> <form> <div class="body bg-gray"> <div class="form-group"> <input type="text" name="login-uid" class="form-control" placeholder="Account Name" id="accountname"/> </div> <div class="form-group"> <input type="password" name="login-pwd" class="form-control" placeholder="Password" id="accountpassword"/> </div> </div> <div class="footer"> <button class="btn bg-olive btn-block" id="login_con"><< Continue >></button> <a href="">Forgotten Passwords?</a><br> <a href="register.html" class="text-center">Register a new membership</a> </div> </form> <div class="margin text-center"> <span>Sign in using social networks</span> <br/> <button id="Buttons_F" class="btn bg-light-blue btn-circle"><i class="fa fa-facebook"></i></button> <button id="Buttons_T" class="btn bg-aqua btn-circle"><i class="fa fa-twitter"></i></button> <button id="Buttons_G+" class="btn bg-red btn-circle"><i class="fa fa-google-plus"></i></button> </div> </div> --> <div class="form-box" id="box"> <div class="header">Account Management</div> <form action="" method="post"> <div class="body bg-gray"> <div class="form-group"> <input type="text" class="form-control" placeholder="Username" id="LoginUsername"/> </div> <div class="form-group"> <input type="password" class="form-control" placeholder="Password" id="LoginPassword"/> </div> </div> <div class="footer"> <button class="btn bg-olive btn-block" id="login_con"><< Continue >></button> </div> </form> </div> </body> </html>
  6. Depends on your preference, you get get loads of decent laptops geared toward gaming that are priced reasonably. My personal opinion is get a desktop, it may not be 'AS' portable but atleast you can upgrade them.
  7. all i can say is "I'm Droid"
×
×
  • Create New...