[OzzModz] Auto Merge Double Posts

[OzzModz] Auto Merge Double Posts 2.0.1

No permission to download

Phid

Member
Could you add an option to disallow the user from using the tag?
A user found out that it can be used to mess around and put content in it which then is not visible.

Example:

Code:
[automerge]00000000

[QUOTE]This message won't be rendered[/QUOTE]

[IMG]http://this image wont be visible.jpg[/IMG]

[/automerge]
 

TAIFUN

Active member
Can you add a "forums - exception" option? Or list of forums in which the plugin should work.
P.S. From vBulletin addon:
"Enter a list of forum IDs in which you want to disable the plugin"
 

ivp

Active member
@Ozzy47 got the following error, could be related to guest posting being enabled:
Code:
Error: Call to a member function getAllowedUserMentions() on null src/addons/ThemeHouse/AutoMergeDoublePost/XF/Pub/Controller/Thread.php:140
Generated by: Unknown account
Code:
Stack trace
#0 src/addons/ThemeHouse/AutoMergeDoublePost/XF/Pub/Controller/Thread.php(98): ThemeHouse\AutoMergeDoublePost\XF\Pub\Controller\Thread->finalizePostMerge(Object(XF\Service\Post\Editor), '...')
#1 src/addons/ThemeHouse/AutoMergeDoublePost/XF/Pub/Controller/Thread.php(38): ThemeHouse\AutoMergeDoublePost\XF\Pub\Controller\Thread->mergeReply(Object(XF\Mvc\ParameterBag), Object(SV\ElasticSearchEssentials\XF\Entity\Post))
#2 src/XF/Mvc/Dispatcher.php(352): ThemeHouse\AutoMergeDoublePost\XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(SV\ElasticSearchEssentials\XF\Pub\Controller\Thread), NULL)
#4 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\ElasticSearchEssentials\XF\Pub\Controller\Thread), NULL)
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
 

ivp

Active member
If somebody needs, here are SQL queries for finding and removing automerge code.

Find posts having automerge code and preview changes:
Code:
SELECT post_id, message, REGEXP_REPLACE(message, '\\[automerge][0-9]*\\[\\/automerge\\]', '') AS message_after FROM xf_post WHERE message LIKE "%[automerge]%";

Important: Backup xf_post table first before making any changes.

Delete automerge code from posts:
Code:
UPDATE xf_post SET message = REGEXP_REPLACE(message, '\\[automerge][0-9]*\\[\\/automerge\\]', '') WHERE message LIKE "%[automerge]%";
 

TAIFUN

Active member
@Ozzy47
Can you add a "forums - exception" option? Or list of forums in which the plugin should work.
P.S. From vBulletin addon:
"Enter a list of forum IDs in which you want to disable the plugin"
Mod version
amdp1 - MOD.png
 

Attachments

  • [OzzModz] Auto Merge Double Posts 2.0.1 MOD.zip
    184.4 KB · Views: 1

Albanian

Member
Is this addon still working with the recent versions, ive tried the addon but i were able to create the same thread with content over and over.. It didnt merge with the previous threads
 
Top