Batch update forum tags with ChatGPT

frm

New Member
I started my forum with tags disabled, and I just enabled them.

However, the first point, I'm not getting any tag suggestions. This could be perhaps because I didn't request enterprise and used the API key seen here:

I just requested Enterprise for 4o-mini as that seems the best to suggest tags.

However, Wiki tags aren't being made either.

Also, is there a way to batch update each thread to have suggested tags? I'm not seeing that option as seen in the screenshots.

Thanks,
 
I can’t diagnose any problems without any information, I’m afraid.

There is an auto tag function in the batch update. It uses the title method rather than AI.
 
I can’t diagnose any problems without any information, I’m afraid.
It looks like I'm getting Wiki tags and ChatGPT tags now. It must've been because I didn't fund the Enterprise API and thought it came from my GPT Personal key. Also, there might've been a delay in applying for Enterprise and getting it activated.

I don't quite think that the AI is smart enough though... or it's not prompting it correctly to retrieve the best (or in this case, even close) tags for it.

"game" for "Game of Thrones" in the title.

1727849530324.png

Also get this page for mass batch update tags.

But, I can access it admin.php?threads/batch-update and tick this:
1727849629638.png

But, it won't apply any new tags to older threads (372 found).

1727849734037.png

But, no new tags.

Are they added to a job to complete later?
 

Attachments

  • 1727849073479.png
    1727849073479.png
    22.5 KB · Views: 1
Last edited:
It looks like I'm getting Wiki tags and ChatGPT tags now. It must've been because I didn't fund the Enterprise API and thought it came from my GPT Personal key. Also, there might've been a delay in applying for Enterprise and getting it activated.

I don't quite think that the AI is smart enough though... or it's not prompting it correctly to retrieve the best (or in this case, even close) tags for it.

"game" for "Game of Thrones" in the title.

View attachment 678

Also get this page for mass batch update tags.

But, I can access it admin.php?threads/batch-update and tick this:
View attachment 679

But, it won't apply any new tags to older threads (372 found).

View attachment 680

But, no new tags.

Are they added to a job to complete later?
The batch update only adds tags using the title method (which finds existing tags in the title). Not ChatGPT. That's something I will probably add later on.
 
  • Like
Reactions: frm
The batch update only adds tags using the title method (which finds existing tags in the title). Not ChatGPT. That's something I will probably add later on.
Any way to batch update the older threads?

The link doesn't work and the checkbox doesn't add any tags to older threads.
 
Any way to batch update the older threads?
The batch update only adds tags using the title method (which finds existing tags in the title). Not ChatGPT. That's something I will probably add later on.

The link doesn't work and the checkbox doesn't add any tags to older threads.
What link?
This also breaks the Quick Reply function (type title and drop down the editor).
What version of Xenforo are you running? What do you do to create the error?
 
1727849530324.png
For batch update.

But I can batch update threads using ?threads/batch-update and selecting:
1728023177391.png

However, it doesn't update old threads.
What version of Xenforo are you running? What do you do to create the error?
XF 2.3.3. I simply place my cursor in the Title box in thread_view to make a quick reply. The action should be to drop down the quick message box, but nothing happens. It errors in the console. The only way to make a new thread is with the "new thread" button since the quick reply functionality is broken.

I suspect (but cannot confirm) that the js used is jQuery, which is not supported in 2.3, breaking quick reply.
 
For batch update.
That link is to batch update resources. You presumably don't have the resource manager installed?

But I can batch update threads using ?threads/batch-update and selecting:
Why not just use the admin menu to use the functions rather than going to links? I mean, it's up to you, but it's easier.
XF 2.3.3. I simply place my cursor in the Title box in thread_view to make a quick reply.
Now I'm really confused because there is no title box in the quick reply of thread_view.
Tag Essentials auto tag only works when the title loses focus when creating a new thread. It has no effect at all when replying to posts in existing threads.
 
That link is to batch update resources. You presumably don't have the resource manager installed?
No, just threads. That makes sense then.
Why not just use the admin menu to use the functions rather than going to links? I mean, it's up to you, but it's easier.
I'm not seeing it under the admin menu, but I went to ACP > Search > Batch update threads > Search > 389 matched threads > Check "
Auto-tag content" > Run it and it's "successful", but it doesn't tag old threads.

