There are many occasions where the status update on my site include a section where people are not actual talking but doing actions.

Example. *Vladimir lays back and stares up at the sky.* "Such a good night."

But the status updates always include " " so it looks more like.

"*Vladimir lays back and stares up at the sky.* "Such a good night."

Tags: Need help, want to remove the qoutes in the status updates and comments.

Views: 88

Reply to This

Replies to This Discussion

Hi Vladimir,

This is what works for me on my site.  Put this in your Custom Code box and try it.

 

<script type="text/javascript">
// Unquote comments in activity feed, by TJ @jQueryHelp
x$('.xg_module_activity .content-comment').each(function() {
var jQH_h = x$(this).html();
var iStart = 0;
var iEnd = jQH_h.length;
if (jQH_h.substr(0, 1) == '"') iStart = 1;
if (jQH_h.substr(iEnd - 1, 1) == '"') iEnd -= 2;
x$(this).text(jQH_h.substr(iStart, iEnd));
});
</script>

Best wishes!

"TJ"

 

Well, that was a doozy. Hope everyone appreciates you taking time to write that kind of script. =)

Thanks, your code worked fantastically and thanks for taking the time to write the sub string script.

Awesome, thank you Tj! ^^

RSS

Latest Activity

Jordon McGee (Jords) replied to soaringeagle's discussion '3.0 feature request'
"+1"
1 hour ago

NC for Hire
JFarrow replied to JFarrow's discussion 'Become a Youtube Master with These 4 Tricks'
"apparently ning strips that.."
1 hour ago
Chris replied to soaringeagle's discussion '3.0 feature request'
"This is a standard feature of most forums, and very important! Hopefully it will be implemented."
2 hours ago
Ambroise replied to JFarrow's discussion 'Become a Youtube Master with These 4 Tricks'
"I see nothing between line "compared to this:" and lien "When the user hits the play…"
2 hours ago
Cindy replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"Allison would you please make sure that Phoron's new link gets picked up "
2 hours ago
Cindy replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"Phoron's new live link  http://lifesmagickalweave.ning.com"
3 hours ago
Kos replied to sho allan's discussion '[TIP-NING 3.0] Add icon in menu tabs!!'
"I was able to do it but you're right; I wish they allowed for more characters in the Tab Name.…"
3 hours ago
CPA replied to sho allan's discussion '[TIP-NING 3.0] Add icon in menu tabs!!'
"Thanks Sho, I'm going to try this!"
5 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service