Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Collapse and expand comments

@yadigit

Participant

Yey, I found it =D 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;
});

});

`
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. =D
Your welcome.

Skip to toolbar