After Login, Redirecting... page (tutorial)
4 posters
Page 1 of 1
After Login, Redirecting... page (tutorial)
ok so i created a redirecting page aftger you login, everything works, but now i just want to display the usersname, after "thank you for logging in,"
My redirect page:
My script:
My redirect page:
My script:
- 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 name="generator" content=
"HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta http-equiv="Refresh" content="20;url=http://www.xcodezz.com/forum" />
<title>Welcome to xCoDeZz</title>
<style type="text/css">
/*<![CDATA[*/
body {
background: url(http://www.stripegenerator.com/generators/generate_shared_stripe.php?stripe=949);
vertical-align:middle;
margin-top: 100px;
}
img {
vertical-align:middle;
}
/*]]>*/
</style>
<script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Sorry but right click is not allowed! Already a member? Please log-in. Not a member? Register now for free! Be there. =) Message from: xCoDeZz Admin. ";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
$(document).ready(function() {
var x=$('#username').html();
$('.templateuname').html(x);
});
// -->
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
div.c4 {color: grey; margin-bottom: 5px; margin-top: 5px; text-align: center}
div.c3 {text-align: center}
div.c2 {color: grey; align=}
em.c1 {height: 20px; font-family: 'Georgia', arial, serif;}
/*]]>*/
</style>
<style type="text/css">
/*<![CDATA[*/
.classname {
-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
box-shadow:inset 0px 1px 0px 0px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
background-color:#ededed;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
color:#777777;
font-family:arial;
font-size:15px;
font-weight:bold;
padding:3px 24px;
text-decoration:none;
text-shadow:1px 1px 0px #ffffff;
}.classname:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
background-color:#dfdfdf;
}.classname:active {
position:relative;
top:1px;
}
/* This imageless css button was generated by CSSButtonGenerator.com */
/*]]>*/
</style>
<script language="Javascript" type="text/javascript">
//<![CDATA[
$(document).ready(function() {
var x=$('#username').html();
$('.templateuname').html(x);
});
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
div.c4 {text-align: center}
form.c3 {top:25%; position: absolute; left: 35%;}
table.c2 {color: #FFFFFF; background-color:#000000; opacity:0.7; filter:alpha(opacity=70); box-shadow: 2px 2px 5px #000000;}
input.c1 {background-color: #CCCCCC;}
.blockfoot.actionbuttons.redirect_button {
background-color:transparent;
padding-top:5px;
}
.blockfoot.actionbuttons.redirect_button .group {
padding-right: 0px;
}
.standard_error {
max-width:600px;
margin:0 auto;
padding:4em 0 6em;
}
/*]]>*/
</style>
<meta http-equiv="Refresh" content="2; URL=http://www.xcodezz.com" />
</head>
<body>
<div align="center">
<div id="numberCountdown" class="c2">
<img src="http://i44.servimg.com/u/f44/17/24/71/57/stitch13.png">
</div>
</div>
<div align="center">
<div class="blockfoot actionbuttons redirect_button">
<div class="group" id="redirect_button">
<a href="http://www.xcodezz.com"><img src="http://i44.servimg.com/u/f44/17/24/71/57/render10.png"></a>
</div>
</div>
</div><script type="text/javascript">
//<![CDATA[
<!--
function exec_refresh()
{
window.status = "Redirecting..." + myvar;
myvar = myvar + " .";
var timerID = setTimeout("exec_refresh();", 100);
if (timeout > 0)
{
timeout -= 1;
}
else
{
clearTimeout(timerID);
window.status = "";
window.location = "http://www.xcodezz.com";
}
}
var myvar = "";
var timeout = 20;
exec_refresh();
//-->
//]]>
</script><!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->
<!-- STEP THREE: Copy this code into the BODY of your HTML document -->
<!-- Script Size: 1.33 KB -->
</body>
</html>
Last edited by +Fusion- on June 12th 2012, 12:26 am; edited 2 times in total
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: After Login, Redirecting... page (tutorial)
I noticed this bit:
And your disable right click is so ancient it will barley even prevent people from right clicking
- Code:
$(document).ready(function() {
var x=$('#username').html();
$('.templateuname').html(x);
});
And your disable right click is so ancient it will barley even prevent people from right clicking
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: After Login, Redirecting... page (tutorial)
Lmao @ lg froum
@Nera, that tutorial you gave me worked but now the background is white
@Nera, that tutorial you gave me worked but now the background is white
- Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
<meta http-equiv="content-type" content="text / html charset = utf-8" />
<body>
<script src="http://tinyurl.com/var-fa" type="text/javascript">
</ script>
</ Head>
<body>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta http-equiv="Refresh" content="20;url=http://www.xcodezz.com/forum" />
<style type="text/css">
/*<![CDATA[*/
body {
background: url(http://www.stripegenerator.com/generators/generate_shared_stripe.php?stripe=949);
vertical-align:middle;
margin-top: 100px;
}
img {
vertical-align:middle;
}
/*]]>*/
</style>
<script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Sorry but right click is not allowed! Already a member? Please log-in. Not a member? Register now for free! Be there. =) Message from: xCoDeZz Admin. ";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
$(document).ready(function() {
var x=$('#username').html();
$('.templateuname').html(x);
});
// -->
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
div.c4 {color: grey; margin-bottom: 5px; margin-top: 5px; text-align: center}
div.c3 {text-align: center}
div.c2 {color: grey; align=}
em.c1 {height: 20px; font-family: 'Georgia', arial, serif;}
/*]]>*/
</style>
<style type="text/css">
/*<![CDATA[*/
.classname {
-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
box-shadow:inset 0px 1px 0px 0px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
background-color:#ededed;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
color:#777777;
font-family:arial;
font-size:15px;
font-weight:bold;
padding:3px 24px;
text-decoration:none;
text-shadow:1px 1px 0px #ffffff;
}.classname:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
background-color:#dfdfdf;
}.classname:active {
position:relative;
top:1px;
}
/* This imageless css button was generated by CSSButtonGenerator.com */
/*]]>*/
</style>
<script language="Javascript" type="text/javascript">
//<![CDATA[
$(document).ready(function() {
var x=$('#username').html();
$('.templateuname').html(x);
});
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
div.c4 {text-align: center}
form.c3 {top:25%; position: absolute; left: 35%;}
table.c2 {color: #FFFFFF; background-color:#000000; opacity:0.7; filter:alpha(opacity=70); box-shadow: 2px 2px 5px #000000;}
input.c1 {background-color: #CCCCCC;}
.blockfoot.actionbuttons.redirect_button {
background-color:transparent;
padding-top:5px;
}
.blockfoot.actionbuttons.redirect_button .group {
padding-right: 0px;
}
.standard_error {
max-width:600px;
margin:0 auto;
padding:4em 0 6em;
}
#topbar3 {
position: absolute;
top: 54px;
left: 620px;
}
/*]]>*/
</style>
<meta http-equiv="Refresh" content="2; URL=http://www.xcodezz.com" />
</head>
<body>
<div align="center">
<div id="numberCountdown" class="c2">
<img src="http://i44.servimg.com/u/f44/17/24/71/57/stitch13.png"><div id="topbar3"><span class = "USERNAME" > </ span></div>
</div>
</div>
<div align="center">
<div class="blockfoot actionbuttons redirect_button">
<div class="group" id="redirect_button">
<a href="http://www.xcodezz.com"><img src="http://i44.servimg.com/u/f44/17/24/71/57/render10.png"></a>
</div>
</div>
</div><script type="text/javascript">
//<![CDATA[
<!--
function exec_refresh()
{
window.status = "Redirecting..." + myvar;
myvar = myvar + " .";
var timerID = setTimeout("exec_refresh();", 100);
if (timeout > 0)
{
timeout -= 1;
}
else
{
clearTimeout(timerID);
window.status = "";
window.location = "http://www.xcodezz.com";
}
}
var myvar = "";
var timeout = 20;
exec_refresh();
//-->
//]]>
</script><!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->
<!-- STEP THREE: Copy this code into the BODY of your HTML document -->
<!-- Script Size: 1.33 KB -->
</body>
</html>
</div>
</script>
</div>
</body>
</html>
Re: After Login, Redirecting... page (tutorial)
well, my body CSS was interuppted by something, so i moved it to my main text/Css and it worked, herre if anyone wants a free redirect page:
Just change the urls and background images if you want.
Finished Version:
SOLVED
- Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
<meta http-equiv="content-type" content="text / html charset = utf-8" />
<body>
<script src="http://tinyurl.com/var-fa" type="text/javascript">
</ script>
</ Head>
<body>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta http-equiv="Refresh" content="20;url=http://www.xcodezz.com/forum" />
<style type="text/css">
/*<![CDATA[*/
body {
background: url(http://www.stripegenerator.com/generators/generate_shared_stripe.php?stripe=949);
vertical-align:middle;
margin-top: 100px;
}
img {
vertical-align:middle;
}
/*]]>*/
</style>
<script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Sorry but right click is not allowed! Already a member? Please log-in. Not a member? Register now for free! Be there. =) Message from: xCoDeZz Admin. ";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
$(document).ready(function() {
var x=$('#username').html();
$('.templateuname').html(x);
});
// -->
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
div.c4 {color: grey; margin-bottom: 5px; margin-top: 5px; text-align: center}
div.c3 {text-align: center}
div.c2 {color: grey; align=}
em.c1 {height: 20px; font-family: 'Georgia', arial, serif;}
/*]]>*/
</style>
<style type="text/css">
/*<![CDATA[*/
.classname {
-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
box-shadow:inset 0px 1px 0px 0px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
background-color:#ededed;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
color:#777777;
font-family:arial;
font-size:15px;
font-weight:bold;
padding:3px 24px;
text-decoration:none;
text-shadow:1px 1px 0px #ffffff;
}.classname:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
background-color:#dfdfdf;
}.classname:active {
position:relative;
top:1px;
}
/* This imageless css button was generated by CSSButtonGenerator.com */
/*]]>*/
</style>
<script language="Javascript" type="text/javascript">
//<![CDATA[
$(document).ready(function() {
var x=$('#username').html();
$('.templateuname').html(x);
});
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
div.c4 {text-align: center}
form.c3 {top:25%; position: absolute; left: 35%;}
table.c2 {color: #FFFFFF; background-color:#000000; opacity:0.7; filter:alpha(opacity=70); box-shadow: 2px 2px 5px #000000;}
input.c1 {background-color: #CCCCCC;}
.blockfoot.actionbuttons.redirect_button {
background-color:transparent;
padding-top:5px;
}
.blockfoot.actionbuttons.redirect_button .group {
padding-right: 0px;
}
.standard_error {
max-width:600px;
margin:0 auto;
padding:4em 0 6em;
}
#topbar3 {
position: absolute;
top: 145px;
left: 617px;
}
body {
background: url(http://www.stripegenerator.com/generators/generate_shared_stripe.php?stripe=949);
vertical-align:middle;
margin-top: 100px;
}
/*]]>*/
</style>
<meta http-equiv="Refresh" content="2; URL=http://www.xcodezz.com" />
</head>
<body>
<div align="center">
<div id="numberCountdown" class="c2">
<img src="http://i44.servimg.com/u/f44/17/24/71/57/stitch13.png"><div id="topbar3"><font color=cyan><span class = "USERNAME" > </ span></font></div>
</div>
</div>
<div align="center">
<div class="blockfoot actionbuttons redirect_button">
<div class="group" id="redirect_button">
<a href="http://www.xcodezz.com"><img src="http://i44.servimg.com/u/f44/17/24/71/57/render10.png"></a>
</div>
</div>
</div><script type="text/javascript">
//<![CDATA[
<!--
function exec_refresh()
{
window.status = "Redirecting..." + myvar;
myvar = myvar + " .";
var timerID = setTimeout("exec_refresh();", 100);
if (timeout > 0)
{
timeout -= 1;
}
else
{
clearTimeout(timerID);
window.status = "";
window.location = "http://www.xcodezz.com";
}
}
var myvar = "";
var timeout = 20;
exec_refresh();
//-->
//]]>
</script><!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->
<!-- STEP THREE: Copy this code into the BODY of your HTML document -->
<!-- Script Size: 1.33 KB -->
</body>
</html>
</div>
</script>
</div>
</body>
</html>
Just change the urls and background images if you want.
Finished Version:
SOLVED
Similar topics
» Register Page redirecting to Login Page
» how do i put a login bar at the top of the page
» Logo Redirecting to Wrong Page
» Html page link not redirecting.
» Can't upload photos on my forum or yours, says page isn't redirecting properly
» how do i put a login bar at the top of the page
» Logo Redirecting to Wrong Page
» Html page link not redirecting.
» Can't upload photos on my forum or yours, says page isn't redirecting properly
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum