Jump to content
TNG Community

All Activity

This stream auto-updates     

  1. Past hour
  2. Michel KIRSCH

    Note and sources marked as PRIVATE

    OK. I'm too late ! Michel global $allow_edit, $allow_add, $allow_delete, $assignedtree
  3. As admin how do I unmark a photo as private? I'm not sure how it got marked as "private". Thanks, - John
  4. Jan, try to make the $variables global inside the function: global $allow_edit, $allow_add, $allow_delete, $assignedtree; HTH Erik
  5. Ken Roy

    Note and sources marked as PRIVATE

    Sorry, I don't have the time to look at the code and help you program it, but you may need to add global statements within the function that you are changing
  6. Today
  7. Jan Suhr

    Note and sources marked as PRIVATE

    It seems like that isn't accessible inside of the getCitation function. If I place this inside the function I get no response but outside of the function it shows up. if( $allow_edit && $allow_add && $allow_delete && !$assignedtree){ echo "We are now in Admin mode"; }
  8. XerxX

    TNG Mods & php 8

    In my PHP 7.4.2 environment this mod throws six Notices regarding suspected null indecies. Do you get any Warnings or Errors? I don't. The question I ask (myself) is "How much work shall I do, or do I turn Notices off?" I can get rid of four of those Notices like this (2 places, I show one): // if ($xerxxAncArray[0] > 0 && in_array($inPersID, $xerxxAncArray)) { $xerxxCntr--; return $xerxxCntr; } if (!empty($xerxxAncArray[0]) && $xerxxAncArray[0] > 0 && in_array($inPersID, $xerxxAncArray)) { $xerxxCntr--; return $xerxxCntr; } // $xerxxAncArray[0]++; if (!empty($xerxxAncArray[0])) $xerxxAncArray[0]++; else $xerxxAncArray[0] = 1; And then we have these two(!) Notices (line-numbers incl the above changes): generated by this single line: $select = "SELECT husband, wife from $families_table WHERE gedcom = '" . $tree . "' AND familyID = '" .$rad2['familyID'] . "';"; How to get rid of that one? Two?! None of these indecies have caused any problem ever. The Notices are only that: Notices that something may be wrong, at least in this mod. They are great when you start building a script but sooner or later you have to turn them off: PHP can't tell if an index is set in another script or not. As an elderly (70+ yo) and not very prosperous person, I have a hard time just to keep my mods up-to-TNG. So I whole-heartedly agree with Ken's post above. (And I turn Notices off ) Best regards, Erik
  9. Jan Suhr

    Note and sources marked as PRIVATE

    Thanks Ken, I try that
  10. theKiwi

    Veterans Buried in Kansas

    When making the report, in the Operators section, choose = for the place, rather than "contains" should do it. Roger
  11. Ken, you are a star, thank you so much. I never would've thought to look there. I kept trying to check the person's profile itself, rather than consider that it might be a general setting. Very much appreciated.
  12. Ken Roy

    Note and sources marked as PRIVATE

    The correct way to check for the TNG Administrator login is if( $allow_edit && $allow_add && $allow_delete && !$assignedtree) If you have no users that can edit, add, or delete, there is also the $allow_admin variable, but that one is set for anyone who can access admin applications for any reason.
  13. Ken Roy

    TNG Mods & php 8

    Please, please do not upgrade any TNG sites to using PHP 8. As Rick indicates, mods have not been tested in that environment, and I would not be surprised that TNG was also not tested by Darrin on PHP 8. You all need to give the mod developers a break. TNG 13 broke several mods and TNG v13 was needed in order to find PHP warnings and notices in mods. Thanks to Brent Hemphill and Rick Bisbee for their effort in identifying and providing recommendations on fixing PHP notices and warnings Personally, I do not have the time to upgrade a test environment to PHP 8. I am too busy trying to figure out MediaWiki extensions that do not work correctly when upgrading my TNG test wiki to MediaWiki 1.35 which need to be resolved before I can create the steps for Darrin to upgrade the TNG Wiki
  14. lastejas

    TNG Mods & php 8

    I have just started testing TNG13.0.1 with php 8.0.0 on my test server and it displays more error messages produced by mods than it does genealogy information! TNG13.0.1 itself is very much php8 compliant and the couple of issues I've found have been addressed/fixed by Darrin which is much appreciated. So as an initial heads up to Mod Developers, from all mods I use, the following is a list of the ones that I have found that have php8 problems. I'm sure I'll find more as time goes on. Add Parents Children Row - v10.1.0.0 Count Ancestors/escendants - V13.0.0.4 Expand Search - V13.0.0.0 Family Preview Mod - v10.1.0.2c FGW Tabs - V11.0.0.9 Person Media Edit - V13.0.0.5f Placesearch More Info - V13.0.0.5f Regroup Person-Family Indicators - V13.0.0.19a Relate Mod - V11.0.0.2a Relationship Display - v10.0.0.1 Show All Family - V12.0.0.4e Show Nicknames - V13.0.0.0 Show/Hide Standard Events - V11.0.0.0a I hope this list is useful.
  15. Jan Suhr

    Note and sources marked as PRIVATE

    I have one question regarding my code above. Since this is more or less hard coded I need to change it depending on permissions. As it is now it is hidden for public view but I want it to be visible in when logged in as Admin. I don't give access to visitors to login on my site. I found a variable named $rights . If I echo $rights['both'] I get nothing. So what is the way to reach the admin permissions if I am logged in as Admin? Thanks
  16. What do you have in the Admin > Setup > Import Settings for Assume private if not dead this many years: I believe TNG defaults to 10 (years) so persons who died in the last 10 years would be marked Private. You can update your users who have the allowed privilege to View Living information to also View Private information or you can change the parameter in the Import Settings
  17. Nelisw79

    Custom fields

    looked in to both options. Custom events: if i add a custom event and add it to a person, the filter results won't show all the people that havent got this event. It will only show the persons who have this event added. Filter on notes: I don't see an option to filter for notes. Do i have to build this in custom SQL?
  18. Good day. For the profile at https://vandykregister.com/getperson.php?personID=I26487&tree=vandyk the birth and death dates don't show unless I've selected "Allow to view information for private individuals" is selected. I was contacted by a user who was unable to see the dates, even though she was signed in. Since the person in the profile is deceased, this shouldn't even be necessary, since our site only restricts details about living individuals to signed-in members. I thought that it was a browser problem, so created a test account with the same rights and tested it in Edge, Chrome and Firefox. Same problem. Only once I gave the permission to view information for private individuals did it show. My problem is that I cannot see where this person might be marked as individual. I use Rootsmagic as my main family tree software, then upload the tree to TNG weekly. I am used to marking events as private in Rootsmagic (which then don't show on TNG), but a) nothing about the specific profile is marked as private in Rootsmagic and b) I haven't marked her as private on TNG, or rather, I can't see anywhere there is an option to do that. Website: https://vandykregister.com Problematic profile: https://vandykregister.com/getperson.php?personID=I26487&tree=vandyk Test login credentials: Anrie-Toets; Anrie-Toets (currently set to "allow to view information for private individuals") TNG version: v. 11.1.2 Problem summary: profile supposedly set to private, despite my not knowing how that is possible or where the specific setting is Any advice would be appreciated.
  19. Rob Severijns

    Upload folder or individual images

    Thx Allen, It completely makes sense :-) Recreating the tables isn't a necessary step but like you said it gave you a clean start. Deleting the files in the folder with filezilla would have done the trick too. When uploading media you can't select a folder but you can select all filles within a folder using Ctrl A. Now you have the possibillity to either upload all selected media at once or one at a time. Rob
  20. tngrlkrz

    Planner

    I just published the Switch_Mobile_or_Standard mod which was assembled from the private code for the 'switch mobile display' or 'switch standard display' buttons. Edit Options let you choose button locations: Footer Only = 0 Header Only = 1 Both Header and Footer = 2 No template files are modified, only genlib.php. The mod tested out OK with the Mobile_Site_Enhancements and User_Footer_Copyright mods. While I had no conflicts, there could be some with other mods I don't use which modify the header or footer logic. I tested the mod on TNG 13.0.1 and TNG 12.3 without issue.
  21. Allen

    Upload folder or individual images

    Rob, let me work backwards and tell you what I did wrong first. Since this is all pretty new to me, I did as you warned against and uploaded all the media files from the upload media tab, not realizing they were actually already there. So, as a result, I ended up with what is shown in the screenshot above. Soooo, I just took the easy way out. Recreated all the tables, made sure the individual photos were in the "photos" folder using Filezilla, re-imported the gedcom, and what do you know?!! It works! I still don't know if it matters if you upload the whole folder or the individual photos, but I uploaded the individual photos. Of course, when you recreate the tables, you have to re-enter a lot of information, but it made for a nice clean install. And my website is relatively new so I hadn't spent a lot of time on "setup". I'm sure I could have resolved this without resorting to that, but that's the course I took. I hope this makes sense. I sometimes use the wrong words for things involving computers and websites! Ha! https://www.wilson-mcelmurry.com
  22. Rob Roy

    Removing Irrelevant Menu Items

    Michael. I do appreciate the offer, however, Ken's suggestions trimmed things down. I am at least 3 weeks away from getting glasses after eye surgery and am careful of my time on PCs. Eye strain is an issue. I do appreciate it.
  23. Yesterday
  24. Michel KIRSCH

    Removing Irrelevant Menu Items

    This Mod is under development, but works wel. Actually the menus on the main page (depending of each template) are not (yet) modified The Mod is not yet documented. If you want to try it... Michel PS : to edit the parameters , go to Mod Manager, develop the mod (once installed) and use the green "Easy Edit" button instead the normal "Edit" button Note : prior to install, your file genlib.php must be without your own modifications. If there are modifications done => Bad targets This Mod is not compatible with the "Hide google buttons" Mod show_hide_menus_v13.0.1.1.zip
  25. OK Merci Je vais continuer à les corriger un à la fois.
  26. Rob Severijns

    Custom fields

    Roger, My bad and thx for the usefull correction. Rob
  27. Hello Hello ! I'd like to change the order od new items in What's new : begining with Persons, then Families, then Medias ... Is there an easy way to do it ? Does a mod exist about it ? Thanks for any answer.
  28. CarlWGray

    Veterans Buried in Kansas

    Hello, I'm trying to build a report that shows Veterans buried in Kansas but does NOT show Veterans buried in Arkansas. I know how to display those buried in Kansas, but I don't know how to exclude this buried in Arkansas. Thanks in advance.
  1. Load more activity
×