how to add css in login.php

Started by Spidey, March 23, 2014, 09:50:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cm27

#5
if you want to add cs to your login grab the login page and look over your template and you will see the div with class.. if you have an idea post it and I will do my best to help you.

Take a look here for example

Code (php) Select
<?php
/***************************************************************************************
****************************************************************************************
**** TheCode BitTorrent Tracker PHP   **************************************************
**** by DEViL69   **********************************************************************
**** (c) 2012 - 2013 TheCode  **********************************************************
****  A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon/u-232. *******
**** https://github.com/DEViL69  *******************************************************
**** Licence Info: GPL  ****************************************************************
**** $Date: 2012-9-3  ******************************************************************
**** $Revision$ TheCode V1.0  **********************************************************
**** $Author: TheCode  *****************************************************************
****************************************************************************************
****************************************************************************************/
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
require_once(
INCL_DIR.'user_functions.php');
//require_once(CLASS_DIR.'page_verify.php');
dbconn();
global 
$CURUSER;
if(!
$CURUSER){
get_template();
}

ini_set('session.use_trans_sid''0');
$stdhead = array(/** include js **/'js' => array('jquery'));
$lang array_mergeload_language('global'), load_language('login') );
//$newpage = new page_verify(); 
//$newpage->create('takelogin');
  
$left='';
  
//== 09 failed logins
function left ()
{
global $sourcecode;
$total 0;
$ip sqlesc(getip());
$fail sql_query("SELECT SUM(attempts) FROM failedlogins WHERE ip={$ip}") or sqlerr(__FILE____LINE__);
list($total) = mysqli_fetch_row($fail);
$left $sourcecode['failedlogins'] - $total;
if ($left <= 2)
$left "<font color='red' size='4'>{$left}</font>";
else
$left "<font color='green' size='4'>{$left}</font>";
return $left;
}
//== End Failed logins

$title $sourcecode['site_name'];

    
$HTMLOUT '';

    unset(
$returnto);
    if (!empty(
$_GET["returnto"])) {
      
$returnto htmlspecialchars($_GET["returnto"]);
}
    
$HTMLOUT .= "<!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 name=\"google\" content=\"notranslate\"/>
        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE8\" >
        <meta http-equiv=\"Cache-Control\" content=\"no-store\"/>
        <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
        <meta http-equiv=\"Pragma\" content=\"no-cache\"/>
        <meta http-equiv=\"Expires\" content=\"0\"/>
<link rel=\"stylesheet\" href=\"/login.css\" type=\"text/css\">
<title>
{$title} :: Login</title>

</head>
<body>
</head>

<body>
<table width=\"100%\" cellspacing=\"0\" cellpadding=\"15\" class=\"table-login\" border=\"0\">
  <tr>
    <td>
      <table width=\"634\" align=\"center\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\">
            <form name=\"LoginForm\" method=\"post\" action=\"takelogin.php\"><tr>

                <td><input name=\"username\" type=\"text\" class=\"tb\"   OnClick=\"document.LoginForm.username.value ='';\"/></td>
                <td><input name=\"password\" type=\"password\" class=\"tb\"   OnClick=\"document.LoginForm.password.value ='';\"/></td>
                <td><input  class=\"tb\" type=\"image\" name=\"submit\" src=\"pic/login/login.png\" /></td>
          </tr></form>
          </table>
    </td>
  </tr>
</table>
<div class=\"forgot-password\"> </div>

</body>
</html>
</form>
"
;
    if (isset(
$returnto))
    
$HTMLOUT .= "<input type='hidden' name='returnto' value='" htmlentities($returnto) . "' />\n";
    
$HTMLOUT .= "</form>
"
;

echo 
$HTMLOUT stdfoot();



See this part here <link rel=\"stylesheet\" href=\"/login.css\" type=\"text/css\">   <<< this is what you will need to add . something like that once you get your CSS page done.
Never fall to those that just sit there.. Always look for the way to the top even if you have to code it your self and mistakes and all... quote from BonZO...

BamBam0077

was just a quick example bud.  :)
"When Darkness Shadows Your Doubts, Deep Within Us Is Our Key, Not Success But Everything" ~ Anonymous

RogueSurfer

Question for ya BamBam, why are you adding html5 to a Xhmtl validated source code. Confusion :) :) Not questioning the code just reason behind html5.
Quote from: BamBam0077 on March 27, 2014, 03:51:11 PM
<!doctype html>
<html lang='en'>
<head>
<title> {$INSTALLER09['site_name']} | Login </title>
<!-- Meta Tags Go Here -->
<link rel='stylesheet' href='./login.css' type='text/css' />
<!-- JQuery Go Here -->
</head>
<body>
<input placeholder='Enter Username' type='text' size='40' />
<input  placeholder='Enter Password' type='password' size='40' />
<buton>Demo</button>
</body>
</html>

Sorry, I do not have IM, facebook or twitter accounts.

BamBam0077

<!doctype html>
<html lang='en'>
<head>
<title> {$INSTALLER09['site_name']} | Login </title>
<!-- Meta Tags Go Here -->
<link rel='stylesheet' href='./login.css' type='text/css' />
<!-- JQuery Go Here -->
</head>
<body>
<input placeholder='Enter Username' type='text' size='40' />
<input  placeholder='Enter Password' type='password' size='40' />
<buton>Demo</button>
</body>
</html>
"When Darkness Shadows Your Doubts, Deep Within Us Is Our Key, Not Success But Everything" ~ Anonymous

Spidey

hi how to how to add css in login.php i create simple login theme and i wanna  add it pleas tell me how :D