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/
Permalink Reply by Mat on October 19, 2012 at 11:20pm How did you get the sign-up and the sign-in box get to work on splash page?

Permalink Reply by Mat on October 20, 2012 at 1:01am hmm thats really interesting! this just gave me big idea :)

Permalink Reply by Mat on November 2, 2012 at 1:19am Yeah i gave it try and i noticed that problem, had to re copy all the code, i am just gonna stick with my old splash page lol. thanks SP!
When you sign up from the splash page, you get this error " A problem occurred. Please try again."
Permalink Reply by George H. Compton IV on November 2, 2012 at 8:31am yes Mat I noticed that error with the sign up portion.
SweetPotato you wouldn't happen to have the JavaScript for that would you? Pretty please :-) LOL
Permalink Reply by George H. Compton IV on October 20, 2012 at 9:27am There is a couple ways of doing that.
1) go to your sign in page or sign-up page in Firefox right-click in the box and select "Inspect element". There will be tabs at the bottom your screen find the tab that says FORM.xg_module_body.xg_lightborder then select copy Inner html on the bar Above the element that you selected.
2) right-click on the page using Firefox and select "view page source" A new window with the page source will pop up right click in the new window and select all then right-click and select copy.
The first choice is always the best way to go it will give you just the codes in that element instead of all of the page source.
I hope this helps Mat :)
Permalink Reply by Mat on October 20, 2012 at 2:49pm Thanks George! i will hit you up if i didn't get it right!
Permalink Reply by George H. Compton IV on October 20, 2012 at 3:12pm You're welcome Mat
If you need any help with any of it I'll be glad to give you a hand. :)
have a great day
Permalink Reply by Mat on October 21, 2012 at 3:16pm Works perfect bra! thanks again! i got it working
Permalink Reply by George H. Compton IV on October 21, 2012 at 5:39pm You're welcome Mat I'm glad you got it working :)
Permalink Reply by Jim Kinson on October 20, 2012 at 7:43am Working great of Cross Roads George. Thank you so much. God bless you.
Diego Biasi joined claudio falvo's group
Kos replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
Diego Biasi replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
Kos replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
Kos replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
Thiago Santos de Moraes replied to Elshara Silverheart's discussion 'More Feature Requests'
Edith Herrera replied to Edith Herrera's discussion 'Politica de reembolsos...' in the group Ning Networks en español
Diego Biasi replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'© 2013 Created by Ning.
