Ning Developer Docs

New Tutorial: Open Links in RSS Modules or Profile Boxes in a New Window

If you're comfortable with using Javascript in conjunction with the Tracking box, we just posted a way to Open Links in RSS Modules or Profile Boxes in a New Window. Hopefully this helps someone!

Views: 7

Replies to This Discussion

if(dojo.html.getElementsByClass("module_feed")[0])
{
script here
}
Just in case there is no module feed class on the page.
Good catch! Thanks, Jackson.
hi, i put the script in my tracking box but the feeds still open in the same window, maybe i m doing something wrong.i copied and pasted it in to the tracking code, i have a lot of feeds and i wish they didnt nav away from my site. did i miss something. thanks, lisa
Ernie this is great! In the "How can we make the Developer Network better?" a lot of people were asking for screen shots or a video. The new tutorials are a step in the right direction. There are no video and/or screenshots though. I hope that these post will be revisited and updated with a step by step. a working example on a test page. and screenshots and videos.
Hi everyone! The previous script had a bug where links wouldn't open for some RSS modules if you included more than one RSS module in your main page. The document has been updated to correct for this. Sorry for the inconvenience!
Ernie; Thanks a bunch for this. Now my members can read the info at the RSS feed without having to leave the network. I really appreciate how much you guys do to make it possible for us "technically challenged" types to create great looking and great acting networks. Keep up the good work.

Jerry Hinson White
hinson.ning.com
Hi Ernie H.

Great ! Working perfectly - Now I would like to do the same for links for group website and event website !!
I am browsing since hours the developpers network to find out the syntax for the module name in order to replace module_about_user by the proper getElementsByClass into the following instruction : var oClass = dojo.html.getElementsByClass("module_about_user");

Unfortunately so many threads and documents in the developpers network unable to find the information.even making a search !!

Where i can find this information if somewhere !! Is there any document explaining the repositery tree ?

On the other hand would like to translate the xn_ning_bar in order to translate in french "Search" and the email ("Compose" "Sent." " Received" "Saved" etc;) and the Friends ("My Friends" etc) and Email result ("Sent" etc....) where i can locate the file(s) where i can translate the wording in the tree with WinSCP.


Does Adding a lot of hack in footer page does not slow the page ?

Thanks for your help you are making great job

JEF
Hi Ernie,

Would like to set up this for the event but i am unable to find the name of the module for events !!!

Is there any tutorial explaining all the module in the different pages ?

Thanks

JEF
Hi ALL

I found how to sort in the events how to open links into a new window:

by replacing : var oClass = dojo.html.getElementsByClass("module_about_user");
by : var oClass = dojo.html.getElementsByClass("pad5");

The only thing that all the links open in a new window and not only event website. Others links such as organized by and so on open also into in a new window meanwhile they are in the same domain of the network.

JEF

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service