XF 2.3 Trending content

Since the initial release of XenForo 2.3, there has been a new system working away behind the scenes. One that some developers might have spotted but one that we hadn't actually talked about yet, because it wasn't relevant. Until now!

Let's talk about this somewhat underlying system first.

Content activity log​

This is a generic system, based on content types, which we strongly recommend you consider using for your own add-ons. Essentially what this does is keep a log of content and tracks various metrics including view counts, reaction count, reaction score and content vote counts/scores. A deeper dive into the technical bits involved in its implementation is beyond the scope of this post, but developers might want to check XF\ActivityLog\AbstractHandler, and one of the implementations for threads or posts.

You can control how long activity logs are kept for using the "Activity log length" option:

1712339680002.webp


On its own, the system doesn't do anything but let's look at how we're going to use it in XenForo 2.3.

Trending content​

Trending content is a new way for users to discover the popular content happening on your forum. We very much see this as a precursor to grander improvements to content discovery in general in the future, focusing around helping users find the content that matters; the content that is currently "hot" or otherwise popular.

1712338857154.webp


For now this is a widget that you can add wherever you want, by default we'll be adding this to the various forum overview pages including the forum list and what's new pages. But you can place yours anywhere you like. Let's take a look at the widget settings:

1712340545268.webp


Contextual content​

Trending contents are fully context aware, and you can control the behaviour of this here. For example, if the widget is enabled on a forum specific widget position, the widget can be configured to display only trending threads from this forum.

Ordering​

The two options here are "Hot" and "Top" and these decide how the results are ordered. Results which are ordered by "Hot" are more heavily weighted by how recent the content is. This is probably the best choice for busier forums.

Duration​

This is the number of days we calculate metrics over. We default this to 7 days, but you can make this as long as the value of the "Activity log length" option.

Content type​

This is where you can restrict the widget to only displaying a specific content type. By default this will be a mixed list of all content on your forum.


We also have a few options to more granularly control how trending content is calculated:

1712340182995.webp


Trending content weights​

You have full control over how the metrics from the activity log are weighted towards trending content. By default we don't include reaction count, vote count and vote score as these are less relevant for mixed content type lists. But you may choose to weight any of the metrics here more or less heavily depending on what metrics you feel are more relevant to indicate what is trending.

Trending content half life​

This is used to tweak how recency of content affects the "Hot" ordering of your trending content. After the period defined here, the weights of the activity log metrics are worth half as much.

And that's it for today. We have enabled the widget here with its default configuration and positions so you can check it out ahead of its release in Beta 4 hopefully next week.
 
Would be nice, as, discovery is what is really needed to get people to use them more, it's a great feature similar to a post on social media that simply gets buried, so is underutilized.
In the forums I've used it in, Profile Posts were widely misunderstood and at most, an annoying distraction. Our membership skews older, and we've had everything from messages intended to be private, to forbidden content (usually behavior that a member was reprimanded for in threads), posted in profile posts, and even staff forgot they existed. So I disabled them entirely--wiped them out of the database, and used template edits and permissions changes to remove them completely.
 
My site likes them a lot but usage dropped dramatically after changing to XF since they are not integrated. Would be a nice option to be able to select in the Trending menu, not for everyone of course, but it is a content type, and "all" content types was mentioned.
 
It would be nice if it were algorithms based.😃
What do you mean? It is algorithm based. This is an algorithm but they can take many forms. For example trends on X can be based on people or topics you follow. Ultimately what we have here is very similar to implementations on sites like Reddit though there is likely more filtering, metrics and conditions involved.

So such a suggestion would really need to explain specifically how you would want things to change.
 
In the forums I've used it in, Profile Posts were widely misunderstood and at most, an annoying distraction. Our membership skews older, and we've had everything from messages intended to be private, to forbidden content (usually behavior that a member was reprimanded for in threads), posted in profile posts, and even staff forgot they existed. So I disabled them entirely--wiped them out of the database, and used template edits and permissions changes to remove them completely.

Same situation here, members often thought they were private conversations and often posted addresses, phone numbers, etc. I can see them possibly being useful for other sites, but we've had them completely disabled for years now.
 
I love these type of content discovery improvements! Beautifully done and very useful. Thank you! :)

Trending contents are fully context aware, and you can control the behaviour of this here. For example, if the widget is enabled on a forum specific widget position, the widget can be configured to display only trending threads from this forum.
Nice! Will this work on a category (or multiple selected forums) level as well, or only a single forum level at the moment?
 
By the way, this is a really cool feature for 2.3 since only smaller features were expected to be announced, it's pretty huge.
 
Top Bottom