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
sarowlwp
New
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;
0
Answers
ok. I'll split it up in the next update. i'll update the default css as well.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
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
can you post your changes here, so others can partake.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
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. || Plugin Development Explained
@jason2007 thanks for the compliment
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
@hbf Is there some way users can get notification/emails whenever someone likes what they have written?