Jump to content
TNG Community

User defined fields on Individual


4lexsharpe

Recommended Posts

It would be useful if there were a couple of un displayed blank fields on the individual. These could be populated by admins only and used to create a query in the reports page.

Link to comment
Share on other sites

Rob Severijns

Alex,

I believe those fields are already available.

They are called Custom Event Types an can be created via Admin --> Custom Even Types.

 

Rob

Link to comment
Share on other sites

Rob Severijns

Alex,

The Custom Event Type can not hidden.

The notes and media linked to a Custom Event can be hidden.

For the entire Custom Event to be hidden someone needs to write a mod. I Don't think it already exists.

Rob

Link to comment
Share on other sites

1 hour ago, Rob Severijns said:

The Custom Event Type can not hidden.

Alex/Rob

Rob Roy and I have discussed hiding a Custom Event this week. No result yet but if no one can offer a solution we will look into it further.

Link to comment
Share on other sites

38 minutes ago, Brett said:

Alex/Rob

Rob Roy and I have discussed hiding a Custom Event this week. No result yet but if no one can offer a solution we will look into it further.

Brett, Thanks for the update. 

Link to comment
Share on other sites

Rob Severijns

Brett,

52 minutes ago, Brett said:

Rob Roy and I have discussed hiding a Custom Event this week. No result yet but if no one can offer a solution we will look into it further.

Thx.

I will start a new topic in New Ideas and Suggetions regarding the setting of Private flag for Media files at the Individual and/or Family level.

 

Rob

Link to comment
Share on other sites

Michel KIRSCH

 Hi All!

Assuming yout Custom Event name is "MYTAG", to hide this event :

Into the personlib.php file, in function doCustomEvents(),

after the lines

    while ( $custevent = tng_fetch_assoc( $custevents ) )    {
        $xnote = '';


insert these lines :

//Hide this event
if ($custevent['tag'] == "
MYTAG")
     continue;

//END of Hide this event

You can define a little array with events to be hidden and :

//Hide these events
$events_to_hide = array("MYTAG", "OCCU", "OTHER");
if(in_array($custevent['tag'], $events_to_hide))
     continue;
// END hide these events

the $events_to_hide can be a list in Mod Manger parameters

$list_of_tags_to_hide = "MYTAG,OCCU,OTHER";

and the array to hide is constructed with :

$events_to_hide = explode("," , $list_of_tags_to_hide);

Michel

 

Link to comment
Share on other sites

Michel,

Thank you that is exactly what I want. I can now set up and run custom query / reports to suit my own needs.

Do you know whether my other idea is achievable? Set the 'place level' to a specific event rather than a place. If bespoke icons are being used for different events then if an address has multiple events you cannot allocate a default icon to that place.

Alex

Edited by 4lexsharpe
added query
Link to comment
Share on other sites

Alex,

9 minutes ago, 4lexsharpe said:

Do you know whether my other idea is achievable? Set the 'place level' to a specific event rather than a place. If bespoke icons are being used for different events then if an address has multiple events you cannot allocate a default icon to that place.

Place levels are associated with places and not events.   That said, you could create a Military place level and assign it to Military events like I have done using Roger Moffat's Google Maps - More Place Levels Mod

12 minutes ago, 4lexsharpe said:

Thank you that is exactly what I want. I can now set up and run custom query / reports to suit my own needs.

While Michel's solution might provide what you need, you have better create yourself a mod to install that code change, otherwise you will be back on this forum asking for help next time you upgrade TNG since personlib.php changes in nearly every TNG upgrade

Link to comment
Share on other sites

Michel KIRSCH
39 minutes ago, Ken Roy said:

While Michel's solution might provide what you need, you have better create yourself a mod

Here is a Mod. It works with a list of tags that you can change in Mod Manager parameters.

Delete your modifications in personlib.php and install this mod with the Mod Manager.

No support (for now) !!

Michel

52 minutes ago, 4lexsharpe said:

Set the 'place level' to a specific event rather than a place.

Sorry, don't know anything about place levels...

Michel

hide_events_v13.0.2.1.zip

Link to comment
Share on other sites

13 hours ago, Michel KIRSCH said:

You can load the Mod Hide_events_v13.0.2.1a on the wiki page

Thanks Michel

Much appreciated.

Link to comment
Share on other sites

Michel KIRSCH
1 hour ago, 4lexsharpe said:

using v 12.3,

Thanks Alex. Will report on the wiki page.

Michel

Link to comment
Share on other sites

  • 2 months later...
On 1/11/2021 at 3:13 AM, Michel KIRSCH said:

Here is a Mod. It works with a list of tags that you can change in Mod Manager parameters.

Michel

An enhancement request please. If you have time, please consider an additional option to display when admin user logged in.

Thanks

Link to comment
Share on other sites

Michel KIRSCH

Hi Brett,

Sorry, i don't understand what's you want exactly... Can you develop your idea?

Michel

Link to comment
Share on other sites

Michel KIRSCH
On 3/20/2021 at 12:10 PM, Brett said:

please consider an additional option to display when admin user logged in

Brett,

do you mean "Hide events only when administrator is logged in"?

Michel

Link to comment
Share on other sites

Michel,  I think the original intent was to unhide the events when the Administrator is logged in.  Basically, unless you are logged in as an administrator, you'd never see it.  At least that is what I think they are trying to get too.

Link to comment
Share on other sites

7 hours ago, Michel KIRSCH said:

Hide events only when administrator is logged in

Sorry for the delay in responding.

As Rob said, Admin logged in would see the events. Non admins would have the event hidden.

I am introducing a "reviewed" option and it seems an event is the best option, following on from how Rob does his.

Link to comment
Share on other sites

Michel KIRSCH

OK Rob and Brett. Understand. Will work on it !

Michel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...