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.

suggestion

This discussion is related to the I Like This ( Plugin ) addon.
sarowlwpsarowlwp New
edited May 2012 in Vanilla 2.0 - 2.8

Suggest plus a css class , give 'Unlike' , 'Like' different css class , so people can custom ther "like button"

here my code

 if(!$Self){
          if (in_array($UID, $Likes))
          {
            $QuoteURL = Url("discussion/Like/{$Url}/remove",TRUE);
            $QuoteText = T('Unlike');
            $QuoteClass = 'Unlike';
          } 
          else 
          {
            $QuoteURL = Url("discussion/Like/{$Url}",TRUE);
            $QuoteText = T('Like');
            $QuoteClass = 'Like';
          }
          $Src .= '<span class="LikeThis '.$QuoteClass.'"><a href="'.$QuoteURL.'">'.$QuoteText.'</a></span>';
        }
        return $Src;

Best Answer

Answers

Sign In or Register to comment.