Tags:

Permalink Reply by Patrick Chappelle on June 26, 2012 at 11:30am There is a code at JenSocial to place a notification box on members profile pages, but I'm not sure if it's one of her premium tips, or basic Ning tips.
Permalink Reply by Ron Fritzemeier on June 26, 2012 at 12:03pm Cool, we'll definitely check it out. Maybe this can help us achieve our end game instead of what we have been trying to do. (I'm with the same network as Angelo)
We were able to add some text to the comment box with:
document.getElementById("xg_profiles_chatterwall_post_comment").value = "some text";
Unfortunately, that puts the text directly in the rich text editor (not the HTML) function of the tinyMCE editor, so if I put (character encoded) "<a href="link">link</a>" in the "some text" it displays in the comment as "<a href="link">link</a>" instead of as "link." Not sure how to get around this :-/
Permalink Reply by Ron Fritzemeier on June 27, 2012 at 12:20pm Figured it out (noob javascript mistake I think).
I believe the custom code box that we use is fired before all the default ning javascript, so the tinymce functions were being called before tinymce was loaded. This is how I solved the problem:
setTimeout(function(){
tinymce.activeEditor.setContent("some text");
}, 1000);
Setting the delay lets the tinymce script fire first, giving access to the tinymce object and all of the associated functions :-D
John Bizley replied to Donna Mac's discussion '3.0 Video - can someone explain?'
John Bizley replied to Alex's discussion 'More styling in the Design Studio'
Alex from Bougex.com replied to Alex from Bougex.com's discussion 'Leaving Ning... to SocialEngine. Happy... huuummmm.... don't know yet !!!'
Alex replied to Alex's discussion 'More styling in the Design Studio'
Donna Mac replied to Donna Mac's discussion '3.0 Video - can someone explain?'
Kos replied to Donna Mac's discussion '3.0 Video - can someone explain?'© 2013 Created by Ning.
