Mod Name: Merge Topic Mod Version: Beta 2 Snitz Forums Tested with: 3.4.05 and newer (should be able to work with all 3.4 versions) Database support: All database types supported Author: Davio Last Updated: September 25, 2006.
Description: This mod allows you to merge 2 topics together, along with all of their replies. Replies will be ordered by their post date.
To-Do: - Add feature to email author that his topic was merged with another. - Handling of subscriptions need to be dealt with for both topics being merged. - Maybe get a better icon to use? - Fix bugs!
Known Bugs: - When merging 2 topics between 2 different forums, the merged topic ends up in the wrong forum. FIXED in beta 2
You guys have been asking me for this code for the longest while. So here it is. It is not fully ready for prime time. There is still some things left on the To-Do list and some bugs to iron out. But hoping with your help, we can get it there more quickly, instead of waiting on me.
Please don't use this on your live forum as yet. If you do, don't come and blame anyone here that your topics got messed up.
Please post your bug reports, errors, suggestions in this thread.<
Ok, I see the logic of my coding in the post_info.asp file needs a little more working on.
I'm using the older topic, the topic that has the older date, as the target topic. But when you merging between 2 forums, there is no way to find out which topic the mod/admin wants to merge with, using this logic. Because he could be merging an older topic with a newer topic.
So it will need a little recoding there.
Identify the topic mod/admin wants to merge with, then after, sort out which topic is older and let it remain as the main topic. The replies can come afterwards.
Did you all get that? This thing is busting my brains. lol<
not sure if that's related to your above post, btw I also have your split topic mod installed on an already moded snitz, and I used the complete url to the topic to merge to, not sure if that's the correct way of doing it.<
Yes, that part of the code is on the to-do list. Has to do with sending an email out to the author about what is happening with his topic. Can comment out that part of the code or change the 1 in this line " if lcase(strEmail) = "1" then" to 0. That will effectively turn off that section of the code.
Still busting my brains with the code when merging topics from different forums. Works if the topic is in the same forum though.<
I think I fixed the bug with merging topics across forums. Only thing changed was the Merge Topic Mod code in post_info.asp. So copy the code from lines 957 - 1313 in post_info.asp to update to BETA 2.
Things you can test. 1. Merge topics in same forum. 2. Merge topics from different forums. 3. Merge topics and give it a new subject. 4. Do #1 and monitor the Topic and Replies count on default.asp 5. Do #2 and monitor the Topic and Replies count on default.asp 6. Merge topics with no replies. 7. Merge topics with replies. 8. Make sure the last post links point to the last posted reply or topic.
I have disabled the subscription section of the code, so you won't run into any errors while testing.<
1. Merge topics in same forum. Worked 2. Merge topics from different forums. Worked 3. Merge topics and give it a new subject. Worked 4. Do #1 and monitor the Topic and Replies count on default.asp Worked 5. Do #2 and monitor the Topic and Replies count on default.asp Worked 6. Merge topics with no replies. Worked 7. Merge topics with replies. Worked 8. Make sure the last post links point to the last posted reply or topic. Worked
As you can see, I had no problems so far... tested with and without locked forums, seems to work well.
Will give it some more testing with a live forum I'm running and get back to you with more info. <
Excellent! Thanks OneWay! Whew! Glad I got the main part working. But it's not feature complete yet. Need to alert authors when moving their topics around. They will be totally lost without it.
Also need to take care when merging with moderated topics/replies. And to email subscribers that there are new replies to the topic they subscribed to.<
OneWay, just out of curiosity, I checked the snitzbitz site a while ago and it showed the mod was downloaded 0 times since I uploaded it. How was it you downloaded the mod and the counter didn't increase?
I just downloaded it and it increased by 1. Strange.<
Hehehe, umm... the zip file says Beta 1, the files in the zip are the same as those in Beta 2 though... (And I only read this topic after you posted about Beta 2)<
1. Merge topics in same forum. ok 2. Merge topics from different forums. ok 3. Merge topics and give it a new subject. ok 4. Do #1 and monitor the Topic and Replies count on default.asp ok 5. Do #2 and monitor the Topic and Replies count on default.asp ok 6. Merge topics with no replies. ok 7. Merge topics with replies. ok 8. Make sure the last post links point to the last posted reply or topic. ok
AS you already say it, only problem I see is the lack of subscription function. Dou you have any plan to work on subscriptions or should i start to write my own?
thanks for the great work, I really appreciate it.<