TNG 7 Google maps Add More Place Levels

 

This add on, delivered in the form of a “Mod Manager” config file will add 4 more place levels to the sequence of place levels available when geocoding places, AND it changes the layout of the Pin Legend under the Google map on the getperson.php pages from [pin] [=text] [pin] [=text] [pin] [=text] to a row of pins with the text (dynamically) superimposed on the pin. You can see the differences in this image:

TNG Map Pins Modification

To use this you must be using the Mod Manager Add-on for TNG – see http://tng.lythgoes.net/wiki/index.php?title=Mod_Manager.

To install this download the .zip file. Unzip it and place the contents (6 files and a folder) into “mod_folder” folder in your TNG/admin folder, then install it from the Mod Manager in TNG Admin.

It will copy the font “LiberationSans-Regular.ttf” to the googlemaps folder, create a file “text_marker.php” in the googlemaps folder, copy 5 new pins to the googlemaps folder, copy 2 files to the admin folder and make some changes to several of the TNG files.

This change is language aware – ie it will write the description on the pin in whatever language people are viewing your site in.

More details, including instructions on how to update your tng_places table to use the extra place levels can be found on the TNG Wiki on this page.

Update: Version 1.1 corrects an issue with the pins drawing correctly on 64 bit servers, and also adds a tweak for the relative positioning of the pin and the text. Thanks to Scotty Darling, Ken Roy and ICDSoft for their help sorting this out.

If you are looking for the TNG 8 version it is here

 Posted by at 5:50 am

TNG 7 Google maps Change Pin Legend

 

This add on, delivered in the form of a “Mod Manager” config file will change the layout of the Pin Legend under the Google map on the getperson.php pages from [pin] [=text] [pin] [=text] [pin] [=text] to a row of pins with the text (dynamically) superimposed on the pin. You can see the differences in this image:

TNG Map Pins Modification

To use this you must be using the Mod Manager Add-on for TNG – see http://tng.lythgoes.net/wiki/index.php?title=Mod_Manager.

To install this download the .zip file. Unzip it and place the contents (a file and a folder) into “mod_folder” folder in your TNG/admin folder, then install it from the Mod Manager in TNG Admin.

It will copy the font “LiberationSans-Regular.ttf” to the googlemaps folder and create a file “text_marker.php” in the googlemaps folder.

This change is language aware – ie it will write the description on the pin in whatever language people are viewing your site in.

More details are available on the TNG Wiki at this page.

Update: Version 1.1 corrects an issue when running v1.0 on 64 bit servers, and also contains some tweaking of the relative position of pin and text. Thanks to Scotty Darling and Ken Roy and ICDSoft for helping figure this out.

If you are looking for the TNG 8 version it is here

 Posted by at 12:10 pm

Remove “Status Located” – TNG 7

 

This file, when run will go through the media table and remove the phrase “Status: Located” from all of the media items EXCEPT from those with mediatypeID=”headstones”.

To run it, put it in your Admin folder, and then go to

http://PathToYourTNGSite/admin/dbupdateRemoveStatusLocated.php

It wouldn’t hurt to have a backup of your tables before you do this 🙂

 Posted by at 1:01 pm

reCAPTCHA Spam Prevention TNG 7

 

An add-on script for TNG that utilises the reCAPTCHA developed by Carnegie Mellon University’, and now controlled by Google to determine if someone posting a Suggestion or registering for a User Account is a human or a machine, and so cut down on these forms being used to send Spam to you.

Version 7.1.1 updates the notes and links to reflect that the reCAPTCHA is now controlled by Google, and revises the Version Number to reflect that this works with TNG 7. (Version 8.x.x works with TNG 8).

Version 1.1 adds support for multiple languages.

You can see this in operation here.

Some additional notes, and installation instructions are in the file “Read Me – Using reCAPTCHA on your TNG Site”.

You need to register with Google to get a public and private key that is used. You can now get a “global” key pair that will work across multiple domains you control if needed.

 Posted by at 8:54 am

TNG Birthdays List

 

An add-on script for TNG that produces a list of birthdays from your database. It is configurable to look into the future a specified number of days (default is 0), to work based on the user’s local time, has configurable output and supports multiple languages.

Updated version now includes “Last Name Prefix” as part of the last name if you’re using that option in TNG. Thanks to Edward van der Maarel for letting me know this was missing.

Update 1.2 tidies up the code some, and corrects an issue where if the script was called directly (rather than embedded in a page) Living people would show in the list.

Update 1.3 is updated for TNG 8.x.x, including the new location of the language folders and to use single-quoted variables as most of TNG is now using. If you need the (now un-supported) version for TNG 7.x.x it is available from this link.

Be sure to read the Read Me file included in the download.

You can see this in operation here
and included on this page http://roger.lisaandroger.com/

 Posted by at 2:40 pm

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close