Merge On Split Mod

Everything, that fits not well into other forums - Questions, Talk, Beta-Versions ...
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
bpetersen
Posts: 206
Joined: 10. Sep 05, 11:00
Location: Hamburg, Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Merge On Split Mod

Postby bpetersen » 7. Nov 05, 02:02

This is a little "Mod" for the php Bulletin Board and is not directly Silverjuke related. The original thread can be found .

MOD Title: Merge On Split Mod
MOD Description: Merging post to another topic from the "Split Topic Control Panel".
MOD Version: 0.9.3

MOD Download:

Installation Level: Easy (file copy and three one-line-changes)
Installation Time: 5 Minutes

If this mod is installed, you can enter or paste an existing topic URL instead of a new topic title in the "Split Topic Control Panel". If the URL is valid, the selected posts are merged with the given topic then, "Split from selected post" also works. Moreover, if no posts are selected, all posts are moved to the destination topic one and the original topic is removed.

merge_on_split_mod_0_9_3.zip
(5.09 KiB) Downloaded 795 times


Note that the destination topic starting date must be older than the date of any post to move to there. However, the program checks this point and prints an error in this case.

I decided not to add an additional control for this function, as the function is normally seldomly used and so no templates must be changed for this little mod.

This mod is based on the mod by Alan Sinsheimer, but the original mod does not allow to move complete topics, requires to change the template and makes more changes to modcp.php. In some way, this mod also replaces the mod. However, this mod is not "better" than the original ones, I just developed it to fit my needs and posted it here as it may be useful for someone elses.

I have already tested the mod on some forums, but I cannot offer an testing account with moderator rights ;-) - so please have a look at the screenshot provided above.
Attachments
merge_on_split_mod_1.gif
merge_on_split_mod_1.gif (12.89 KiB) Viewed 6436 times

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Main Forum”