| View previous topic :: View next topic |
| Author |
Message |
andyb Regular


Joined: Aug 09, 2011 Posts: 11 Location: Tamworth, UK
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 782
|
|
| Back to top |
|
 |
RobvanderWel Newbie


Joined: Jul 26, 2011 Posts: 9 Location: Nederland
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 782
|
|
| Back to top |
|
 |
RobvanderWel Newbie


Joined: Jul 26, 2011 Posts: 9 Location: Nederland
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 782
|
|
| Back to top |
|
 |
RobvanderWel Newbie


Joined: Jul 26, 2011 Posts: 9 Location: Nederland
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 782
|
Posted: Tue Aug 30, 2011 6:16 pm Post subject: |
|
|
Here is the css
Code:#topnav {
padding:10px 25px 12px;
font-size:11px;
line-height:23px;
text-align:right;
color: #fff;
}
#topnav a.signin {
background:#88bbd4;
padding:4px 6px 6px;
text-decoration:none;
font-weight:bold;
color:#fff;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
#topnav a.signin:hover {
background:#59B;
}
#topnav a.signin, #topnav a.signin:hover {
*background-position:0 3px!important;
}
a.signin {
position:relative;
margin-left:3px;
}
a.signin span {
background-position:100% 50%;
padding:4px 16px 6px 0;
}
a.acc span {
background-position:100% 50%;
padding:4px 16px 6px 0;
}
#topnav a.menu-open {
background:#ddeef6!important;
color:#666!important;
outline:none;
}
#small_signup {
display:inline;
float:none;
line-height:23px;
margin:25px 0 0;
width:170px;
}
a.signin.menu-open span {
color:#789;
}
#logout{
background:#88bbd4;
padding:4px 6px 6px;
text-decoration:none;
font-weight:bold;
color:#fff;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
#logout:hover {
background:#59B;
}
#signin_menu {
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
display:none;
background-color:#ddeef6;
position:absolute;
top:85px;
right:23px;
width:210px;
z-index:100;
border:1px transparent;
text-align:left;
padding:10px;
margin-left:-8px;
*margin-left:-15px;
margin-top:5px;
color:#789;
font-size:11px;
}
#signin_menu input[type=text], #signin_menu input[type=password] {
display:block;
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius:4px;
border:1px solid #ACE;
font-size:13px;
margin:0 0 5px;
padding:5px;
width:203px;
color: #666;
background-color : #fff;
}
#signin_menu p {
margin:0;
}
#signin_menu a {
color:#6AC;
}
#signin_menu label {
font-weight:normal;
}
#signin_menu p.remember {
padding:10px 0;
}
#signin_menu p.forgot, #signin_menu p.complete {
clear:both;
margin:5px 0;
}
#signin_menu p a {
color:#27B!important;
}
#signin_submit {
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius:4px;
background:#39d;
border:1px solid #39D;
color:#fff;
text-shadow:0 -1px 0 #39d;
padding:4px 10px 5px;
font-size:11px;
margin:0 5px 0 0;
font-weight:bold;
}
#signin_submit::-moz-focus-inner {
padding:0;
border:0;
}
#signin_submit:hover, #signin_submit:focus {
background-position:0 -5px;
cursor:pointer;
}
.hidden
{
display: none;
}
|
And here is the theme.php function themeheader code
Code:cookiedecode($user);
$username = $cookie[1];
if ($username == "")
$username = "Anonymous";
echo "<body>";
echo'<script type="text/javascript">
$(document).ready(function() {
$(".signin").click(function(e) {
e.preventDefault();
$("fieldset#signin_menu").toggle();
$(".signin").toggleClass("menu-open");
});
$("fieldset#signin_menu").mouseup(function() {
return false
});
$(document).mouseup(function(e) {
if($(e.target).parent("a.signin").length==0) {
$(".signin").removeClass("menu-open");
$("fieldset#signin_menu").hide();
}
});
});
</script>';
if ($username == 'Anonymous') {
$twitterlogin ='<div id="topnav" class="topnav"> Have an account? <a href="login" class="signin"><span>Sign in</span></a> </div>
<fieldset id="signin_menu">';
global $admin, $user, $sitekey, $gfx_chk, $admin_file, $ya_config;
include_once('modules/Your_Account/includes/functions.php');
if (!isset($ya_config)) $ya_config = ya_get_configs();
mt_srand ((double)microtime()*1000000);
$maxran = 10 * intval($ya_config['codesize']);
$random_num = mt_rand(0, $maxran);
$lcontent = '<form action="account.html" method="post">';
$lcontent .= ''._NICKNAME.' <input type="text" name="username" size="15" maxlength="25" /><br />';
$lcontent .= _PASSWORD.' <input type="password" name="user_password" size="15" maxlength="20" /><br />';
$lcontent .= security_code(array(2,4,5,7), 'stacked');
//$lcontent .= '<br />';
$lcontent .= '<input type="hidden" name="op" value="login" alt="login" />';
$lcontent .= '<p class="remember"><input id="signin_submit" type="submit" alt="login" value="'._LOGIN.'" /><input id="remember" name="remember_me" value="1" tabindex="7" type="checkbox" /><label for="remember">Remember me</label></p>';
$lcontent .= '<p class="forgot-username"><a class="rpxnow" onclick="return false;" href="https://tricked-out-news.rpxnow.com/openid/v2/signin?token_url=http://trickedoutnews.com%2Fmodules.php%3Fname%3DYour_Account%26op%3Dnew_user">'._BREG.'?</a></p>';
$lcontent .= '<p class="forgot"> <a href="account.html?amp;op=pass_lost">'._PASSWORDLOST.'?</a></p>';
$twitterlogin .=''.$lcontent.'</form></fieldset>';
}
|
You just have to place $twitterlogin where you want it to appear. _________________ Tricked Out News |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 782
|
|
| Back to top |
|
 |
RobvanderWel Newbie


Joined: Jul 26, 2011 Posts: 9 Location: Nederland
|
|
| Back to top |
|
 |
|
|