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

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

Profile IconNing via Facebook
Thumbnail

Are you betting your community's growth on "sometimes" and "maybe?"…

See More
Facebook8 minutes ago · Reply
Profile IconAnh Khé Phùng and Christy C. joined Creators
8 minutes ago
Gary W Norman replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"it's too bad I can't upload my own png file, but as for fonts; either Birmingham , or…"
10 minutes ago
Kos replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"Sure can but the question is, what font do you wish to use (?) and do you want it normal, bold or…"
12 minutes ago
Gary W Norman replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"So am I Kos and thanks again for your help! ..and thanks to James too!  Now let me ask…"
38 minutes ago
Yaron replied to Allison Leahy's discussion 'Changes to Ning 3.0 Based on Your Feedback'
"Thank you"
1 hour ago
Allison Leahy replied to Allison Leahy's discussion 'Changes to Ning 3.0 Based on Your Feedback'
"Thanks, Yaron. Happy to communicate your feedback regarding fullscreen video embeds back to the…"
1 hour ago
Allison Leahy replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"Not quite clear what Jon is stating here. It reads to me as though a Disqus user can simply login…"
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service