PDA

View Full Version : Moving threads using a script


bigfoot
08-05-2007, 05:47 PM
I'm having some troubles moving a threads using my own script. I can of course just change the forum ID, but then the forumcache is not up to date.

What I'm trying to do, is when my moderators click a button in a thread, that thread must be moved to a predefined section along with changing some information for the user that posted the thread. The only problem is that I don't know how to move threads properly. I have tried searching this forum, but I haven't find any threads that helped me.

Thanks in advance,
Bigfoot

Opserty
08-05-2007, 07:30 PM
May not be the best way but this is the way I have done it:

// REBUILD FORUM THREAD INFO AFTER MOVE
require_once(DIR . '/includes/functions_databuild.php');
build_forum_counters($forumid);


It seems to work, may not be the most efficient way though.

bigfoot
08-05-2007, 08:56 PM
Thanks for your help. I will try this :D