Only newly created threads are tagged automatically.
Now I'm really confused because there is no title box in the quick reply of thread_view.
I mean this is the template that quick reply is on.

If I set the cursor focus in "Thread title", it should drop down and have a quick reply function. This doesn't work with the add on enabled, only after I disabled it does it work. Enabled:
1728031723216.png

As seen on here, when I set the cursor in the thread title box, it drops down to allow quick reply.

1728031797536.png

Disabled:
1728031898789.png


I misspoke on thread_view, it's forum_view*
 
Last edited:
Tag Essentials 2.6.2

I'm also having conflicts with DB Tech Shop:

#0 src/XF.php(266): XF\Error->logError('URL: https://en...', false)
#1 src/addons/AVForums/TagEssentials/XF/Repository/Tag.php(274): XF::logError('URL: https://en...')
#2 src/addons/AVForums/TagEssentials/XF/Repository/Tag.php(360): AVForums\TagEssentials\XF\Repository\Tag->getWikiPage('https://en.wiki...')
#3 src/addons/AVForums/TagEssentials/XF/Repository/Tag.php(437): AVForums\TagEssentials\XF\Repository\Tag->getWikiDescriptionByExactTitle('New England', 'en', '1')
#4 src/addons/AVForums/TagEssentials/XF/Entity/Tag.php(159): AVForums\TagEssentials\XF\Repository\Tag->getWikiDescriptionByFuzzyTitle('new')
#5 src/XF/Mvc/Entity/Entity.php(1413): AVForums\TagEssentials\XF\Entity\Tag->_preSave()
#6 src/XF/Repository/TagRepository.php(153): XF\Mvc\Entity\Entity->preSave()
#7 src/XF/Service/Tag/ChangerService.php(319): XF\Repository\TagRepository->createTag('new')
#8 src/XF/Service/Thread/CreatorService.php(542): XF\Service\Tag\ChangerService->save(false)
#9 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\CreatorService->_save()
#10 src/addons/DBTech/Shop/Service/Cart/CompleteService.php(223): XF\Service\Thread\CreatorService->save()
#11 src/XF/Service/ValidateAndSavableTrait.php(42): DBTech\Shop\Service\Cart\CompleteService->_save()
#12 src/addons/DBTech/Shop/Pub/Controller/CheckoutController.php(253): DBTech\Shop\Service\Cart\CompleteService->save()
#13 src/XF/Mvc/Dispatcher.php(362): DBTech\Shop\Pub\Controller\CheckoutController->actionComplete(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DBTech\\Shop\\Pub...', 'Complete', Object(XF\Mvc\RouteMatch), Object(DBTech\Shop\Pub\Controller\CheckoutController), Object(XF\Mvc\Reply\Reroute))
#15 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DBTech\Shop\Pub\Controller\CheckoutController), Object(XF\Mvc\Reply\Reroute))
#16 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#18 src/XF.php(806): XF\App->run()
#19 index.php(23): XF::runApp('XF\\Pub\\App')
#20 {main}
 
Keep this message in approval queue so it's invislbe to other users, but let me know if you need more funding to speed up the ChatGPT development to get tags that way too.

I could drop a bit more to help the development out on it if necessary.

I suppose, send me a PM if necessary.

Regards,
 
Keep this message in approval queue so it's invislbe to other users, but let me know if you need more funding to speed up the ChatGPT development to get tags that way too.

I could drop a bit more to help the development out on it if necessary.

I suppose, send me a PM if necessary.

Regards,
Appreciate that. Please leave it with me.
 
  • Like
