Jump to content
TNG Community

Remove/hide tree name as show in attached image


Tobbe

Recommended Posts

Rob Severijns

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 😊

Link to comment
Share on other sites

Rob Severijns

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Rob Severijns

 

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

Link to comment
Share on other sites

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.

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...