It would be great to come up with features for better organization/moderation of posts (statuses) in space. One of them is better feed clarity.
One possibility is optional color coding of posts according to the selected topic.
Topic would have a configurable highlight color or/and background. Which would be reflected as border-left/background-color at .feed_outer.
Example:Β https://imgur.com/y6abnv5
This way you could, for example, simply mark resolved discussions, or highlight some of them using existing topics functionality.
Primarily I'm interested in marking resolved posts for providing community support, but it may also have an advantage for other usecases like paid highlighting.
Other methods can be used for the "solved" function, such as introducing "post_status" (new, solved, duplicate, rejected,...). Or something like solved extension in discourse https://www.discourse.org/plugins/solved.
But color coding topics can solve this very easily for now. And if one is careful with colors, it won't break the design π.
Great idea! Additionally, it would be useful to allow the ability to change the avatar picture so that, instead of the default user avatar, a specific image can be displayed depending on the topic type.
You can style individual topics using some CSS and a code snippet. I have tested this in great detail, but just a quick proof of concept has this working (you made need to use !important or increase the specificity depending on your setup).
add_action('fluent_community/portal_head', function() {
?>
<?php
});
I add this as a PHP snippet to WPCodeBox so I can easily turn it on or off as I need. Adjust the code as needed for each of your topics. The :has selector is looking for the text in a URL parameter within link within the fcom_feed_topics class.
*haven't tested this in great detail but it appears to work without issue.
add_action('fluent_community/portal_head', function() {
?>
.feed:has(.fcom_feed_topics a[href*="topic=solved"]) {
border: 2px solid #4CAF50; /* Example styling */
background-color: lightgreen; /* Example background */
}
<?php
});
Sorry for all the comments! Something kept happening when I copied the code and you can't edit a comment on this FluentBoard.
add_action('fluent_community/portal_head', function() {
?>
<?php
});
Okay, it's not just me. FluentBoard keeps stripping my code and removing the style tags and contained code.
Anyway, look for this snippet and add it to your child theme or a code snippet plugin: https://github.com/WPManageNinja/fluent-community-docs/blob/master/code-snippets.md#add-custom-css-to-portal
Then the CSS you want to add within the style tags is
.feed:has(.fcom_feed_topics a[href*="topic=solved"]) {
border: 2px solid #4CAF50; /* Example styling */
background-color: lightgreen; /* Example background */
}