Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
remove delegates?
I'm trying to tweak the ParticipatedThreads extension.
My problem is that the numbering of the list is ( I believe ) counting the total number of posts rather than the number of threads participated in.
This is the code ( I think ) that is handling the number display. I can't seem to figure out how to modify it to display the correct number, so I'm wondering if there is a way to remove the numbers alltogether.
I tried
but obviously it didn't work. I also tried remove in place of delete, also to no avail.
Is there something similar to this that I could do to get rid of the numbers?
Thanks
My problem is that the numbering of the list is ( I believe ) counting the total number of posts rather than the number of threads participated in.
$Context->AddToDelegate('DiscussionManager', 'PreGetDiscussionCount', 'ParticipatedThreadsBuilder');
This is the code ( I think ) that is handling the number display. I can't seem to figure out how to modify it to display the correct number, so I'm wondering if there is a way to remove the numbers alltogether.
I tried
$Context->DelteFromDelegate('DiscussionManager', 'PreGetDiscussionCount', 'ParticipatedThreadsBuilder');
but obviously it didn't work. I also tried remove in place of delete, also to no avail.
Is there something similar to this that I could do to get rid of the numbers?
Thanks
0
This discussion has been closed.
Comments
I tried to comment out the line, but it doesn't solve the problem.
I've asked the author, but I think they're pretty busy, and I don't want to bother them. Was just wondering if there was another way around it.
Thanks for the feedback
I've searched Vanilla.Class.DiscussionManager.php trying to find other delegates to try, but nothing is working