Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Badges don't show up in the first post of a thread

ZhaanZhaan Professional fool ✭✭

This plugins works as intended, but for some reason badges are not displayed in the first (original) post of a thread. Got any idea how to fix this?

Thanks!

Comments

  • ZhaanZhaan Professional fool ✭✭

    I use 2.1, by the way

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @Zhann

    Can you post a link to a page on your site where that is happening?

  • peregrineperegrine MVP
    edited March 2013

    this may work for you - let us know @Zhaan

    for rolebadges plugin in version 2.1

    change the $sender to $Sender everywhere in 
    
    class.RoleBadges.plugin.php
    
    then add
    
          public function DiscussionController_DiscussionInfo_Handler($Sender) {
             $this->attachBadge( $Sender );
           }
    
    
        above this code ... 
           public function DiscussionController_CommentInfo_Handler( $Sender ) {
    

    for roletitle plugin in version 2.1

    add this  in  class.roletitle.plugin.php
     public function DiscussionController_DiscussionInfo_Handler($Sender) {
          $this->_AttachTitle($Sender);
       }  
    
    above this  code... 
           public function DiscussionController_CommentInfo_Handler( $Sender ) {
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • ZhaanZhaan Professional fool ✭✭

    Yup, that worked like a charm! Thanks a ton!

  • tenachtenach Earth

    @peregrine, I have added your little snip to the plugin.

    I will be uploading an update in a bit.

  • Has anyone tried it in version 2.1.1? I ask because after updating to that version 2.1.1, stopped working ..

  • Sorry my mistake, the pluggin work fine...

  • Glad to hear it works fine! Installing the latest vanillla right now and am going to make sure everything still works fine. :)

Sign In or Register to comment.