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: 91

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.

RSS

Latest Activity

Allison Leahy replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"Thanks for looking into it, SM!"
6 minutes ago
Kos replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"You can remove that earlier code and replace it with this.  If you don't want the bold,…"
7 minutes ago
Gary W Norman replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"too cool! Let me check it out..and I guess i over ride the old one denoting font size with this.…"
11 minutes ago
SM replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"I asked Jon if SSO cost money or not? I guess at some point in time used to charge…"
26 minutes ago

NC for Hire
Bernard Lama replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"OIC then we can only do this with javacript code. I will try it and let you know. Best Bernard"
34 minutes ago
A discussion started by Andrew Sanderson was featured

Video chat for ning network

I hva eread a dew discussions about adding video to ning networks and wanted to get all the…See More
35 minutes ago

NC for Hire
SweetPotato replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"Diego, I PMd you. hope you got it. SP"
35 minutes ago
Allison Leahy replied to Rowald's discussion 'Midsummer: Ning 2.0 upgrade to Ning 3.0'
"Hope to have a bit more clarification around the release date for migration tools soon. Thanks for…"
36 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service