htsumer
Active member
I plan to use AI to generate thread titles based on the topic in the xf_thread and xf_post tables, and then execute an SQL query to replace the old thread titles in xf_thread. I intend to do this through phpMyAdmin. Are there any risks involved? In short, I will give the xf_post message part to the AI, and it will prepare an SQL query to create the first message for this topic and add it to the xf_thread table.
Code:
✅ xf_thread
thread_id
title
first_post_id
✅ xf_post
post_id
thread_id
message (real content of the topic)
👉 The topic content on XenForo = xf_post.message
👉 Topic title = xf_thread.title
👉 Main content = xf_thread.first_post_id = xf_post.post_id
SELECT
t.thread_id,
t.node_id,
t.title AS eski_baslik,
LEFT(p.message, 2000) AS konu_icerigi
FROM xf_thread t
JOIN xf_post p ON p.post_id = t.first_post_id
WHERE p.message_state = 'visible'
LIMIT 10;
Last edited:
Upvote
0