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

Reply to This

Replies to This Discussion

Hello MAXX

I'm sorry I totally forgot but hear it is
Non-logged in members will be redirected to the homepage
just replace this link  with your's  http://yourhomepage.ning.com

<script type="text/JavaScript">
if(ning.CurrentProfile == null){
window.location.href = "http://yourhomepage.ning.com";
}
</script>

you have a great day :)

thanks!!

just tried it, didnt work :(

Nope, still not working.  Can you check it out?  www.mycoachbook.com

I'm sorry MAXX I've tried quite a few times and that's always the end results :( have you asked TJ the JavaScript Guru?? LOL he may already have one for that.

Just wanted to give my thanks to you George! I loved this tip and used it on my site!

Thank you!

Matt

www.scalemodelcollectors.com

you're welcome Matt I'm glad I could help :-) you have a great day

Hi George

I don't know if you can help me or not , But I think I need a splash page!  to get people to join

www.b-yond.co 

Thank you so much for your help  

Hello Mary I will write you some codes but you need to send me a couple pictures that you would like to use as backgrounds images.  :-) you can send them to me here in this discussion or in a message :-) you have a great day and I'll see you on facebook.

Hi George

Thank you so much your our star, I don't know what to use  for images , please can you help there . I don't have any to use

My site is about

Keep in touch with what's most important family and friends, work and Business Customize your own page for business or personal www.b-yond.co

I will find something for you :-) talk to you soon

Hi George

Your a star as always thank you :)

RSS

Latest Activity

Barbara West replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"If you enjoy Photography or photo manipulation with Photoshop join me here on my group. I would…"
39 minutes ago

NC for Hire
SweetPotato replied to Radialistas Brasileiros's discussion 'How we will deal with 301 redirects and to fix 404 errors on NING 3.0?'
"Phil, any ideas or shall I open a ticket? Thanks SP"
1 hour ago
Riccardo Rossini replied to Riccardo Rossini's discussion 'FANTASTIC!!'
"How can I do the same in Facebook? It seems that is not working"
3 hours ago

NC for Hire
SweetPotato replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Phil, When you release the migration tool, will there be a way to migrate certain blog posts (by…"
4 hours ago
Riccardo Rossini replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Me too you can style it in chrome via CSS but not in FF. Thanks"
5 hours ago
Lady Panter favorited Rafael's group Ning Networks en español
8 hours ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Thanks!"
9 hours ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Let me send you a friend request so I can message you rather than take this thread more off-topic."
9 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service