Reactions: frm
I'm getting these from Wikipedia:
Server error log
ErrorException: URL: https://en.wikipedia.org/w/api.php?...s&exintro&explaintext&redirects&titles=Sequel, Response body:'{"batchcomplete":"","query":{"pages":{"196510":{"pageid":196510,"ns":0,"title":"Sequel","extract":"A sequel is a work of literature, film, theatre, television, music, or video game that continues the story of, or expands upon, some earlier work. In the common context of a narrative work of fiction, a sequel portrays events set in the same fictional universe as an earlier work, usually chronologically following the events of that work.\\nIn many cases, the sequel continues elements of the original story, often with the same characters and settings. A sequel can lead to a series, in which key elements appear repeatedly. The difference between more than one sequel and a series is somewhat arbitrary.\\nSequels are attractive to creators and publishers because there is less risk involved in returning to a story with known popularity rather than developing new and untested characters and settings. Audiences are sometimes eager for more stories about popular characters or settings, making the production of sequels financially appealing.\\nIn film, sequels are very common. There are many name formats for sequels. Sometimes, they either have unrelated titles or have a letter added to the end. More commonly, they have numbers at the end or have added words at the end. It is also common for a sequel to have a variation of the original title or a subtitle. In the 1930s, many musical sequels had the year included in the title. Sometimes sequels are released with different titles in different countries, because of the perceived brand recognition. There are several ways that subsequent works can be related to the chronology of the original. Various neologisms have been coined to describe them.","pageprops":{"jsonconfig_getdata":"1","page_image_free":"Return_of_Tarzan.jpg","wikibase-shortdesc":"Part of a linear narrative that continues the story of a previous work","wikibase_item":"Q261636"}}}}}' src/XF/Error.php:82
Generated by: XXX Oct 7, 2024 at 6:04 AM
 
Stack trace

#0 src/XF.php(266): XF\Error->logError('URL: https://en...', false)
#1 src/addons/AVForums/TagEssentials/XF/Repository/Tag.php(274): XF::logError('URL: https://en...')
#2 src/addons/AVForums/TagEssentials/XF/Repository/Tag.php(360): AVForums\TagEssentials\XF\Repository\Tag->getWikiPage('https://en.wiki...')
#3 src/addons/AVForums/TagEssentials/XF/Repository/Tag.php(437): AVForums\TagEssentials\XF\Repository\Tag->getWikiDescriptionByExactTitle('Sequel', 'en', '1')
#4 src/addons/AVForums/TagEssentials/XF/Entity/Tag.php(159): AVForums\TagEssentials\XF\Repository\Tag->getWikiDescriptionByFuzzyTitle('sequels')
#5 src/XF/Mvc/Entity/Entity.php(1413): AVForums\TagEssentials\XF\Entity\Tag->_preSave()
#6 src/XF/Repository/TagRepository.php(153): XF\Mvc\Entity\Entity->preSave()
#7 src/XF/Service/Tag/ChangerService.php(319): XF\Repository\TagRepository->createTag('sequels')
#8 src/XF/Service/Thread/CreatorService.php(542): XF\Service\Tag\ChangerService->save(true)
#9 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\CreatorService->_save()
#10 src/XF/Pub/Controller/ForumController.php(961): XF\Service\Thread\CreatorService->save()
#11 src/addons/AVForums/TagEssentials/XF/Pub/Controller/Forum.php(24): XF\Pub\Controller\ForumController->actionPostThread(Object(XF\Mvc\ParameterBag))
#12 src/addons/Snog/Games/XF/Pub/Controller/Forum.php(45): AVForums\TagEssentials\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#13 src/addons/Snog/Movies/XF/Pub/Controller/Forum.php(25): Snog\Games\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#14 src/addons/Snog/Music/XF/Pub/Controller/Forum.php(25): Snog\Movies\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#15 src/addons/Snog/TV/XF/Pub/Controller/Forum.php(34): Snog\Music\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(362): Snog\TV\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#17 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(SV\StandardLib\XF\Pub\Controller\Forum), NULL)
#18 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\StandardLib\XF\Pub\Controller\Forum), NULL)
#19 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#20 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#21 src/XF.php(806): XF\App->run()
#22 index.php(23): XF::runApp('XF\\Pub\\App')
#23 {main}
 
Request state

