4lexsharpe Posted January 10, 2021 Report Share Posted January 10, 2021 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. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 10, 2021 Report Share Posted January 10, 2021 Alex, I believe those fields are already available. They are called Custom Event Types an can be created via Admin --> Custom Even Types. Rob Quote Link to comment Share on other sites More sharing options...
4lexsharpe Posted January 10, 2021 Author Report Share Posted January 10, 2021 Rob, That's what I've used as a work around but they display on the individuals record. Is there a way to not display the event? Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 10, 2021 Report Share Posted January 10, 2021 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 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 10, 2021 Report Share Posted January 10, 2021 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. Quote Link to comment Share on other sites More sharing options...
4lexsharpe Posted January 10, 2021 Author Report Share Posted January 10, 2021 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. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 10, 2021 Report Share Posted January 10, 2021 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 Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted January 10, 2021 Report Share Posted January 10, 2021 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 Quote Link to comment Share on other sites More sharing options...
4lexsharpe Posted January 10, 2021 Author Report Share Posted January 10, 2021 (edited) 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 January 10, 2021 by 4lexsharpe added query Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted January 10, 2021 Report Share Posted January 10, 2021 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 Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted January 10, 2021 Report Share Posted January 10, 2021 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 Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted January 10, 2021 Report Share Posted January 10, 2021 You can load the Mod Hide_events_v13.0.2.1a on the wiki page : https://tng.lythgoes.net/wiki/index.php?title=Hide_events Support for this version... Michel Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted January 10, 2021 Report Share Posted January 10, 2021 9 hours ago, Brett said: Rob Roy and I have discussed hiding a Custom Event this week Hi Brett, You can load the Mod Hide_events_v13.0.2.1a on the wiki page : https://tng.lythgoes.net/wiki/index.php?title=Hide_events Quote Link to comment Share on other sites More sharing options...
Rob Roy Posted January 10, 2021 Report Share Posted January 10, 2021 Michael, Installed the mod on both my websites and seems to be working well. Thank you. Quote Link to comment Share on other sites More sharing options...
Brett Posted January 11, 2021 Report Share Posted January 11, 2021 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. Quote Link to comment Share on other sites More sharing options...
4lexsharpe Posted January 11, 2021 Author Report Share Posted January 11, 2021 On 1/10/2021 at 4:41 PM, Michel KIRSCH said: You can load the Mod Hide_events_v13.0.2.1a on the wiki page : https://tng.lythgoes.net/wiki/index.php?title=Hide_events Support for this version... Michel Thank you Michel, workng on my site http://www.latho.pe ,using v 12.3, TNG user, EN Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted January 11, 2021 Report Share Posted January 11, 2021 1 hour ago, 4lexsharpe said: using v 12.3, Thanks Alex. Will report on the wiki page. Michel Quote Link to comment Share on other sites More sharing options...
Brett Posted March 20, 2021 Report Share Posted March 20, 2021 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 Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted March 21, 2021 Report Share Posted March 21, 2021 Hi Brett, Sorry, i don't understand what's you want exactly... Can you develop your idea? Michel Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted March 21, 2021 Report Share Posted March 21, 2021 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 Quote Link to comment Share on other sites More sharing options...
Rob Roy Posted March 21, 2021 Report Share Posted March 21, 2021 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. Quote Link to comment Share on other sites More sharing options...
Brett Posted March 22, 2021 Report Share Posted March 22, 2021 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. Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted March 22, 2021 Report Share Posted March 22, 2021 OK Rob and Brett. Understand. Will work on it ! Michel Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted March 22, 2021 Report Share Posted March 22, 2021 Done ! Hide events Michel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.