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
Riccardo Rossini replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
Paul Corona replied to Suzie Nielsen's discussion 'Watching Cultivating videos- have questions!'
Chris replied to JFarrow's discussion 'Ning Emails Going to Spam?'
Larry Matthews replied to Larry Matthews's discussion 'Photos'
Fabio replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'© 2013 Created by Ning.