array(4) {
["url"] => string(41) "/forums/hollywood-headlines.8/post-thread"
["referrer"] => string(65) "https://www.website.com/forums/hollywood-headlines.8/post-thread"
["_GET"] => array(0) {
}
["_POST"] => array(15) {
["_xfToken"] => string(8) "********"
["prefix_id"] => string(2) "14"
["title"] => string(82) "Hollywood's Franchise Overload: 2025 Movie Lineup Dominated by Sequels and Remakes"
["discussion_type"] => string(10) "discussion"
["message_html"] => string(6486) "<p>Hollywood’s franchise obsession is showing no signs of slowing down. The top 10 movies of 2024 were all tied to existing intellectual property (IP), and 2025 looks set to follow the same trend. Major studios like Universal, Disney, and Warner Bros. are relying heavily on sequels, prequels, and reboots to draw in audiences.</p><p><br></p><p>By 2025, up to 70% of these studios' releases could be linked to familiar stories and characters. Paul Dergarabedian of Comscore says audiences gravitate toward these "known commodities," driving the studios' strategy.</p><p><br></p><p>Original films barely made a dent in 2024, with just two standouts: Paramount’s "IF" and Neon's "Longlegs." Everything else was a sequel or tied to a book, TV show, or historical figure. Despite that, these films pushed the domestic box office to $6.3 billion.</p><p><br></p><p>While franchise fever isn’t cooling off in 2025, there’s still hope for fresh ideas. Analysts like Shawn Robbins highlight upcoming original films from directors like Jordan Peele and Paul Thomas Anderson that could stand out amid the sequel-heavy slate.</p><p><br></p><p>Wall Street doesn’t expect the box office to hit $10 billion until 2026, with major titles like "Avatar," Avengers, and Star Wars on the horizon. Iconic franchises like Super Mario, Shrek, and Toy Story will also play a big part in boosting future ticket sales.</p><p><br></p><p>A glance at the final quarter of 2024 and the packed 2025 lineup reveals Hollywood’s major studios betting big on 50 sequels, prequels, and reboots to keep the box office thriving.</p><p>&nbsp;</p><table style="width: 100%;"><thead><tr><th style="width: 7.0028%;">Year</th><th>Movie Title</th><th>To Be Released</th><th>Studio</th></tr></thead><tbody><tr><td>2024</td><td>Smile 2</td><td>Oct. 18, 2024</td><td>Paramount Pictures</td></tr><tr><td>2024</td><td>Venom: The Last Dance</td><td>Oct. 25, 2024</td><td>Sony Pictures</td></tr><tr><td>2024</td><td>Gladiator 2</td><td>Nov. 22, 2024</td><td>Paramount Pictures</td></tr><tr><td>2024</td><td>Wicked: Part One</td><td>Nov. 22, 2024</td><td>Universal Pictures</td></tr><tr><td>2024</td><td>Moana 2</td><td>Nov. 27, 2024</td><td>Walt Disney Pictures</td></tr><tr><td>2024</td><td>Kraven the Hunter</td><td>Dec. 13, 2024</td><td>Sony Pictures</td></tr><tr><td>2024</td><td>The Lord of the Rings: The War of the Rohirrim</td><td>Dec. 13, 2024</td><td>Warner Bros.</td></tr><tr><td>2024</td><td>Mufasa: The Lion King</td><td>Dec. 20, 2024</td><td>Walt Disney Pictures</td></tr><tr><td>2024</td><td>Sonic the Hedgehog 3</td><td>Dec. 20, 2024</td><td>Paramount Pictures</td></tr><tr><td>2025</td><td>Den of Thieves: Pantera</td><td>Jan. 10, 2025</td><td>Lionsgate</td></tr><tr><td>2025</td><td>Wolf Man</td><td>Jan. 17, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Paddington in Peru</td><td>Jan. 17, 2025</td><td>Sony</td></tr><tr><td>2025</td><td>Dog Man</td><td>Jan. 31, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Captain America: Brave New World</td><td>Feb. 11, 2025</td><td>Disney</td></tr><tr><td>2025</td><td>Bridget Jones: Mad About the Boy</td><td>Feb. 14, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>The Smurfs Movie</td><td>Feb. 14, 2025</td><td>Paramount</td></tr><tr><td>2025</td><td>Snow White</td><td>Mar. 21, 2025</td><td>Disney</td></tr><tr><td>2025</td><td>Minecraft</td><td>Apr. 04, 2025</td><td>Warner Bros.</td></tr><tr><td>2025</td><td>Michael</td><td>Apr. 18, 2025</td><td>Lionsgate</td></tr><tr><td>2025</td><td>Thunderbolts</td><td>May. 02, 2025</td><td>Disney</td></tr><tr><td>2025</td><td>Mission Impossible 8</td><td>May. 23, 2025</td><td>Paramount</td></tr><tr><td>2025</td><td>Karate Kid</td><td>May. 30, 2025</td><td>Sony</td></tr><tr><td>2025</td><td>Ballerina (John Wick)</td><td>Jun. 06, 2025</td><td>Lionsgate</td></tr><tr><td>2025</td><td>Dirty Dancing</td><td>Jun. 06, 2025</td><td>Lionsgate</td></tr><tr><td>2025</td><td>How to Train Your Dragon</td><td>Jun. 13, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>28 Years Later</td><td>Jun. 20, 2025</td><td>Sony</td></tr><tr><td>2025</td><td>MEGAN 2.0</td><td>Jun. 27, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Spider-Man Universe (Untitled)</td><td>Jun. 27, 2025</td><td>Sony</td></tr><tr><td>2025</td><td>Jurassic World: Rebirth</td><td>Jul. 02, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Superman: Legacy</td><td>Jul. 11, 2025</td><td>Warner Bros.</td></tr><tr><td>2025</td><td>I Know What You Did Last Summer</td><td>Jul. 18, 2025</td><td>Sony</td></tr><tr><td>2025</td><td>Fantastic Four: First Steps</td><td>Jul. 25, 2025</td><td>Disney</td></tr><tr><td>2025</td><td>The Bad Guys 2</td><td>Aug. 01, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>The Naked Gun</td><td>Aug. 01, 2025</td><td>Paramount</td></tr><tr><td>2025</td><td>Nobody 2</td><td>Aug. 15, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Insidious (6th)</td><td>Aug. 29, 2025</td><td>Sony</td></tr><tr><td>2025</td><td>The Conjuring: Last Rites</td><td>Sep. 05, 2025</td><td>Warner Bros.</td></tr><tr><td>2025</td><td>Downton Abbey sequel</td><td>Sep. 12, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Gabby’s Dollhouse</td><td>Sep. 26, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Saw XI</td><td>Sep. 26, 2025</td><td>Lionsgate</td></tr><tr><td>2025</td><td>The Bride!</td><td>Sep. 26, 2025</td><td>Warner Bros.</td></tr><tr><td>2025</td><td>Tron: Ares</td><td>Oct. 10, 2025</td><td>Disney</td></tr><tr><td>2025</td><td>The Black Phone 2</td><td>Oct. 17, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Mortal Kombat 2</td><td>Oct. 24, 2025</td><td>Warner Bros.</td></tr><tr><td>2025</td><td>Now You See Me 3</td><td>Nov. 14, 2025</td><td>Lionsgate</td></tr><tr><td>2025</td><td>Wicked: Part II</td><td>Nov. 21, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Zootopia 2</td><td>Nov. 26, 2025</td><td>Disney</td></tr><tr><td>2025</td><td>Five Nights at Freddy’s 2</td><td>Dec. 05, 2025</td><td>Universal</td></tr><tr><td>2025</td><td>Avatar: Fire and Ash</td><td>Dec. 19, 2025</td><td>Disney</td></tr><tr><td>2025</td><td>SpongeBob Movie: Search for SquarePants</td><td>Dec. 19, 2025</td><td>Paramount</td></tr></tbody></table><p><br></p><p>Source: <a href="https://www.cnbc.com/2024/10/06/box-office-2025-movies-existing-intellectual-property.html" target="_blank">https://www.cnbc.com/2024/10/06/box-office-2025-movies-existing-intellectual-property.html</a></p>"
["attachment_hash"] => string(32) "29a1bdf396d0a8e4d84f81a4414eff1e"
["attachment_hash_combined"] => string(81) "{"type":"post","context":{"node_id":8},"hash":"29a1bdf396d0a8e4d84f81a4414eff1e"}"
["tags"] => string(41) "movie, to be released, theatrical release"
["watch_thread"] => string(1) "1"
["watch_thread_email"] => string(1) "1"
["_xfSet"] => array(1) {
["watch_thread"] => string(1) "1"
}
["nodeId"] => string(1) "8"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
["_xfRequestUri"] => string(41) "/forums/hollywood-headlines.8/post-thread"
}
}
 
Back
Top