Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Disabling stub discussions
websfere
New
Hello. Regarding version 2.5, I have tried disabling stub discussions from plugins (dashboard), but the stub discussions still remain on the site. Is anyone else having this issue? How can this be fixed? Thank you.
0
Comments
Not sure about that, but I think the only way to avoid having that data would be to alter file
/conf/config-defaults.php
and change$Configuration['EnabledPlugins']['stubcontent'] = true;
to$Configuration['EnabledPlugins']['stubcontent'] = false;
before you install Vanilla. I don't think there is a good way to purge the contents inserted by that plugin. Maybe you should raise that as an issue on github.
Thank you R_J. I will try your recommendations.
That would be the best way via config
Pre-installation....
but for a learning experience - you could comment out
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/class.stubcontent.plugin.php#L88
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/class.stubcontent.plugin.php#L91
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/class.stubcontent.plugin.php#L94
for a learning experience you could experiment....
note that only the first line conversations.
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/content/conversation.yaml
if you remove lines 3 to the end in any file (if you want partial insertion without additional users)
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/content/comment.yaml
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/content/discussion.yaml
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/content/user.yaml
it would prevent the discussions, comments and users from being inserted
or you could change the discussions and comments "author line to "system or any user you want" if you wanted
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/content/discussion.yaml#L4
https://github.com/vanilla/vanilla/blob/master/plugins/stubcontent/content/discussion.yaml#L25
and so on.
in the files if you wanted to keep the contents and discussions but not have additional users.
The gotcha to all of these
editing conf/config-defaults.php or editing the plugin are all invasive to core files and will be overwritten during next update.
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.
You are very thorough. Thank you River.
Just delete the plugin from the package before installing.
All of the above work. Thanks.