Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

suggestion

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

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;

Comments

Sign In or Register to comment.