Geeklog-Core / geeklog

Geeklog - The Secure CMS.
https://www.geeklog.net
25 stars 19 forks source link

Fix Support Adding Fields in User Settings for Privacy #1064

Closed eSilverStrike closed 4 years ago

eSilverStrike commented 4 years ago

Geeklog Messenger Plugin included support for adding Privacy options to the user settings via the PLG_profileVariablesEdit function just like the forum plugin adds in the extra About You fields.

https://github.com/Geeklog-Plugins/messenger/issues/3

Currently the About You fields get added automatically without any template or code changes. Update the Privacy options to work the same way.

This means all plugins can take advantage added whatever fields they want to the About You and Privacy sections of the User Settings just as long as they have the functions

plugin_profilevariablesedit_foo (used to display the extra fields) plugin_profileextrassave_foo (used to filter and save the extra fields)