Jump to content
TNG Community

All Activity

This stream auto-updates     

  1. Today
  2. theKiwi

    use different CSS style sheet

    Some of the posts I've seen here, including made by me have the code that I have put into the Enhanced Text Widget. When I created this, I was assuming use of the TNG-WordPress plugin , so things like this section $path = get_option('mbtng_path'); chdir ($path); $wp_tng_path = get_option('mbtng_url'); include ("userscripts/list_birthdays.php"); mbtng_close_tng_table (); if being used on a site that does NOT have the plugin... the first line would fail since mbtng_path is a setting created by the plugin So the second line would fail because $path is undefined the third line would fail because the mbtng_url is a setting created by the plugin probably the 4th line would fail because WordPress doesn't know where to look for "userscripts" the last line would fail because the function mbtng_close_tng_table is only defined in the plugin. Roger
  3. KevyNC

    use different CSS style sheet

    FWIW -- I am running Wordpress 5.1.1 and PHP 7.2.16. Also MySQL 10.1.38. It did not appear I was successful in getting the Plugin to work when I tried in the past. Also I use the Woody Plugin (which I believe is newer). Curious if a single database would make a difference. My knowledge is very limited so I can only speculate and/or ask questions. not sure if Functions would have anything to do with it. I might also be confused on sites that I have seen and not understand which method they have used when I viewed them. Roger, Thanks for the info. Kevin
  4. theKiwi

    use different CSS style sheet

    Let me preface this by saying that I'm using the TNG-WordPress plugin... On both my sites (one is WordPress 4.9.10, the other is now on 5.2beta) all of the scripts will run if they are called in succession in a single Enhanced Text Widget, but I have never been able to figure out why you can't have more than one widget with the scripts in - it's something about accessing the WordPress database interspersed with accessing the TNG database, but I've never figured out exactly what the problem is. I have not tried using a single database for both TNG and WordPress - I don't know if that would make a difference or not. Also I don't really know if the plugin causes a different behaviour than using the Kloosterman method does in terms of interactions between scripts and database(s) - it shouldn't because the plugin isn't directly involved in displaying a non-TNG page where the widgets are display, but the plugin is in play somehow because the functions that start with "mbtng_" are only defined in the plugin code. Roger
  5. theKiwi

    Server down?

    Are you hosted with Simply Hosting? If not, then I respectfully suggest you don't know how it works there. Simply Hosting provide an interface that allows their customers to query the firewall listings of the server they are hosted on to find out if an IP number is blocked, and if so to unblock it. The listing gives the reason for the block straight out of the server logs with reasons like (to paraphrase since I don't have a condition to unblock someone right now to get the exact wording) "too many incorrect password attempts within xxx seconds at xx:xx:xx the time the block was applied." I have such access to 2 of the Simply Hosting servers, but not the one that the lythgoes.net stuff lives on. Roger
  6. Do you know that the top 10 lists and statistics that you have written will correctly show extended characters? (none of the ones shown have extended characters in them). I guess to know that for sure you'd have to edit one of the most popular place names to have extended characters in it and see how it displays. (then change it back afterwards). Roger
  7. KevyNC

    use different CSS style sheet

    That would be great. I tried to find Heather's code, but it appears she either removed the code or a website update has made it unavailable and I could not locate it elsewhere. Yes, I also tried getting Roget's code to work....after some playing I believe I was able to get each functioning individually but not all 3 on same page at same time. I believe I should be able to manipulate the HTML code to get the desired look for my site. You can either share here or message me. Thanks again Kevin
  8. fluffy82

    use different CSS style sheet

    I'd be happy to share my code if you'd want it. Mind you, the "title", the list and the table take their make-up from my theme, so they might turn out looking quite different on your website. You'll have to play around with the html part of it. For the birthdays, I'm using the plugin that was once provided by Heather but seems to have become unavailable... The scripts (written by Roger?) never worked on my page. If I remember correctly, the births worked, but not the marriage anniversaries or deaths. So sadly I can't help you with that.
  9. I have a similar problem... 1) when using the widget plugin, the characters don't show properly 2) when using the exact same code in and extended text widget, it doesn't work at all, I get no result displayed 3) when using my own code in an extended widget, is works fine You can see them on my home page. The Top 10 lists and statistics, are 3 short pieces of code I've written (taking info directly from the database, without going through TNG). Below, you see the "today's events" using the plugin. Special characters don't show - even though my database tables and everything else is set to be UTF-8. I am now working on a way to replace the "today's events" widgets with my own code. But it's a bit more complicated than just counting surnames :)
  10. Yesterday
  11. I've been struggling for a while to solve a problem with these little add-ons of mine with 2 aspects of characters - the scripts correctly handle extended characters and curly quotes if they are: used directly with TNG - eg on a modified index.php page that is calling the scripts - eg http://LisaAndRoger.com/tng/index.php - this is a page displayed purely using TNG; used with a TNG page called through the TNG-WordPress plugin - again for example a modified index.php page that is calling these scripts - eg http://LisaAndRoger.com/Genealogy/index.php - the same page as above, but passed through the TNG-WordPress plugin to wrap the page in the WordPress headers and footers. In both the above instances any extended characters and curly quotes used in people's names show up correctly in the output. (There aren't any today, and likely won't be tomorrow either...) My databases and TNG and WordPress are all set up to use UTF-8 But... When these same scripts are used within a WordPress plugin like Enhanced Text Plugin others that allow you execute your own PHP code, then the output of these same scripts as they appear in the widget somehow are taking the extended characters and the curly quotes and apparently turning trying to show them as ISO-8859-1 - and so they show as the dreaded black diamond when these are included into the WordPress side bar - for example on http://LisaAndRoger.com/ The reason I'm suspecting that somewhere on the path through WordPress from the include in the Enhanced Text Widget then out to the page is changing them to ISO-8859-1 is that if I wrap the bits of the scripts that are dealing with names with the utf8_encode() function**, the extended characters display correctly in the WordPress sidebar, and somewhat surprisingly the curly quotes simply vanish. But... When the scripts using the utf8_encode() function are viewed both in the pure TNG environment, and in the TNG index.php page processed through the TNG-WordPress plugin, the characters become mangled which is hardly surprising since they are UTF-8 characters that are assumed to be ISO-8859-1 and then converted to UTF-8 again - which doesn't work. So... Are others that have battled to get these various birthday scripts working with WordPress - either with the Kloosterman method, or using the plugin - @cjb, @fluffy82, @PapaTango etc seeing the same problem - that extended characters and curly quotes are mangled when shown in the sidebar compared to when they're shown in the TNG index.php page? Is anyone using extended characters in their TNG database? I have searched online, and found enough to suggest that WordPress is doing some processing of strings of output using functions such as wpauto but can't find enough information to know for sure what the problem might be. It seems to be theme independent - I've tried Suffusion, Atahualpa and TwentyNineteen and they all show the problem, which you can see today only at http://tngwp.LisaAndRoger.com/ Thanks Roger ** the utf8_encode() function is designed to take a string in ISO-8859-1 and turn it into a UTF-8 string.
  12. Renze

    Map Pins

    I'll do that!
  13. PapaTango

    Server down?

    Roger, this can happen simply due to making requests rapidly or using multiple access displays (browsers, requests, or download requests). In the 6 times I have had this issue with my sites and client servers, the hosting tech administrators have NOT provided (although being extremely apologetic) a reason why the blacklist condition occurred. Frankly, the new firewall algorithm is far too aggressive, and no one is willing to admit that. And at the end of the day, it is likely that Darrin has to get his hosting support to fix this--as it is at a stage of hosting provision that is not accessible to the site administrator through WHM or other panels...
  14. theKiwi

    Map Pins

    My suggestion would be that instead of releasing another almost identical Mod, you make a Mod for your own use that alters the original one after the original is installed - to change just the call to the different Font and the pin images. This then doesn't upset the situation where people might already have changed the pins, or like me actually have the entire set of pins in the img folder and so having collisions with file names as also reported. Roger
  15. Renze

    Map Pins

    Hello Ron, Thanks for your feedback. I'm going to look at it. The legend can only be seen when you have given a "level" in the backend. See image below.
  16. theKiwi

    Server down?

    I already told you what the problem almost certainly is - your IP number (that your WiFi is sharing to your devices) has been blocked by SimplyHosting for some reason - usually it's to do with submitting an incorrect password too many times - either knowingly on a log in form, or unknowingly if for example your mail software is continually submitting an incorrect password to Simply Hosting (if you have a hosting account with them) - this has happened to me in the past. Darrin is the only person I'm aware of that has the details to log in to Simply Hosting's blacklist area and remove the block - apart from the techs at Simply Hosting themselves. When the block is removed it will provide the reason the block was put in in the first place - eg mail login or web form login problems. Roger
  17. KevyNC

    use different CSS style sheet

    I am still trying to figure what is the best solution to what I want to accomplish. I may need to implement some of your solutions. I like the way you have the "lists" working. https://huygens-vandemoortel-ancestry.be/ Also the birthdays and deaths. I was not able to get more than one working. I do not want multiples displaying in same side widget. I think I need to refer back to other posts where you describe this. My site still has not gone live because of some of these remaining issues. Mostly related to the main/home/landing WordPress pages. I have hidden the 404 errors when navigating to the TNG areas, but for SEO it would be better if could be tracked as intended. You seem to have struggled, but yet got most things working the way you want (even if it has taken awhile). Kevin
  18. Renze

    Map Pins

    Hello Roger, I have indeed changed the pins and the font. And they are now standard 11 pins. See image below.
  19. PapaTango

    Wordpress-TNG- AVADA template

    Thanks, Dr. K and I second the recommendation for Avada. For a very long time, themes such as Suffusion & Atualpa were the top 'go to' themes for WP/TNG bundles--but unfortunately, development on both ceased in 2016--and both have some issues with PHP 7.x and properly configuring in the responsive mode for mobile devices. There are purported solutions involving new PHP code in the functions.php file and others, but one fixes one thing and another breaks... ☹️ As you note, Avada or many of the current alternative themes present challenges. When WordPress changed its protocol standards on how the configurator and various framework constructors work--a sea-change happened. While Juggledad still works on the Atahualpa theme--it is not appropriate in this phase of PHP and mobile responsiveness. Other popular themes that have croaked for the same reason are: Atahualpa Blogolife Radius Delicate Graphene Mystique P2 Pagelines Responsive Radius Weaver II Asokay I have had to abandon my Atahualpa based site and create a new one based on Avada due to depreciation & responsive issues. Those using Suffusion may think they are good--but issues may present on smartphone devices. The clear answer here is to choose a theme that is popular and promises updates for at least the next several years. Avada has its ups and downs. It does not have all of the options of Atahualpa, but what is missing can be replicated through a third-party editor such as YellowPencil. One of the very important planning choices is what block editor to use. Avada natively includes the Fusion system. Other popular block editors include the Classic WP format enhanced by TinyMCE, Gutenberg, Elementor, BeaverBuilder, and others. One can make pages and posts based on the Classic system, or any of the above-mentioned editors. But you cannot mix them up and use any other to make changes to any of your other pages to edit in another block format. Plan, plan, and then commit.
  20. tngrlkrz

    deleting gedcom files and reloading

    You can go to admin trees and clear the tree not delete it just clear it then reload your gedcom.
  21. PapaTango

    Server down?

    @KmBdev I think that Roger has cited the issue. If you can get on with other devices using a different home IP address--the problem usually rests with the incoming host's firewall router. For whatever reason, several months ago these became really sensitive and easy to lock out incoming users who it determines are 'problems.' I was locked out twice from my Inmotionhosting VPS server due to using Chrome, Firefox, and Filezilla FTP in rapid sequence. Once I was locked out of this community for multiple browser instances & quick downloads--Darrin had to fix it for me. A quick check if you are being blocked is to bring up the Windows PowerShell (admin) by right-clicking on the Windows start icon in your taskbar. and type in after PS C:\windows\system32 the following: tracert tng.community If you are on a Mac or Linux distribution station, perhaps others can chime in and lend details on how to run a tracert. You will get a return that looks something like this--but different hops depending upon your location: Tracing route to tng.community [50.31.64.120] over a maximum of 30 hops: 1 <1 ms <1 ms <1 ms 192.168.0.1 2 1 ms 1 ms 1 ms 192.168.1.1 3 3 ms 3 ms 4 ms 38.77.40.1 4 8 ms 8 ms 8 ms te0-0-0-2.nr12.b015384-0.syr01.atlas.cogentco.com [38.122.120.249] 5 11 ms 9 ms 8 ms 154.24.59.165 6 13 ms 14 ms 12 ms be3174.rcr21.buf02.atlas.cogentco.com [154.54.30.145] 7 17 ms 29 ms 18 ms be3157.ccr22.cle04.atlas.cogentco.com [154.54.47.125] 8 29 ms 28 ms 28 ms be2718.ccr42.ord01.atlas.cogentco.com [154.54.7.129] 9 27 ms 26 ms 27 ms be2248.ccr22.ord03.atlas.cogentco.com [154.54.5.158] 10 27 ms 27 ms 27 ms be2616.rcr21.b002281-5.ord03.atlas.cogentco.com [154.54.30.90] 11 27 ms 27 ms 26 ms 38.142.66.242 12 27 ms 36 ms 37 ms te8-7.dist01.chi18.steadfast.net [208.100.32.57] 13 27 ms 27 ms 27 ms georgia.shnw.net [50.31.64.120] Trace complete. If you have been blocked at the incoming firewall/pool router level for this community--or any other site you might be having trouble with (of course change the tracert address to a new domain or IP number) it will stall and stop hopping at the following hop: te8-7.dist01.chi18.steadfast.net [208.100.32.xx] where the final two IPv4 decimal notations will likely be in the .50 range. If you have a blocking problem, your trip to georgia is cancelled... 😥 Only Darrin can fix this, and it is the result of a far too aggressive filter at the webhost level.
  22. does anyone have experience, deleting all file and reload a new gedcom file. My files are now corrupt, (my doing). I uploaded the gedcom files twice creating duplicates. When I tired to delete the duplicates, I seem to have deleted entire families, I would like to delete everything and start over with new files. Any experience with this would be helpful.
  23. KmBdev

    Server down?

    Did some testing on 4 different devices using 3 different browser and I can not get on using my wifi. But using T-Mobile I can access the web pages. Any ideas on why this would be?
  24. fluffy82

    use different CSS style sheet

    The customizer works like a charm. I still do it the way I explained: I emptied the genstyle.css and mytngstyle.css (apart from the parts used by MODS as otherwise they will show as "partially installed") and the website automatically uses the WP theme's stylesheet and the modifications through the customizer. Some lines specific to TNG must be added manually, but once that's done you're off. I don't have a solution yet for the admin pages, I'm too afraid of making the changes mentioned above and breaking the site. I don't often use the admin part anyway. It serves for uploading my gedcom, and maybe geolocate some new places, and that's it. What I do now, is copy the content of the original genstyle.css into a file I called "mytngstyle_admin.css", which remains on my server. Whenever I need to work in the admin part, I change the name temporarily to mytngstyle.css to make it work, I do my thing, and revert it to mytngstyle_admin.css It's maybe not the most elegant solution, but it works for now.
  25. KmBdev

    Server down?

    Thank you. I just sent the email.
  26. theKiwi

    Server down?

    Go to whatismyip.com and get your IP number. Copy that and put it in an eMail to Darrin and he can see if you've been blocked at the server firewall - this happens automatically if you enter an incorrect password for the Wiki, or the Forum, or to the TNG downloads site too many times. Darrin is the only person who can remove you from the blacklist if this is what happened. Roger
  27. stores

    Server down?

    Wiki opens fine for me, have you tried a different browser?
  1. Load more activity
×