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: 2025

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


NC for Hire
SweetPotato replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Sorry, that was for Kos, not you Diane, although she might have been talking to you and not me, in…"
59 minutes ago
caro replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"c'est du beau travail mais j'ai tout ce qui me faut sur mon ning2 plus que le 3 je…"
1 hour ago
John Bizley replied to John Bizley's discussion 'I have a Question about the Social Channels ( youtube, vimeo )' in the group The Sandbox
"Thanks James, hmm all seems to be working on my end in both ie and firefox. Try again and let me…"
1 hour ago
Writer Chick {Diane} replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Oh, I wasn't even referring to my site. I don't care what people think about how my site…"
2 hours ago

NC for Hire
SweetPotato replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"I don't think I was critiquing your site. Not even looked at it to tell the truth. Eye of the…"
3 hours ago

NC for Hire
SweetPotato replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"I hope paid access Ida bit more fleshed out them the previous iteration. Supporting multiple…"
3 hours ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"You know what, I figured this was in the making along with several other developments. Pricing is…"
4 hours ago
Profile IconNora Roste, Marisa, Cigdem Kobu and 4 more joined Creators
4 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service