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
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
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.3

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.