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;
Answers
thx, great job you have done
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I modified this to use thumbs up/down image and users can like or not like a post. thanks for the plugin its cool
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •can you post your changes here, so others can partake.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •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.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@jason2007 thanks for the compliment
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@hbf Is there some way users can get notification/emails whenever someone likes what they have written?
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •