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/

Tags: in, network, page, redirect, script, sign, splash, up

Views: 2020

Reply to This

Replies to This Discussion

George: can you make for me same like this ... with popup ...my site www.nepalichristians.com 

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.

yes it is a ning website  .

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 

big kiss à vous chéri de

yes it is a ning website - www.nepalichristians.com

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);">

George - thank you very much much much - for help  -| MAy GOD BLESS YOU |-

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?

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.

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

Any luck with this George?

RSS

Latest Activity

Allison Leahy replied to soaringeagle's discussion '3.0 feature request'
"Thanks. I'll make sure this is filed as a feature improvement for 3.0."
7 minutes ago
Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Ha!  Nevermind.  Suddenly it's back to normal again.  Gremlins in the hardware,…"
16 minutes ago
Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Hey SP is your slide still running alright?  Came back from dinner and saw this.  idk if…"
1 hour ago
FedMedic replied to soaringeagle's discussion '3.0 feature request'
"+1"
3 hours ago
Kos replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"It's a glitch on Ning's end; plain and simple"
4 hours ago
John Bizley replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"Thanks Riccardo, it took a bit of moving the mouse about to find it but my mouse does change to the…"
4 hours ago
Riccardo Rossini replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"John, actually the button is only hidden, more or less you'll find it here your pointer will…"
5 hours ago
Kos replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"Even a photo preview would be wonderful so we're certain we're selecting the right…"
5 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service