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.
Options

remove delegates?

a_ja_j
edited July 2006 in Vanilla 1.0 Help
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.

$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 :)

Comments

  • Options
    I think you're mis-understanding what exactly a delegate is and how they work. I'm no expert on them myself but basically (i believe) if you dont want to add something to a delegate you just completely ignore it (i.e. remove that line alltogether). Whether that would actually help with the issue at hand I'm not entirely sure - I'd assume the extension author would be the best reference for that.
  • Options
    chances are you're right. I'm not too swift when it comes to php.

    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 :)
  • Options
    I suspect you really need to be changing what you're adding to the delegate rather than just completely ignoring it, but I'm trying to swim in quicksand here, sorry :(
  • Options
    Yeah, I'm sure that would be the proper route, but I just can't seem to find what needs adjusting.

    I've searched Vanilla.Class.DiscussionManager.php trying to find other delegates to try, but nothing is working :(
This discussion has been closed.