suggestion

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

  • hbfhbf MVP
    Answer ✓

    ok. I'll split it up in the next update. i'll update the default css as well.

Answers

  • hbfhbf MVP
    Answer ✓

    ok. I'll split it up in the next update. i'll update the default css as well.

  • hbf said:
    ok. I'll split it up in the next update. i'll update the default css as well.

    thx, great job you have done

  • I modified this to use thumbs up/down image and users can like or not like a post.
    thanks for the plugin its cool

  • peregrineperegrine MVP
    edited May 2012

    can you post your changes here, so others can partake.

  • jason2007 said:
    I modified this to use thumbs up/down image and users can like or not like a post.
    thanks for the plugin its cool

    i was thinking when i transitioned to allowing users to like or dislike a post that having both words would be too cumbersome so something like this would be the answer. I'd want it to be pulled over as a sprite image to keep overhead low.

    feel free to post your changes and i'll see if i can use that directly.

  • @jason2007 thanks for the compliment

  • @hbf Is there some way users can get notification/emails whenever someone likes what they have written?

Sign In or Register to comment.