Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Use token replacement for like buttons #1143

Merged

Conversation

johnhenley
Copy link
Collaborator

Description of PR...

Use token replacement for like buttons

Changes made

  • Add tokens:
    • [FORUMPOST:LIKEONCLICK] (inject UI code when like icon is clicked)
    • [FORUMPOST:ISLIKED] (to inject content if topic is/is not liked by user)
    • [FORUMPOST:LIKECOUNT] (to inject number of likes)
  • Move HTML markup from C# code to delivered community templates
  • Add legacy token mapping for [LIKES], [LIKESx2], [LIKESx3]

How did you test these updates?

Local install

PR Template Checklist

  • Fixes Bug
  • Feature solution
  • Other
  • Requires documentation updates
  • I've updated the documentation already

Please mark which issue is solved

Close #1142

@johnhenley johnhenley added enhancement New feature or request themes Dnn Community Forums Themes labels Oct 31, 2024
@johnhenley johnhenley self-assigned this Oct 31, 2024
@johnhenley johnhenley added this to the 08.02.00 milestone Oct 31, 2024
@johnhenley johnhenley merged commit 3edf27a into DNNCommunity:dev Oct 31, 2024
1 check passed
@johnhenley johnhenley deleted the dev82/tokens-like-buttons-1142 branch October 31, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request themes Dnn Community Forums Themes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Use token replacement for like buttons
1 participant