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

Reply to This

Replies to This Discussion

How did you get the sign-up and the sign-in box get to work on splash page? 

Presumably by using jquery .load ?

hmm thats really interesting! this just gave me big idea :)

Mat, I'd probably prefer the .load function to copying HTML as described below simply because if your sign up or sign in processes change then you'll have to copy it all again.

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."

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

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

Thanks George! i will hit you up if i didn't get it right! 

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

Works perfect bra! thanks again! i got it working

You're welcome Mat I'm glad you got it working :)

Working great of Cross Roads George. Thank you so much. God bless you.

RSS

Latest Activity

Diego Biasi joined claudio falvo's group
Thumbnail

Creatori NING Italiani

Il gruppo vuole Essere un punto d'incontro per i creatori di reti NING italiani Che opeano in…See More
5 minutes ago
Kos replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"Yes, they share the same class.   hmmm let me try something. hold one"
10 minutes ago
Diego Biasi replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"I tried it, it hides both links Sign Up and Sign In. I want to hide only the Sign Up... "
17 minutes ago
Kos replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"Actually, I like that tip for my own site!  LOL  Thanks for bringing it up."
30 minutes ago
Kos replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"invisible and still accessible......gotcha.   ok how about making the words black so they…"
39 minutes ago
Thiago Santos de Moraes replied to Elshara Silverheart's discussion 'More Feature Requests'
"Allison, anything to say about this?"
45 minutes ago
Edith Herrera replied to Edith Herrera's discussion 'Politica de reembolsos...' in the group Ning Networks en español
"Hola Mayra, gracias por la respuesta... Este enlace se encuentra en el panel administrativo de…"
54 minutes ago
Diego Biasi replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"Yes you got the point -- I need at least a Sign Up option enabled but I don't want to make it…"
58 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service