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


NC for Hire
SweetPotato replied to Andre Lacerda's discussion 'How can I change the Blog Layout?' in the group The Sandbox
"This has to be a bug, i think Ning will fix this. I'd flagged it previously, as has Jen, so…"
8 minutes ago
Kos replied to Kos's discussion '3.0 My Thoughts From A Non-Coder (edited 5/21/13)' in the group The Sandbox
"Edited to add: the "x" to delete a category in forums is unseen.  It's still…"
29 minutes ago
Profile IconNing via Facebook
Thumbnail

Community Spotlight: Meet Daniel Kerr, COO of AdjusterPro and founder of Well-Adjusted, a…

See More
Facebook52 minutes ago · Reply
Kos replied to Andre Lacerda's discussion 'How can I change the Blog Layout?' in the group The Sandbox
"I share your concern.  I know that other layouts are coming with less white space, which I…"
55 minutes ago

NC for Hire
SweetPotato replied to Radialistas Brasileiros's discussion 'How we will deal with 301 redirects and to fix 404 errors on NING 3.0?'
"Hi Phil If i'm changing a client's domain name how would I deal with 301 redirects on…"
1 hour ago
Andre Lacerda replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
1 hour ago
Profile IconShannon, solo and 3 other members joined Allison Leahy's group
Thumbnail

The Sandbox

Join The Sandbox to experiment with Ning 3.0 now!The Ning Team will be triaging bug reports and…See More
2 hours ago
Kos replied to Janettee McCrary's discussion 'Any Other Oklahoma NC's?'
"Living so close, we watched in horror as they searched the rubble for school children. The enormous…"
2 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service