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

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

  • Options
    ZhaanZhaan Professional fool ✭✭

    I use 2.1, by the way

  • Options
    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?

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

  • Options
    ZhaanZhaan Professional fool ✭✭

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

  • Options
    tenachtenach Earth

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

    I will be uploading an update in a bit.

  • Options

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

  • Options

    Sorry my mistake, the pluggin work fine...

  • Options

    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.