PDA

View Full Version : Auto-move thread


patvdv
05-07-2002, 08:47 AM
Hi,

I am trying to come up with a way to move threads by a background job. I have seen that there is a routine present in postings.php to accomplish this but it works by means of an interactive dialog first (the move thread option). How can I make a thread move WITHOUT having to pass through this dialog box?

I have tried something like:
../../postings.php?s=&action=domove&threadid=7000&forumid=66&method=move

But it doesn't work. Any ideas?

Admin
05-07-2002, 12:17 PM
Just look at the postings.php code and copy it to your file.

patvdv
05-07-2002, 01:25 PM
Mmm, that doesn't really help me any further. What difference does it make if I duplicate the code in my own script? Or do I only take a part of the 'move thread' section?

Admin
05-07-2002, 02:45 PM
Only part of it, you don't need to check for moderator permissions, just the queries that actually move the thread ("UPDATE thread SET forumid" or whatever).

patvdv
05-07-2002, 08:05 PM
Hey Firefly,

Thanks for the pointers! I will play around a little bit and see if I can get it working :)