liam1412 Posted January 11, 2007 Share Posted January 11, 2007 As above.Just want a move function so I can change the forum that a thread is in but i want to leave the topic title in the forum I have moved it from so the OP can see that it has been moved. Any Ideas??? Link to comment https://forums.phpfreaks.com/topic/33730-whats-the-best-way-to-code-for-moving-a-thread/ Share on other sites More sharing options...
trq Posted January 11, 2007 Share Posted January 11, 2007 This really depends on how your forum database is setup. You'd need your subjects to be in a sperate table to the topics themselves. Read the thread into a variable and then insert it as a new thread wherever you please, then, you would simply update the topic to point to the new thread (in whatever forum youve moved it too).Of course there are probably other ways but as I said, this all depends on YOUR setup. Link to comment https://forums.phpfreaks.com/topic/33730-whats-the-best-way-to-code-for-moving-a-thread/#findComment-158150 Share on other sites More sharing options...
liam1412 Posted January 11, 2007 Author Share Posted January 11, 2007 I have 3 tablesforum_category forum_question - contains the topic title and text amongst other thingsforum_answer - contains all the replies.is there a way round it without me re doing my databases.Ta Link to comment https://forums.phpfreaks.com/topic/33730-whats-the-best-way-to-code-for-moving-a-thread/#findComment-158158 Share on other sites More sharing options...
taith Posted January 11, 2007 Share Posted January 11, 2007 yes... you should have the questions/answers pointed to a category, just switch them... Link to comment https://forums.phpfreaks.com/topic/33730-whats-the-best-way-to-code-for-moving-a-thread/#findComment-158160 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.