Sueetie has supported two types of YetAnotherForum.NET favorite content tagging for some time, Favorite Topics and Favorite Messages (individual posts.) Revisiting Sueetie Forum content tagging was an opportunity to spend more time with the new and improved YetAnotherForum.NET 1.9.4 source.
Below is how Topic tagging worked in 1.9.3, where it was added to the thread’s "Options" menu. You can see it in action at Sueetie Forums. Works great, but I wanted to expose the function a bit more in the UI.
The Message Tagging button as it currently functions works perfectly fine, too, but it probably shouldn’t be listed with the Author Contact buttons at the bottom of the post.
The coming Topic and Message Tagging button locations are shown below. Favorite Topic button circled in blue, Favorite Message button in red. Notice also the arrow to a new area on YAF messages which in the screenshot says, "2 users thanked testguy for this useful post" along with the names of those who thanked him. This is YAF 1.9.4’s new "Thanks" feature, another community-enriching feature that people are going to love.
I’m going to focus on tagging message favorites, but before doing so I wanted to show you what happens when the "Tag Topic as Favorite" button is clicked. A popup message appears and the button text changes to "Untag as Favorite."
Back to Message Tagging and the new YAF 1.9.4 Thanks feature. One of the beauties of YetAnotherForum.NET is its interaction with users through dynamic client-side prompts, button text changes, and popup messages. To achieve that "YAF Standard of Interactive Excellence" I built the 1.9.3 Sueetie Tag Message function with AJAX calling a WCF Service. On the screenshot two or three images earlier you saw how the message "You tagged this message by bitterSTAR as a favorite!" is displayed below the button. That’s cool, but for 1.9.4 I wanted to duplicate the logic of YAF’s new Thanks function. I like it, both front end and back.
At this point the button HTML is updated, ready and waiting for the user to change his or her mind about the favorite message, where the process can be reversed, then reversed again. "This is not my beautiful house! This is not my beautiful wife!"