Customizing SMF > SMF Coding Discussion

Splitting topics change subject

(1/8) > >>

ashish101:
When a thread is split into 2 topics then the subject of all the posts in the new topic created is changed. Is it possible to change the subject of just the first post in the new topic and leave subject of other posts as it is?

Thanks in advance for your time.

Chas Large:
Yes, just leave the name unchanged but remove the "Re:" and split the topic, you then get two identical topics. Just modify the title of the first post in the new topic.

So topic called "My Test" with 20 replies. Replies 1-19 all titled "Re: My Test". Split at reply 10 to 20 and topic title unchanged.

Now have new topic entitled "My Test" with 9 replies all entitled "Re: My Test"

Modify title of first post in new topic to "My Test II" but all replies still show "Re: My Test"

Topics are stored by topic id not by the title, you could have hundreds of topics with the same title (but that would just be silly).

Hope that's what you're after ;)

ashish101:

--- Quote from: Chas Large on September 10, 2012, 09:57:21 AM ---Yes, just leave the name unchanged but remove the "Re:" and split the topic, you then get two identical topics. Just modify the title of the first post in the new topic.

So topic called "My Test" with 20 replies. Replies 1-19 all titled "Re: My Test". Split at reply 10 to 20 and topic title unchanged.

Now have new topic entitled "My Test" with 9 replies all entitled "Re: My Test"

Modify title of first post in new topic to "My Test II" but all replies still show "Re: My Test"

Topics are stored by topic id not by the title, you could have hundreds of topics with the same title (but that would just be silly).

Hope that's what you're after ;)

--- End quote ---
Thanks Chas but in my case most of the replies have their own subject so replies #1 - #19 are not just Re: Topic subject but different subjects. So need to disable the renaming of subject of all the replies but keep it only for the new topic's subject if possible.

Chas Large:
Hmmm, confucious he say, more info to begin with would save wasted time. Well he wouldn't but I would.  :-\

Sorry but I know of no other way of doing it. Have you searched for a mod that might achieve this?

ashish101:
Yep, searched for the Mod but there's none for this use case. As far as I understand it has to be a small code change in Sources -> SplitTopics.php. I tried few code changes as well but didn't work.

Navigation

[0] Message Index

[#] Next page

Go to full version