########################################################
# 	Mantis Bugtracker Add-On
# 	Userdata Version 2.02
#	2022 plugin by Cas Nuy www.NUY.info
#	For Mantis 2.x only
########################################################

This plugin allows to allocate one or more additional fields for each user.
The data will be shown in the bug_view page in readonly mode (this is the data of the Reporter)

Maintenance is done via the user administration.
Upon deleting a user, all correspondingh data is deleted also.
In order to delete the user data, following changes are required:

Define a signal in manage_user_delete.php.
Add the following line :
	event_signal( 'EVENT_ACCOUNT_DELETED', $f_user_id ); 
Just before :
	form_security_purge('manage_user_delete');

Eefine a signal in account_delete.php.
Add the following line :
	Also ensure to define a signal in manage_user_delete.php.
Add the following line :
	event_signal( 'EVENT_ACCOUNT_DELETED', $f_user_id ); 
Just before :
	form_security_purge('manage_user_delete');
You can skip these changes and manally clean the database within the config of the plugin

In case you want to show the data within the MyAccount page (where you can also update the data),
please add the following lines to account_page.php just before "# check if users can't delete their own accounts":
// Userdata-plugin
event_signal( 'EVENT_ACCOUNT_PAGE', $u_id ); 
// Userdata-plugin

In case you want to show the data within the view_user_page ,
please add the following lines to view_user_page.php just before "layout_page_end();
// Userdata-plugin
event_signal( 'EVENT_USER_PAGE',  $f_user_id ); 
// Userdata-plugin

********************************************************************************************
* Installation                                                                             *
********************************************************************************************
Copy the Userdata directory into the plugins folder of your installation.
After copying to your webserver :
- Start mantis as administrator
- Select manage
- Select manage Plugins
- Select Install behind Userdata 2.01
- Once installed, click on the plugin-name for further configuration.

********************************************************************************************
Configuration options                                                                      *
********************************************************************************************
// Should we show userdata inline when viewing an issue
userdata_show_inline		=	ON  // Show userdata along with the issue

// Should we show userdata without content
userdata_show_empty		=	OFF  // Only show fields with content
********************************************************************************************
License                                                                                    *
********************************************************************************************
This plugin is distributed under the same conditions as Mantis itself.

********************************************************************************************
Mantis Issue/forum                                                                               *
********************************************************************************************
http://www.mantisbt.org/bugs/view.php?id=5278
https://mantisbt.org/forums/viewtopic.php?p=73618

********************************************************************************************
Greetings                                                                                  *
********************************************************************************************
Cas Nuy 
cas@nuy.info
http://www.nuy.info