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

Reply to This

Replies to This Discussion

Hello sweetie :-)

gros bisous a toi

LOL george tu habla espanol?? hahahaha! I made the logo smaller to save some space in the header, I wanted to see of you could play with the border so that it doesnt cut off any letters

the code you added for the borders just lower the numbers and that should fix it :-)

dont like visiting a Site cant even see the Main how imma gonna know if i wanna join... ?

I know I agree for the most part but there are private sites out there that do need this script.

This is perfect and works well, i changed the 9000 to 60000 to give a minute before the redirect.

Fantastic script George and it's added 1 more nice touch to my network "Thank You"

:-) 

Hi George, is there code I could add to the splash page being hosted by the other site that keeps their header info from showing when they're queued to sign in?

Nostalgic if you send me the link I will write that code for you. all networks are different so that would have to be written for that network.

This is exactly what I needed for my contest site. Something to direct non-members to sign up and an added security against non-members voting! Yes. This is genius.

Warmly,

Susan

that's great Susan I'm glad I could help :-) you have a great day

George, 

Thank you for sharing and commend you for adding to all of our abilities and knowledge base. 

One quick question about SEO.  If the community is set to Public - Everything and this script is used - will this hurt in terms of search engines and google crawling the site? 

thanks,

David 

It will not bother the search engine crawling whatsoever the crawler reads your site as Text it doesn't load your page so the script doesn't bother it whatsoever

RSS

Latest Activity

Riccardo Rossini replied to Riccardo Rossini's discussion 'problem in redirecting NING 3.0'
18 minutes ago
Mandy P. replied to Mandy P.'s discussion 'Remove unwanted space-Header'
"thanks a bunch..that helps!"
1 hour ago
Aaron replied to Aaron's discussion 'Ning Spring Cleaning Begins This Week'
"Hi everyone, Just a quick note to let you know that this spam cleanup is complete. That said, you…"
2 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Check it out. I hovered both images, made 2 screen shots (just to capture the hover tip) and placed…"
3 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"I'm thinking it has something to do with caching. I just inspected the header, and I see 2…"
3 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Fire-Tech, You guys have given me major relief, just to know it's not something unique on my…"
3 hours ago
Fire-Tech replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Same thing here. All of the same issues...in FF and Chrome, but not as bad in Chrome."
4 hours ago
Kos replied to Kos's discussion '3.0 My Thoughts From A Non-Coder (edited 5/20/13)' in the group The Sandbox
"Edited to add a menu layer suggestion [used the Galaxy SIII]"
4 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service