Tobbe Posted January 13, 2022 Report Share Posted January 13, 2022 Hi, Can I remove/hide the treename "Törnqvist & Vedin" as in image attached? I don't want it there. Quote Link to comment Share on other sites More sharing options...
Chris Lloyd Posted January 13, 2022 Report Share Posted January 13, 2022 If you leave the tree field in Admin>setup>site design blank it should not display. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 14, 2022 Report Share Posted January 14, 2022 Tobbe, Did that work for you? It didn't in my installation for existing persons. Mayby it does for newly created but I didn't test that. Rob Quote Link to comment Share on other sites More sharing options...
theKiwi Posted January 14, 2022 Report Share Posted January 14, 2022 3 hours ago, Rob Severijns said: Tobbe, Did that work for you? It didn't in my installation for existing persons. Mayby it does for newly created but I didn't test that. Rob I don't see how it would work - everybody has to have a tree assignment - that setting for Default Tree affects what tree is "preferred" in the case of any search that can be restricted by tree. It will need a Mod to getperson.php (or genlib.php) to remove that line from display. Roger Quote Link to comment Share on other sites More sharing options...
Tobbe Posted January 14, 2022 Author Report Share Posted January 14, 2022 5 hours ago, Rob Severijns said: Tobbe, Did that work for you? It didn't in my installation for existing persons. Mayby it does for newly created but I didn't test that. Rob No, it didnt work. Never mind. Just a cosmetic issue. I can live with it 😊 Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 14, 2022 Report Share Posted January 14, 2022 Tobbe, I'm not able to write mods but if you edit your getperson.php and change: $treestr = "<a href=\"$showtree_url" . "tree=$tree\">{$treerow['treename']}</a>"; into //$treestr = "<a href=\"$showtree_url" . "tree=$tree\">{$treerow['treename']}</a>"; The treename isn't displayed anymore. Downside is that you need to do this again after an update of TNG Rob Quote Link to comment Share on other sites More sharing options...
Tobbe Posted January 14, 2022 Author Report Share Posted January 14, 2022 55 minutes ago, Rob Severijns said: Tobbe, I'm not able to write mods but if you edit your getperson.php and change: $treestr = "<a href=\"$showtree_url" . "tree=$tree\">{$treerow['treename']}</a>"; into //$treestr = "<a href=\"$showtree_url" . "tree=$tree\">{$treerow['treename']}</a>"; The treename isn't displayed anymore. Downside is that you need to do this again after an update of TNG Rob Aha, thank you so much. Quote Link to comment Share on other sites More sharing options...
bhemph Posted January 15, 2022 Report Share Posted January 15, 2022 Tobbe, Instead of commenting it out completely "//" you will want to set it to an empty string "" so that you do not end up with warnings in PHP 8. Brent Quote Link to comment Share on other sites More sharing options...
Brett Posted January 15, 2022 Report Share Posted January 15, 2022 On 1/14/2022 at 3:37 AM, Tobbe said: Can I remove/hide the treename Tobbe I have a Private Mod for this that some users have installed. Give me a few days and I will upload to the Wiki. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 15, 2022 Report Share Posted January 15, 2022 30 minutes ago, bhemph said: Instead of commenting it out completely "//" you will want to set it to an empty string "" so that you do not end up with warnings in PHP 8. That's beyond my knowledge so thx for the additional advise. Rob Quote Link to comment Share on other sites More sharing options...
Tobbe Posted January 15, 2022 Author Report Share Posted January 15, 2022 5 hours ago, bhemph said: Tobbe, Instead of commenting it out completely "//" you will want to set it to an empty string "" so that you do not end up with warnings in PHP 8. Brent Ok, I'll change it. Thanks for the tip. 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.