Jump to content
TNG Community

Layout of suggest.php screen when using Kloosterman Method


theKiwi

Recommended Posts

theKiwi

I discovered something quite odd this morning on my site. Go to this page

https://lisaandroger.com/genealogy/suggest.php?enttype=I&ID=I16&tree=Roger

which is the Suggest page for a person on my site. Notice that it's showing the name of the page as "suggest-php"

image.png

 

Same for @klooster's site

 

image.png

 

It also happens on the submit_photo.php page from the Submit Photo/Document Mod where the page name shows as submit_photo-php

This is definitely being caused by WordPress somehow - my sites that are not using WordPress are fine.

Have others seen this?

Anyone figured out where it's coming from?

Roger

Link to comment
Share on other sites

theKiwi

Still not solved, but it's something to do with the files created to replace the TNG files header.php, footer.php and meta.php...

Roger

Link to comment
Share on other sites

klooster

Strange, I had not noticed it before, but you are right.

I have at the moment no idea what is causing it, but as a solution the following works:

  • change line 180 in suggest.php:

echo tng_DrawHeading( $photostr, $name, $years );

INTO

    //echo tng_DrawHeading( $photostr, $name, $years );
    echo tng_DrawHeading( $photostr, $namestr, getYears( $row ) );

PS: without WP integrated, TNG stand alone the change also works fine

Works for me, see screenprint

Scherm­afbeelding 2024-04-18 om 07.57.17.png

Link to comment
Share on other sites

klooster

I made a little private Mod to apply the changes in suggest.php as described above.

For those who are interested, download below:

PS: with this change the name is also displayed (TNG14-Correct-header-suggest-php-TNG_WP-14.0.0.1)

  • change line 180 in suggest.php:

echo tng_DrawHeading( $photostr, $name, $years );

INTO

// Start correct Header suggest.php
    //echo tng_DrawHeading( $photostr, $name, $years );
    echo tng_DrawHeading( $photostr, getName( $row ), getYears( $row ) );
// End correct Header suggest.php

 

 

 

Scherm­afbeelding 2024-04-18 om 12.51.40.png

TNG14-Correct-header-suggest-php-TNG_WP-14.0.0.1.cfg

Link to comment
Share on other sites

theKiwi

Cees - I see on your site that it works - on mine it only partly works. The Years part of it now shows,  but name is now empty with nothing shown.

 

image.png

 

You can see it here

http://testing.lisaandroger.com/genealogy/getperson.php?personID=I16&tree=Roger

then click on Suggest.

I'll look further later today - don't have much time right now.

Roger

Link to comment
Share on other sites

theKiwi
1 minute ago, klooster said:

Hi Roger,

When I click on your link, it looks allright to me:

I've got it fixed on my testing site now - see updated Mod attached in my previous post.

Roger

Link to comment
Share on other sites

theKiwi
15 hours ago, klooster said:

// Start correct Header suggest.php
    //echo tng_DrawHeading( $photostr, $name, $years );
    echo tng_DrawHeading( $photostr, getName( $row ), getYears( $row ) );
// End correct Header suggest.php

 

This only works on the Individual pages - on the other pages with a "Suggest" tab, it doesn't show the heading of what the suggestion is about.

See for examples:

Places - https://lisaandroger.com/genealogy/suggest.php?enttype=L&ID=Blackerstone%2C+Longformacus%2C+Berwickshire%2C+Scotland&tree=Roger

Sources - https://lisaandroger.com/genealogy/suggest.php?enttype=S&ID=S218&tree=Roger

Family - https://lisaandroger.com/genealogy/suggest.php?enttype=F&ID=F9&tree=Roger

on my site, and compare to your site where the Heading is missing from the Place, Source, and Family Suggest tabs.

Roger

Link to comment
Share on other sites

klooster

Hi Roger,

Thanks for the addition in the Suggest Mod, great improvement, works (for me) now also in Sources, Places and Family. Probably also in Repositories, but like you I don't have Repositories to test that.

  • I added also the suggest correction in the Mod for the gedform.php and shortened the Mod name to: TNG14-WP-Suggest-v14.0.0.1

 

Download here:

 

 

 

 

TNG14-WP-Suggest-V14.0.0.1.cfg

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