Re: Collapse and expand comments
Yey, I found it
this requires editing the activity/entry.php in your theme.
right after the following code:
`
`
Put in:
`
$(document).ready(function(){
$(“li#activity- div.activity-comments ul”).hide();
$(“li#activity- a.acomment-reply”).click(function(){
if ( $(“p.collapse-“).css(“display”) == ‘none’ ){
$(“p.expand-, p.collapse-, li#activity- div.activity-comments ul”).toggle(100);
}
return true;
});
$(“p.expand- a”).click(function(){
$(“p.expand-, p.collapse-, li#activity- div.activity-comments ul”).toggle(100);
return false;
});
$(“p.collapse- a”).click(function(){
$(“p.expand-, p.collapse-, li#activity- div.activity-comments ul”).toggle(100);
return false;
});
$(“li#activity- input[name=ac_form_submit]”).click(function(){
if ( $(“p.collapse-“).css(“display”) == ‘none’ ){
$(“p.expand-, p.collapse-, li#activity- div.activity-comments ul”).toggle(100);
}
return true;
});
});
<p class="expand-“>
<p style="display:none" class="collapse-“>Hide Comments
`
Please NOTE:
the “
should go above
`
and the “
goes under it.
Any question’s please contact me at
http://www.yadigit.net..
Username MrMike.
It should work just find for you.
Your welcome.