There's been a few creators asking for a redirect script without having to pay someone to write it for them so hear you guys go
This is perfect for a splash page Like the one I created for Cross Roads Fellowship.
Cross Roads Fellowship splash page http://wellkunnected.com/page/gift-56
It will work sending it to your sign in page as well. I've tested it with a splash page & sign in/sign up page.
this script will redirect any Non-logged in members to any page you would like. Just remember you Need to use a third-party hosting site not your own network for a splash page!!! right now I'm temporarily using my friends network "Well Kunnected" for the splash page.
Just replace the url "http://wellkunnected.com/page/gift-56" to wherever you've created your splash page or your sign in page.
Then add the code to your NC custom code box it could take up to 1 to 10 minutes for the script to take effect because of your network catch. But once it does it takes one or two seconds or so to redirect your network to the splash page/sign in page.
Redirect script
<script type="text/javascript">
if(ning.CurrentProfile == null){
location.href = "http://wellkunnected.com/page/gift-56";
}
</script>
timed redirect
And if you would like a timed redirect use this code. The 9000 at the end of the code is the same as 9 seconds so if you want a 30 second delay change the 9000 to 30000
1000 = one second
<script type="text/JavaScript">
if(ning.CurrentProfile == null){
setTimeout("location.href = 'http://wellkunnected.com/page/gift-56';",9000);
}
</script>
delayed pop-up
you can combine the script above with a timed non-logged in members pop up about page just set the pop up page time to a couple seconds less than the redirect script
Or if you'd rather have your non-logged-in members just have a timed pop up to the sign in or sign-up page use this code.
Just change the url to the one you preferre (Sign in page or sign-up page or even an about page) and your delay time is at the very bottom it's set to one second right now
<script type="text/JavaScript">
if(ning.CurrentProfile == null){
SW=window.open('http://4himalone.ning.com/main/authorization/signIn','NewWin','toolbar=no,status=no,width=750,height=635')
SW.moveTo(190,240);
}
</script>
</head>
<body onLoad="setTimeout('openPopup()', 1000);">
I'm using the Timed redirect script on crossroad fellowship it's a nine second delay check it out here http://4himalone.ning.com/
Permalink Reply by shrawan bomjan on November 8, 2012 at 12:37pm George: can you make for me same like this ... with popup ...my site www.nepalichristians.com
Permalink Reply by George H. Compton IV on November 8, 2012 at 2:09pm Do you have a third-party site that you're going to host this from? Is it a Ning network?
If It is a Ning network I can write you the codes and have you implement them. if not a Ning network I'll need to log-in to the third-party site to write the codes and find out how to implement them on that type of network.
Permalink Reply by shrawan bomjan on November 8, 2012 at 7:40pm yes it is a ning website .
Permalink Reply by caro on November 8, 2012 at 4:51pm desoled my georges no stand sniffffff la c'est trop informatique pour moi pas grave je passe te feliciter du travail que tu fait sauf mon site ce meurt et j'ai des spaeeumer tout le temps sur tout les reseau va lire le forum de jen gros bisous a toi et prend soin de toi
Permalink Reply by George H. Compton IV on November 8, 2012 at 5:12pm big kiss à vous chéri de
Permalink Reply by shrawan bomjan on November 8, 2012 at 7:43pm yes it is a ning website - www.nepalichristians.com
Permalink Reply by George H. Compton IV on November 9, 2012 at 5:15pm Here are the CSS codes they go in your main design studio. I hope you like this
.xg_theme #xg_themebody
DIV#xg.account.external-auth.xg_widget_main.xg_widget_main_authorization.xg_widget_main_authorization_signIn
{
padding-top: 1%!important;
padding-bottom: 42% ;}
DIV#xg.account.external-auth.xg_widget_main.xg_widget_main_authorization.xg_widget_main_authorization_signIn{
background-image: url(http://api.ning.com:80/files/SdE9FeWQf4nw*7WsXVoUMqZui*3rRisWWlcl2qdGUsjLUi9YuvrwLNd4dQdUP*bChf89ernh1a-8g79q0OKpMXOSgOwbpbCf/faithclouds.jpg)!important;
background-attachment:
fixed; background-size:100% 100%; }
DIV.xg_module.xg_lightborder.signin-module FORM.xg_module_body.xg_lightborder {
background-image: url(http://lavendermagazine-uploads.s3.amazonaws.com/2011/10/faith.jpg)!important;
background-size:100% 100%; }
DIV.xg_module.xg_lightborder.signin-module H3, DIV.xg_module.xg_lightborder.signin-module p, DIV.xg_module.xg_lightborder.signin-module a, DIV.xg_module.xg_lightborder.signin-module H2.xg_lightborder {
color:white;}
DIV.xg_module.xg_lightborder.signin-module DIV.signin-about H3 {
font-family: Helvetica Neue ;color:white;}
INPUT.button {background-color:transparent!important;}
DIV.xg_module.xg_lightborder.signin-module LABEL {
font-family: Helvetica Neue ;color:white;}
.xg_theme #xg_themebody
DIV#xg.account.external-auth.xg_widget_main.xg_widget_main_authorization.xg_widget_main_authorization_signUp
{
padding-top: 1%!important;
padding-bottom: 42% ;}
DIV#xg.account.external-auth.xg_widget_main.xg_widget_main_authorization.xg_widget_main_authorization_signUp{
background-image: url(http://api.ning.com:80/files/SdE9FeWQf4nw*7WsXVoUMqZui*3rRisWWlcl2qdGUsjLUi9YuvrwLNd4dQdUP*bChf89ernh1a-8g79q0OKpMXOSgOwbpbCf/faithclouds.jpg)!important;
background-attachment:
fixed; background-size:100% 100%; }
DIV.xg_module.xg_lightborder.signin-module {
background-image: url(http://lavendermagazine-uploads.s3.amazonaws.com/2011/10/faith.jpg)!important;
background-size:100% 100%; }
DIV.xg_module.xg_lightborder.signin-module H3, DIV.xg_module.xg_lightborder.signin-module p, DIV.xg_module.xg_lightborder.signin-module a, DIV.xg_module.xg_lightborder.signin-module H2.xg_lightborder {
color:white;}
DIV.xg_module.xg_lightborder.signin-module DIV.signin-about H3 {
font-family: Helvetica Neue ;color:white;}
INPUT.button {background-color:transparent!important;}
DIV.xg_module.xg_lightborder.signin-module LABEL {
font-family: Helvetica Neue ;color:white;}
This is a redirect script it's set for 30 seconds. I think you might want to use this instead of the pop up
place this code in your NC custom code box
<script type="text/JavaScript">
if(ning.CurrentProfile == null){
setTimeout("location.href = 'http://www.nepalichristians.com/main/authorization/signIn';",30000);
}
</script>
And this is the pop up script it's set for a 10 second delay
place this code in your NC custom code box
<script type="text/JavaScript">
if(ning.CurrentProfile == null){
SW=window.open('http://www.nepalichristians.com/main/authorization/signIn','NewWin','toolbar=no,status=no,width=750,height=635')
SW.moveTo(190,240);
}
</script>
</head>
<body onLoad="setTimeout('openPopup()', 10000);">
Permalink Reply by shrawan bomjan on November 9, 2012 at 11:18pm
Permalink Reply by George H. Compton IV on November 10, 2012 at 8:27am You're welcome shrawan :)
I see you are using the CSS but not the redirect script. I was wondering why? Is it not working for you or did you not use it?
Permalink Reply by MAXX on December 12, 2012 at 5:23pm I inserted the main page of my network into the script so that non-members would be directed there, instead of to the sign-up page. However, it did not work. People are still directed to the sign-up page. And if they are on the main page and click on "sign-in," the page just sits and keeps refreshing the main page, preventing members from signing in.
Is this possible? I think more people would join if they were directed to the main page and could see all the activity.
Permalink Reply by George H. Compton IV on December 14, 2012 at 10:11am I'm quite sure it's possible give me little time and I'll write a script for you :-) you have a great day MAXX

caro replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
John Bizley replied to John Bizley's discussion 'I have a Question about the Social Channels ( youtube, vimeo )' in the group The Sandbox
Writer Chick {Diane} replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'

© 2013 Created by Ning.
