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
Jen replied to Alex's discussion 'More styling in the Design Studio'
"For anyone else - after updates if your mobile menu isn't working, sign out and back in."
11 minutes ago
Cindy replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"This is where the link takes me http://httptheforestofhealingningcom.ning.com Looks cheep, like…"
20 minutes ago
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"I do all my own graphic design work, and would want to do so for this widget too. I've been…"
24 minutes ago

NC for Hire
Jen replied to Alex's discussion 'More styling in the Design Studio'
"Nice update. Problem: Seems to me that the mobile menu icon isn't working properly on android…"
30 minutes ago

NC for Hire
SweetPotato replied to Alex's discussion 'More styling in the Design Studio'
"Good job."
43 minutes ago
Alex replied to Alex's discussion 'More styling in the Design Studio'
"Themes that currently have rounded corners do so by way of CSS. We'll need to update them to…"
43 minutes ago

NC for Hire
SweetPotato replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"This can be done using the formstack sign up form and some custom design. I haven't…"
49 minutes ago
A discussion started by Sylvia Hysen was featured

NING 2.0- Sign-up for newsletter

TJ, Jen, FireTech, Patrick, Diane, SP & SE...I want to add a sign-up for newsletter to my front…See More
57 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service