Example tags in page.tpl:
1 2 3 |
<!-- IF {PAGE_THANK_CAN} --> < p >< a href = "{PAGE_THANK_URL}" onclick = "return confirm('{PHP.L.thanks_ensure}')" >< strong >{PHP.L.thanks_thanks}</ strong ></ a ></ p > <!-- ENDIF --> |
Example tags in forums.posts.tpl:
1 2 3 4 5 |
<!-- IF {FORUMS_POSTS_ROW_THANK_CAN} --> < a href = "{FORUMS_POSTS_ROW_THANK_URL}" onclick = "return confirm('{PHP.L.thanks_ensure}')" >{PHP.L.thanks_thanks}</ a > <!-- ENDIF --> And where you want to display current thanks count and link: < a href = "{FORUMS_POSTS_ROW_USERTHANKS_URL}" title = "{PHP.L.thanks_for_user}" >{PHP.L.thanks_thanked}: {FORUMS_POSTS_ROW_USERTHANKS} {FORUMS_POSTS_ROW_USERTHANKS_TIMES}</ a > |
Example tags in users.details.tpl:
1 2 3 4 |
< tr > < td >{PHP.L.thanks_thanked}:</ td > < td >< a href = "{USERS_DETAILS_THANKS_URL}" title = "{PHP.L.thanks_for_user}" >{USERS_DETAILS_THANKS} {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).
Thanked: 2 times
Warning: No tags found in ./plugins/thanks/thanks.setup.php
Thanked: 1 time
Как можно решить вопрос с сокрытием кнопки "Спасибо" после голосования?