@tim-c Great. I think i already use the invitation plugin, But the problem is most users hardly use it. Only the admin of the site use it extensively.
iterate on nodebb posts
@sanatisharif , the import plugin already does that, as long as you have actually completed the import process. You can iterate over all of these records, posts, topics, signatures, etc.. and convert them, either via custom JS or using the built-in HTML-To-Markdown, or BBCode-To-Markdown, or both at the same time.
The best part is that importer had already save a copy of the original content, so you can run it multiple times, each time as if it was the first.
Now, granted, your plugin https://github.com/sohrabafard/nodebb-plugin-alter-allContent, would be a little different, because it won't require the import plugin, nor any import process to occur.
@julian I believe @sanatisharif just want to iterate over all posts and topics and do some string operations on them. most likely to fix this, https://github.com/akhoury/nodebb-plugin-import/issues/108
@sanatisharif , im looking into this today
i'll fix the utf-8 thingy and we can write your plugin later, but it should be easy.
@bentael yes I wan't this plugin to fix imported posts, also I can't use "Toggle Post-import-tools" because of this issue:
pre-parse function Syntax:
content = encoding.convert(content,"windows-1252","utf8").toString().replace(/�/gi,'ف');
@sanatisharif glad to know what worked for you. Can you share a link to your forum, i'd like to test the encoding on various operating systems
using this plugin - alter all existing content - we can remove all unrecognized bbcode to markdown plugin.
@bentael I write this
run_me.jsfile and run it with
contentfiled and update it.
how to efficient it using