theKiwi Posted April 18 Report Share Posted April 18 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" Same for @klooster's site 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 Quote Link to comment Share on other sites More sharing options...
theKiwi Posted April 18 Author Report Share Posted April 18 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 Quote Link to comment Share on other sites More sharing options...
klooster Posted April 18 Report Share Posted April 18 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 Quote Link to comment Share on other sites More sharing options...
klooster Posted April 18 Report Share Posted April 18 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 TNG14-Correct-header-suggest-php-TNG_WP-14.0.0.1.cfg Quote Link to comment Share on other sites More sharing options...
theKiwi Posted April 18 Author Report Share Posted April 18 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. 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 Quote Link to comment Share on other sites More sharing options...
klooster Posted April 18 Report Share Posted April 18 Hi Roger, When I click on your link, it looks allright to me: Quote Link to comment Share on other sites More sharing options...
theKiwi Posted April 18 Author Report Share Posted April 18 Update - I've now got it working on my site - at least for Individual, Family and Source and Place. I don't have and Repositories to test that. I've attached a modified Mod file here... Roger TNG14-Correct-header-suggest-php-TNG_WP-14.0.0.0.cfg Quote Link to comment Share on other sites More sharing options...
theKiwi Posted April 18 Author Report Share Posted April 18 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 Quote Link to comment Share on other sites More sharing options...
theKiwi Posted April 18 Author Report Share Posted April 18 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 Quote Link to comment Share on other sites More sharing options...
klooster Posted April 19 Report Share Posted April 19 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 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.