Plugin for CMF Cotonti that let users thank each other.
Authors:
GitHub: https://github.com/Cotonti-Extensions/thanks
Example tags in page.tpl:
<!-- Adds a thank you button --> {PHP|thanks_itemAddThankWidget('page', {PAGE_ID})} <!-- Adds a widget with a list of those who thanked for the page --> {PHP|thanks_itemWhoThankedWidget('page', {PAGE_ID})}
Example tags in forums.posts.tpl:
<!-- Number of thanks to the user --> {PHP|thanks_userCountWidget({FORUMS_POSTS_ROW_USER_ID}, {FORUMS_POSTS_ROW_USER_THANKS})} <!-- Thank you button --> {PHP|thanks_itemAddThankWidget('forumPost', {FORUMS_POSTS_ROW_ID})} <!-- Widget with a list of those who thanked for the post --> {PHP|thanks_itemWhoThankedWidget('forumPost', {FORUMS_POSTS_ROW_ID})}
Example tags in comments.tpl:
<!-- Number of thanks to the user --> {PHP|thanks_userCountWidget({COMMENTS_ROW_AUTHOR_ID}, {COMMENTS_ROW_AUTHOR_THANKS})} <!-- Thank you button --> {PHP|thanks_itemAddThankWidget('comment', {COMMENTS_ROW_ID})} <!-- Widget with a list of those who thanked for the comment --> {PHP|thanks_itemWhoThankedWidget('comment', {COMMENTS_ROW_ID})}
Example tags in users.details.tpl:
<tr> <td>{PHP.L.thanks_thanked}:</td>
<td><a href="{USERS_DETAILS_THANKS_URL}" title="{PHP.L.thanks_for_user}">{USERS_DETAILS_THANKS_TIMES}</a></td> </tr>
You can also use {*THANKS}
, {*THANKS_URL}
and {*THANKS_TIMES}
tags wherever all user-specific tags are available (* stands for a tag prefix specific to that area or block).
1 time
Как можно решить вопрос с сокрытием кнопки "Спасибо" после голосования?