Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthora_j
    • CommentTimeJul 14th 2006 edited
     # 1
    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 :)
  1.  # 2
    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.
    •  
      CommentAuthora_j
    • CommentTimeJul 14th 2006
     # 3
    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 :)
  2.  # 4
    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 :(
    •  
      CommentAuthora_j
    • CommentTimeJul 15th 2006
     # 5
    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 :(
Add your comments
    Username Password
  • Format comments as