Current status of the Ning Platform is always available on the Ning Status Blog.

FORUM

NC for Hire

Wanna know how to make all external links on your Ning open in a new window, everytime?  We'll here's how you do just that.

 

Add this to your custom Code box (if you're Ning Plus or Ning Pro)

 

<script type="text/javascript">
 jQuery(document).ready(function(){
jQuery("a[href*='http://']:not([href*='http://yourdomain.com'])").attr("target","_blank");
jQuery("a[href*='https://']:not([href*='https://yourdomain.com'])").attr("target","_blank");
});

</script>

 

 

Don't forget to change yourdomain.com  with YOURDOMAIN.COM

 

 

 

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Email me when people reply –

Replies

  • NC for Hire
    Thanks a lot, JFarrow this just may come in handy for something I have in mind.
  • that's a great tip. I use as similar code and works a treat. However, do you think there is a way to "exclude" specific external links? for example, can you force a specific external link to open in the same widow?

     

    thank you!

  • NC for Hire

    @spyro  hmmm   i'll have to think on that one a minute

     

    @Garfield...no problemo homey

    • Thank you ... the _self command is not working.. please let me know if you come up with something.
  • Thank you. This is awesome!
  • Oh my God!  This is cool!  Just installed it on my site and I like it very much!  Ben
  • Great man, thanks a bunch.  Works perfect.

     

    Seth

    www.moviesamongfriends.ning.com

  • AWESOME!  I have been looking for this solution forever....
  • Hey - you know what I just found out that may be an issue for everyone? Every link will pop open a new window, meaning if a user clicks on a Blog post, or Forum post it opens it in a new window. May not be the best user experience though.

    Any possible fix for this maybe? I dunno!
  • thanks so much!!!!!!!!!!
This reply was deleted.

Featured Discussions

Announcements

 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Stefan Groll updated their profile
Sunday
Mateus de Assis Rosa, richard butler and Toni Sheree Bowlson joined Ning Creators Social Network
Saturday
Jeanette Delgado replied to Dr. Krishna Kumari Challa's discussion
Why isn't my Ning network site not secure?
"Hello I need help with the SSL certificate. Can you help me? Please install the free certificate.
W…"
Friday
Alex Ning Support replied to ⚡JFarrow⌁'s discussion
A Couple of Improvements I'd Like to See on Creators
"Hello,
Thank you for your suggestions.
I will speak with our developers about the search with resul…"
Friday
Alex Ning Support and Fabricio Giugni are now friends
Friday
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
A Couple of Improvements I'd Like to See on Creators
"I wanna add one more request.   In the 2.0 communities admins had a button and a way to share a pos…"
Friday
Manuel A J replied to ⚡JFarrow⌁'s discussion
A Couple of Improvements I'd Like to See on Creators
"Bizz I am with you ... important to evolve to transcend these moments of life ... we must give life…"
Apr 17
Bizz replied to ⚡JFarrow⌁'s discussion
A Couple of Improvements I'd Like to See on Creators
"Would be nice but it’s not like the old days when it was always a hive of activity here, unfortunat…"
Apr 16
⚡JFarrow⌁ posted a discussion
I have just a couple of improvements that I'd like to see on Creators Network which should not take…
Apr 15
Alex Ning Support replied to Suzie Nielsen's discussion
SSL on Ning 2
"Hello, Raven.
Sorry for the delay response.
We have the system that updates the SSL certificate aut…"
Apr 14
More…

Meanwhile, you can check our social media channels