Reduce some N+1 queries on viewing tag recent contents & top users
This version supports XF2.1 and 2.2
Yeah I'd really like this too.I have a "question" about the "Watch tag" feature. In my opinion (and thats what i thought how it works) it would make way more sense to have a list with all the content that where tagged with the watched tag. So when i watch the tags "Audi A4" and "Ford Mustang" i will have a mixed list with all the recent content that where posted with those tags.
By that, you could have a content discovery with only the topics (content) you like (watch).
My users want to watch a tag and then all the threads appear in the threads you're watching widget.
Yep, it'll probably only be a few lines of code to make the watched threads widget show all the threads from tags people are watching, but it's above my abilityExactly! With this you could follow all the topics you are interested and you don't have to care about the "boring" stuff! In my opinion this is a must have (and would be a game changer for me)!
xf_tag_content
has the correct association with bar
, but the tags
cache in the xf_thread
table is out of date.XF:TagRecache
job needs to be enqueued for all synonym tags when making updates?Not at the momentSorry, another question: Is it possible to "pre fill" the tag field with a custom link? I would like to create a new button in tag view which says something like "Post new thread with tag XYZ".
I really like this idea. Maybe put Watched Threads and Watched Tags into separate tabs in the Watched page. @Xon?I have a "question" about the "Watch tag" feature. In my opinion (and thats what i thought how it works) it would make way more sense to have a list with all the content that where tagged with the watched tag. So when i watch the tags "Audi A4" and "Ford Mustang" i will have a mixed list with all the recent content that where posted with those tags.
By that, you could have a content discovery with only the topics (content) you like (watch).
@Xon?There appears to be a minor caching issue with synonyms (as tested with 2.3.1):
To reproduce
1. Create a new thread and add a tag 'foo'
2. Create a new tag 'bar' using the control panel, and add 'foo' as a synonym
Expected result
The thread should now display the 'bar' tag
Actual result
The thread continues to display the 'foo' tag. If you click it, you get 'No results found.' If you go to edit the tags, you see 'bar' correctly. As far as I can tell, thexf_tag_content
has the correct association withbar
, but thetags
cache in thexf_thread
table is out of date.
I think possibly theXF:TagRecache
job needs to be enqueued for all synonym tags when making updates?
(It'd also be neat if synonym'ed tags (when they have no results?) redirected to their 'parent' tag)
Id put them in the same thing and update watched threads and watched threads widget to show all threads watched either by watched thread or watched tag.I really like this idea. Maybe put Watched Threads and Watched Tags into separate tabs in the Watched page. @Xon?
Synonyms exist to route the use of commonly type tags to a single canonical tag.Also, could you explain how synonyms and canonical tags work? I thought a synonym is routing to the "main" tag but instead it seems it's a stand alone tag with no benefits.
Ok, i see. Thanks for clarification. But the tag pages of uhd, ultra hd and ultra high definition are still visible, right? In my opinion that doesn't make sense because you don't have new content under those tags.
And if you change all old threads who are tagged with uhd to use the new uk uhd (ultra hd) tag, the tag page from uhd says there is no content within that tag.
Yes@Stuart Wright, so is this the right behaviour?
Some tags are blacklisted. Please change the following tags: golden teacher
I'm getting a blacklist error when adding a tag.
FYI: I have no tags in the blacklist
It seems to be happening on existing tags only, I have to add the tag to the blacklist and then remove to be able to add an existing tag.
Error:
Code:Some tags are blacklisted. Please change the following tags: golden teacher
Yes, I have all tag permission set to Yes and I'm running version 2.3.1 on XF 2.2.1Do you have permission to add tags? Are you running the latest version?
Are you using the "Restrict addition of tag to threads in these forums" feature for the tag?I'm getting a blacklist error when adding a tag.
FYI: I have no tags in the blacklist
It seems to be happening on existing tags only, I have to add the tag to the blacklist and then remove to be able to add an existing tag.
Error:
Code:Some tags are blacklisted. Please change the following tags: golden teacher
We use essential cookies to make this site work, and optional cookies to enhance your experience.