Ken Roy Posted August 28, 2020 Report Share Posted August 28, 2020 Did anyone ever report the issue to Darrin? He does not monitor this user-to-user forum, He does monitor the user2list, but I do not recall this being posted their either. Quote Link to comment Share on other sites More sharing options...
klooster Posted August 28, 2020 Report Share Posted August 28, 2020 I did report this to Darrin few hours ago and asked his advice Ken . Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted August 28, 2020 Report Share Posted August 28, 2020 If some one has a quick way to fix it in TNG, providing the fix to Darrin might get in TNG 13. I asked the question because it sounded like this was not a new issue. I do not use WP so maybe I do not have the problem. Quote Link to comment Share on other sites More sharing options...
fluffy82 Posted August 28, 2020 Report Share Posted August 28, 2020 5 minutes ago, Ken Roy said: If some one has a quick way to fix it in TNG, providing the fix to Darrin might get in TNG 13. I asked the question because it sounded like this was not a new issue. I do not use WP so maybe I do not have the problem. It's not a new issue, it also happens with for example the person profile - ancestors - text only tab. What causes the problem, is the lines being not lines but a black image that is set to 1px height inline. As most WordPress themes define img's height and/or width to auto, they override each other. I haven't looked at this one yet, but I was able to kind of fix the "ancestors - text only" by inserting a new div (which I called #fixpedigreetext), which allowed me to remove all borders, padding, margins etc from tables (<tr>, <td>) and set the img height to 1px in this tab, but not overall. There's still some white space I can't get rid of, but generally it works. So I think there's two ways of fixing this: Darren inserts the content of each tab into a unique div (this could be a general thing), so WP users can fiddle around with one tab without affecting the others the system with using 1px black images to represent lines is abandoned, and pedigrees are built in a different way (borders? JavaScript?) I'm not a tech savvy person, I can fiddle around a bit and stumble upon something that works, but my "solution" is by no means the best around. I'm sure someone else will have better insight. In attachment the "ancestors - text only" before and after my playing around with it... The css added was: #fixpedigreetext td { border: none; padding: 0px; margin: 0px; vertical-align: middle; } #fixpedigreetext img { padding-bottom: 0px; margin-bottom: 0px; height: 1px; } #fixpedigreetext table { margin-bottom: 0; } Quote Link to comment Share on other sites More sharing options...
fluffy82 Posted August 28, 2020 Report Share Posted August 28, 2020 PS obviously, the "new" issue will be harder to solve, as setting the image height to 1px for the boxes to become lines, will automatically squeeze the male/female symbols to 1px as well. This could easily be solved by not using images for the symbols, but text. In fact, in the WordPress part of my site, I never use images for those, only symbols. https://huygens-vandemoortel-ancestry.be/genealogie/statistieken/ Quote Link to comment Share on other sites More sharing options...
klooster Posted August 29, 2020 Report Share Posted August 29, 2020 Hi Fluffy, Where did you put that new #fixpedigreetext div ?? PS: I am in email contact with Darrin, no definite solution yet. If we find one, I will post it here. Quote Link to comment Share on other sites More sharing options...
fluffy82 Posted August 29, 2020 Report Share Posted August 29, 2020 3 hours ago, klooster said: Where did you put that new #fixpedigreetext div ?? I wrapped the table in it, right after the form. This way I can change the table properties on this page, without changing the overall tables. *** PEDIGREETEXT.php *** %target:pedigreetext.php% %location:% <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> %end:% %insert:before% <div id="fixpedigreetext"> %end:% %location:% ?> </tr> </table> %end:% %insert:after% </div> %end:% Quote Link to comment Share on other sites More sharing options...
klooster Posted August 29, 2020 Report Share Posted August 29, 2020 Thanks! PS: I deleted the TEXT display of the ancestors all together. In my opinion there is more then enough ways to see the ancestors with the other charts. LESS is sometimes MORE. Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted August 30, 2020 Report Share Posted August 30, 2020 OK...I'm ready to attempt to put together my WP-TNG integration site. I would like for WP & TNG to share the same database. My first attempt failed, so would someone please tell me the approach I should take to successfully get WP and TNG to share a single database? I have installed WP in its own directory and installed TNG in a direct sub-directory. (I am doing this on my local computer, not on my website, using XAMPP as my host). Quote Link to comment Share on other sites More sharing options...
fluffy82 Posted August 30, 2020 Report Share Posted August 30, 2020 I have no experience with a local installation... When I did mine, directly on the server, through ftp, I installed TNG in the created subfolder of my WordPress website, and it automatically used the same database... When I go into my Plesk, all tables are listed. On my WP pages I can also access TNG tables through php without problem. So if it doesn't work for you, I suppose it's because you're working locally? Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted August 30, 2020 Report Share Posted August 30, 2020 On 8/25/2020 at 12:07 PM, HeatherFeuer said: @Phil Merkel, see Cees' message above with the link. I have a tiny file that I use to create a custom menu with all the TNG links as you saw on Martin's and my websites. If you like, I can send you that file when you are ready. Once you run the script, you can then add your WordPress pages to the menu. Then you will have all the TNG information available from the WordPress menu. Heather - Yes, I would like to see your file. Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted August 30, 2020 Report Share Posted August 30, 2020 1 hour ago, fluffy82 said: I have no experience with a local installation... When I did mine, directly on the server, through ftp, I installed TNG in the created subfolder of my WordPress website, and it automatically used the same database... When I go into my Plesk, all tables are listed. On my WP pages I can also access TNG tables through php without problem. So if it doesn't work for you, I suppose it's because you're working locally? Could be right about the working locally. I reinstalled WP and TNG (per Dr. Kloosterman's instructions) with separate databases, and it's (almost) working. I decided to keep the TNG index.php in play and put a link on my WP home page to it. (It looks very weird but is styled by the WP theme I'm using - TwentyTwenty). I'm getting errors but have not really looked at them to understand them. Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted August 31, 2020 Report Share Posted August 31, 2020 20 hours ago, Phil Merkel said: OK...I'm ready to attempt to put together my WP-TNG integration site. I would like for WP & TNG to share the same database. My first attempt failed, so would someone please tell me the approach I should take to successfully get WP and TNG to share a single database? I have installed WP in its own directory and installed TNG in a direct sub-directory. (I am doing this on my local computer, not on my website, using XAMPP as my host). Phil, When you set up TNG, use the same database credentials that you have for WordPress (found in the wp-config.php file). Be sure that you use the conventional TNG prefixes to differentiate between the tables. That has always worked for me. Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted August 31, 2020 Report Share Posted August 31, 2020 18 hours ago, Phil Merkel said: Heather - Yes, I would like to see your file. Phill, I've attached the file here. These are the instructions from the file: Quote * Read these instructions carefully! * Place this file in your theme directory. Open the functions.php file located in your theme * directory and add this line at the end of the file: "include('tngNav.php');" without * the quotes and save the file. * * This script automagically replicates the TNG menu in WordPress as a custom menu located in * your WordPress Dashboard under Appearance --> Menus. The Menu name will be Primary Menu * and will only include the TNG items. You can then continue to add the WordPress pages you * want in the menu. You will also need to set the theme location where this menu will appear. * * Go to your dashboard --> Appearance --> Menus. If you already have your dashboard open in * your browser, you might have to refresh the page. Your menu should now be there. Edit it * to include any other items you want. Please note that last paragraph. You will have to add the WordPress items to this menu. For any items you want to have appear before the TNG portion, you will need to use the "move to top" option when creating the menu item. If you have any problems with this file, please let me know. tngNav.php Quote Link to comment Share on other sites More sharing options...
cfj Posted August 31, 2020 Report Share Posted August 31, 2020 On 8/29/2020 at 1:05 PM, klooster said: PS: I deleted the TEXT display of the ancestors all together. In my opinion there is more then enough ways to see the ancestors with the other charts. I agree with you, but it's easier to use CSS to hide content. TNG uses body class on each file. I use the same method in WordPress, but with body id and a custom class "not-logged-in". By using this system, I show my visitors what they have access to. Regarding desctracker.php, I removed the content easily with CSS since I can use my body id body#desctracker table{display:none!important;} Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted September 2, 2020 Report Share Posted September 2, 2020 On 8/31/2020 at 6:48 AM, HeatherFeuer said: Phill, I've attached the file here. These are the instructions from the file: Please note that last paragraph. You will have to add the WordPress items to this menu. For any items you want to have appear before the TNG portion, you will need to use the "move to top" option when creating the menu item. If you have any problems with this file, please let me know. tngNav.php Thanks...I'll check it all out. Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted September 2, 2020 Report Share Posted September 2, 2020 On 8/31/2020 at 6:34 AM, HeatherFeuer said: Phil, When you set up TNG, use the same database credentials that you have for WordPress (found in the wp-config.php file). Be sure that you use the conventional TNG prefixes to differentiate between the tables. That has always worked for me. Heather -- I will attempt to revisit this procedure, too. Thanks. Phil Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted September 2, 2020 Report Share Posted September 2, 2020 On 8/31/2020 at 6:48 AM, HeatherFeuer said: Phill, I've attached the file here. These are the instructions from the file: Please note that last paragraph. You will have to add the WordPress items to this menu. For any items you want to have appear before the TNG portion, you will need to use the "move to top" option when creating the menu item. If you have any problems with this file, please let me know. tngNav.php I just attempted to use this file per your instructions. I got the following error messages when I opened my dashboard in WordPress. Warning: include_once(wp-load.php): failed to open stream: No such file or directory in C:\xampp\htdocs\wp-tng\wp-content\themes\astra-child\tngNav.php on line 17Warning: include_once(): Failed opening 'wp-load.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\wp-tng\wp-content\themes\astra-child\tngNav.php on line 17 Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted September 2, 2020 Report Share Posted September 2, 2020 On 8/31/2020 at 6:48 AM, HeatherFeuer said: Phill, I've attached the file here. These are the instructions from the file: Please note that last paragraph. You will have to add the WordPress items to this menu. For any items you want to have appear before the TNG portion, you will need to use the "move to top" option when creating the menu item. If you have any problems with this file, please let me know. tngNav.php I would also like to know how to exclude the TNG menu bar from appearing. Your tngNav.php has indeed built the WordPress menu just fine, but when I view my TNG pages (in spite of my lingering errors about wp-load.php), that pesky TNG menu bar shows up. Has this been addressed before somewhere in the forum? Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted September 3, 2020 Report Share Posted September 3, 2020 20 hours ago, Phil Merkel said: I just attempted to use this file per your instructions. I got the following error messages when I opened my dashboard in WordPress. Warning: include_once(wp-load.php): failed to open stream: No such file or directory in C:\xampp\htdocs\wp-tng\wp-content\themes\astra-child\tngNav.php on line 17Warning: include_once(): Failed opening 'wp-load.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\wp-tng\wp-content\themes\astra-child\tngNav.php on line 17 Sorry about that! The line in that file that begins include_once should actually be include_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php'); This will tell the script to look for wp-load.php in the root directory where WordPress is installed (assuming that WordPress is NOT in a subdirectory (which it shouldn't be for this kind of integration). Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted September 3, 2020 Report Share Posted September 3, 2020 19 hours ago, Phil Merkel said: I would also like to know how to exclude the TNG menu bar from appearing. Your tngNav.php has indeed built the WordPress menu just fine, but when I view my TNG pages (in spite of my lingering errors about wp-load.php), that pesky TNG menu bar shows up. Has this been addressed before somewhere in the forum? I know how you feel about that pesky TNG Menu. In your mytngstyle.css file, add this line: .innercontainer{display:none;} That will remove the whole menu while still allowing you to show the "print," "bookmark" etc. buttons. Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted September 3, 2020 Report Share Posted September 3, 2020 (edited) 1 hour ago, HeatherFeuer said: Sorry about that! The line in that file that begins include_once should actually be include_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php'); This will tell the script to look for wp-load.php in the root directory where WordPress is installed (assuming that WordPress is NOT in a subdirectory (which it shouldn't be for this kind of integration). got it...now I get this in the surnames.php file: Notice: Undefined variable: linkstr2col in C:\xampp\htdocs\wp-tng\tng\surnames.php on line 99Notice: Undefined offset: 0 in C:\xampp\htdocs\wp-tng\tng\surnames.php on line 99Notice: Undefined offset: 1 in C:\xampp\htdocs\wp-tng\tng\surnames.php on line 99 I know I'm close...just a few more tweaks....I will also remedy the menu item with your other suggestion. Update: I made the changes but still get the errors. See attached screen shot. Phil Edited September 3, 2020 by Phil Merkel added screenshot Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted September 3, 2020 Report Share Posted September 3, 2020 19 minutes ago, Phil Merkel said: got it...now I get this in the surnames.php file: Notice: Undefined variable: linkstr2col in C:\xampp\htdocs\wp-tng\tng\surnames.php on line 99Notice: Undefined offset: 0 in C:\xampp\htdocs\wp-tng\tng\surnames.php on line 99Notice: Undefined offset: 1 in C:\xampp\htdocs\wp-tng\tng\surnames.php on line 99 I know I'm close...just a few more tweaks....I will also remedy the menu item with your other suggestion. Update: I made the changes but still get the errors. See attached screen shot. Phil Hi Phil, Hmm... That's odd... except I know that I get a LOT of undefined variable warnings with TNG all the time. I have NO clue why that happens. But. Try this and see what happens: Open your wp-config.php file and just above the line: "/* That's all, stop editing! Happy blogging. */" include this code: // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); That should suppress all those warnings. And that's all they are -- warnings. You can ignore them. Let me know if it works. Quote Link to comment Share on other sites More sharing options...
Phil Merkel Posted September 3, 2020 Report Share Posted September 3, 2020 9 hours ago, HeatherFeuer said: Hi Phil, Hmm... That's odd... except I know that I get a LOT of undefined variable warnings with TNG all the time. I have NO clue why that happens. But. Try this and see what happens: Open your wp-config.php file and just above the line: "/* That's all, stop editing! Happy blogging. */" include this code: // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); That should suppress all those warnings. And that's all they are -- warnings. You can ignore them. Let me know if it works. Heather -- Made those changes and it worked!!! Thanks... Phil Quote Link to comment Share on other sites More sharing options...
PapaTango Posted September 22, 2020 Report Share Posted September 22, 2020 OK, the issues with black boxes were reported as early as 2017. We now are presented with TNG v13. Has there been any resolution of this in the current version--or is it still considered an "arcane and minor issue?" 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.