Filename | gmaps_add_4_placelevels_v9.0.0.1.zip |
filesize | 118.74 kB |
Version | 9.0.0.1 |
Date added | March 8, 2018 |
Downloaded | 471 times |
Category | Google maps, TNG 10, TNG 9, TNG Add-ons |
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:
This mod makes use of the Mod Manager which as of TNG v8 is now built into TNG.
To install this, download the .zip file. Unzip it and place the contents (a file and a folder) into “mods” folder in your TNG folder, then install it from the Mod Manager in TNG Admin.
It will:
- Copy a TrueType font – LiberationSans-Regular.ttf – to your TNG folder
- copy 5 map pin files to the img folder
- create 1 new files in your TNG folder
- google_text_marker.php – a script which combines the text and pin image into a single image
- Make some changes to TNG files to accommodate the extra place levels. Files changed are listed on the TNG Wiki article
This change is language aware – ie it will write the description on the pin in whatever language people are viewing your site in.
If you want to change the place levels that you have previously assigned to your places without editing each place you can add this mod for TNG Google maps Update Place Levels to do this. 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.
Updates:
Version 9.0.0.1 corrects an issue that occurred when changing language
Version 9.0.0 is a new release for TNG 9.0.0 and upwards.
Previous Update: Version 8.2.0 is a new release of the current version for TNG 8.0.0 and upward that separates the installing of the “Add More Place Levels” from the ability to update the place levels you have already set. It also has some tweaks to allow Google maps to work with the TNG WordPress plug in.
Previous Update: Version 8.1.0 is a release of the current version for TNG 8.0.0 It has a number of changes to accomodate the changes made in TNG 8, but no new functionality over Version 1.1 which remains current for TNG 7
Try this page https://www.google.com/recaptcha/admin#whyrecaptcha to get started with the reCAPTCHA – that should work.
Roger
I tried to use your mod gmaps_add_4_placelevels_v9.0.0.1 on me install of TNG v10.0.3
I transfer the file and its supporting folder to my mod folder
In the Mod Manager the right column associated with the mod is pink and states that it cannot be installed
I removed every one of the other mods and still got the same notice.
I have a screen shot of the error but don’t know how to upload to you.
Could you respond via regular email and I will sent the screen shot.
I believe I had the mod working before upgrading TNG
Thanks
Roger – I like the mod, but in TNG v 10.0.3
Find First Names = ok
Find First & Middle Names = ok
Find Middle Names = http://www.mullfamilies.co.uk/firstnames-extra.php
Not Found
The requested URL /firstnames-extra.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I’m looking at your TNG Last Updated Mod. Is this a Mod I can install by using the Mod Manager within TNG 10.0.2?
Thanks
No, it’s not a Mod Manager type file – the reason is that it’s designed to put a line or two of information on to a page in a position you choose to put it. When you download the file linked here, you get the lastimport.php file and a “Read Last Import.txt” file – this contains some notes on how to use it.
Usually you would put it somewhere on your index.php file.
There is a separate Mod that provides the script needed for this – see http://tng.lythgoes.net/wiki/index.php?title=First_Names_Extra to download this.
I expect that this will get tidied up for TNG 10.1
Ray – sorry I missed seeing this for so long. Is this still an issue for you – you can eMail the screen shot of the problem to rogerkiwi@aol.com and I’ll take a look for you.
Roger
Google Maps Add 4 places : good, but would have preferred Location to remain. Also one for Township/Village and another for District. The mod changed my site settings : e.g. my Towns (2) are now cemeteries !!
I’m going to have to uninstall it, but would re-install if I had more control (and it didn’t change existing TNG pins)
Dear Roger
I have installed your Last Import Date as per the instructions and everything works well.
I was just wondering is it posible to change the colour of the text, and if so where would I change it.
‘Date of Last GEDCOM Import:
20 Feb 2015
3,943 individuals.’
I look forward to your reply
Regards
Gary Houseman
There are a couple of ways you could achieve this – probably the best way would be to
1 – change the class name that formats the text in the script
2 – add that class to your mytngstyle.css file with its new definition.
So, in the file lastimport.php, on lined 56 and 67, change the word
normal
to something else – e.g.
lastimport
Make sure that the ” before and after the word remain in place.
In the mytngstyle.css file, add this
/* to style the last import text */
.lastimport {
font-size: 12px;
color: #CC0000;
}
and change the hex code for color to whatever colour you want.
You could also just edit the file directly to add an inline style to it, but using mytngstyle.css seems easier.
Roger
Dear Roger
I ran an earlier versoin of TNG and used createsitemap 0.6 withou problems.
Now I’ve upgraded my TNG to 10.1 and I going to use your mod which is recommeded by TNG.
I camn install the MOD withouproblems, but when I run it I get the following error msg:
Warning: mysql_query(): Access denied for user ”@’10.246.64.92′ (using password: NO) in /customers/a/2/f/rejmert.dk/httpd.www/genealogy/admin_secondary.php on line 345 Warning: mysql_query(): A link to the server could not be established in /customers/a/2/f/rejmert.dk/httpd.www/genealogy/admin_secondary.php on line 345 Cannot execute query: SELECT gedcom, personID, changedate FROM tng_people
Do you have any idea that can help me. Thanks in advance
Bo Sorensen
You need to Uninstall that version of the Mod, then install the new version that is for TNG 10.1 from this page
http://lisaandroger.com/downloads/?did=29
Roger
Hi Roger
That I already did – and I’ve done it again to be sure. Still same problem
Bo.
Roger, You indicated that the birthday, deaths and anniversary scripts were updated to work in 10.1 and to download them. However, when I go to the above links for each, all I see is the older versions 1.3, etc.
Sorry – I thought I’d packaged them up and placed them there for download, but apparently not. Sorry for the confusion. But they’re there now.
Thank you sir!!
Hi Roger,
Thanks for the Surnames Tag Cloud Mod. I downloaded it and, as expected, it works like a charm.
Now on to TNG 10.1.1
Arthur
Glad you like it 🙂
RE: Relationship to Site Owner Mod
Sorry if I missed finding a solution posted elsewhere before writing but, I didn’t see one. I updated TNG from 9 to 10.1.1
I ran your mod successfully on 9 for years. I removed the old version using mod manager.
I installed the latest version. It is not working.
1st issue, under the edit parameters tab I only get 3. Tree, Bots, & Number. Set ID is missing, all of it. I do not even get an empty cell. The default of I1 should work but, it is not.
2nd issue, the “Files” pop-up says a file “relatedToSiteOwner.php” was to be created. I do not see that that happened.
Thank you for your mod and your assistance. -Ken
Can you send an eMail to me at rogerkiwi@aol.com with your TNG Admin login details so I can log in and take a look.
Roger,
I notice that the Create sitemap MOD does not include some standard TNG pages as well as any of my custom pages.
Is there a way to add a list of my own pages I want to be in the sitemap index?
Thanks in advance for any help.
Jay
You can create another sitemap file with what you want in it and then list the various sitemap files in your robots.txt file. See http://www.advancedhtml.co.uk/robots-sitemaps.htm for examples on how to do this….
Roger,
I’ve installed your birthday, anniversary, and death list add ons. I would like to make the font size a little bit larger as well as move the title to the left (not centered) and put an underline under the title. Do you have any tips on how to do this?
Thanks.
Marc
To change the font size you will need to either:
1 – edit the TNG css files to change the size used by the class “smaller” – this will affect the use of type this size over the entire TNG site
or
2 – look through the add-on files for the code that looks like this
<span class=\"smaller\">
and change the smaller to normal for example to change the size
or
3 – change the smaller to some other unique word and then create a whole new css style for that class
To align the title only to the left you’d have to change the instances of
<div align=\"center\">
to
<div align=\"left\">
in the lines that are creating the header – they usually have the word “header” in them somewhere.
Hope this Helps
Roger, Just following up on the sitemap issue I mentioned before about having a place to store the custom pages urls that should be included in a sitemap index.
If my understanding is correct, there should only be one sitemap index
Robots.txt shoudl include either
Complete listing of URLs to be index or one listing for location of sitemap index.
So if I need a sitemap creator to review the database for all the correct URLs to include,
then I think we need a way to add these custom url additions to the sitemap during the create process.
My thought is to make it a variable switchable on/off
If on, then it simply will include the custom sitemap “tngsitemap0” to the final tngsitemapindex.xml file
It’s then up to the site admin to add their urls as needed to the tngsitemap0.xml file.
Im am not a coder, but I believe some code snippets would be like;
%parameter:$indexcustom:0%
%desc:Set this to 1 to include a custom url list in the sitemap.The default is (0)%
$indexcustom = “0”;
if ($indexcustom) {
// add custom urls to index
// Add file location of custom urls xml file
}
Is this something you could add to the current sitemap create mod?
Thanks for taking the time to review.
Jay
Birthday, Death Dates and Anniversary Lists
Is it possible to pull dates from a specific tree?
Is it possible that users only see dates from their specific branch they are allocated to?
I very recently downloaded your birthday, anniversary and death scripts and got them to work on my site. I seem to recall however, that if anyone had one of those events, their name would appear even if you were not logged in when viewing the page. The difference is that when logged in, you could click on the name and be taken to their information. That does not seem to be the case now. How would I change it to reflect that?
Fred
I’m not sure if it’s ever done what you’re asking for exactly – the scripts do check to see if the user is logged in, and so allowed to information about Living people or not. That is used to determine whether to show the people’s names or not and the $outputoption setting used to determine if there are links or not.
To do what you’re wanting, the initial query would have to be changed to remove the check if the user is logged in or not, do the query for all events on that date and then alter the output depending on whether or not the user was logged in or not.
Merv – yes I guess this is possible – the queries would need to be altered to include a query for the “gedcom” (how TNG identifies “trees”). Are you wanting it to be a specific tree, or a tree determined dynamically somehow?
Same would apply to Branches – it would need to be altered to include the branch in the query depending on what user is logged in, and then use that as part of the query too. I don’t use Branches myself, so aren’t familiar with how that works exactly, so while I imagine it ought to be possible to do this, it might take me a while to figure this out so it works properly.
Perhaps I wasn’t clear on my initial post. What is happening is that if someone living has a birthday, that person’s name does not appear at all unless you are logged into the site. Once you are logged in, the person’s name appears and it has a link to its information. If I read your response correctly, the script is supposed to do what I am asking it to do, however it is not happening. As for changing the query, I don’t have enough knowledge about queries to attempt it.
It is working as the current design intends.
I am not sure that it has ever done as you expect it to do – show the names regardless of whether someone is allowed to see Living or not and then show the link depending on this.
Yes it could be altered to do what you are expecting it to do, but not today, and probably not tomorrow.
Roger
Thanks for your response…don’t know what happened but when I went to the site today, the person was listed with a link that was accessible when logged in. As you say, it is doing what I want it to do.
One other question about your Top 10 Surnames script, what part of the code would need to be changed to reflect two columns of 5 names each instead of one column listing all ten names?
I was wrong about the display. The best way for me to explain the issue is for you to go to my page. The link is located at http://www.fredsfollies.com/900geneology/ and you will see at the right hand column that today (10/31/2015) there is a death showing but no birthdays being displayed. There are two living people that have a birthday today but they don’t show unless you log in. You can use guest/guest to log in to see what I mean.
Re : Pulling dates from a specific branch…
Kia ora Roger,
With a few tweeks of your code, I think I have managed to get this going. It’s not the tidiest of solutions but it seems to work ok. I could send these files through to you if you would like to inspect?… working examples are on my site.
Merv
Just a word of caution… the anniversary lists (birthdays, weddings and deaths) currently display details of people marked “private” in your database.
I understand Roger is working on a solution.
Merv
Don’t know if my last submission got to you. The Bold Ancestor Children Links will not install, due to likely conflict with Family Preview Mod.
Errors
line 11: %target:getperson.php%
line 13: %location:% not installed
line 21: %location:% not installed
line 29: %location:% Bad target
Can this be fixed by sequencing the Mods and changing a line?
I’ve revised the Mod so that hopefully it can now install before or after the Family Preview Mod. Uninstall and then Delete what you’ve got and then try the new version.
Roger
I was wondering if your TNG mod Relationship to Site Owner works with the latest version of TNG? I have been trying to get it to work (mod version 10.1) and I haven’t had any luck. Any suggestions?
Yes it works just fine.
Are you SURE you have set the correct parameters in the Options in Mod Manager for TreeID and starting person ID?
I have double checked and everything seems to be correct…
Hi there, I recently updated tng from 11.0 to 11.0.1 and the relationship to site owner is showing more than the usual relations..
i know i relate twice to this individual but now it shows 4 times.. It flips the parents and relists them again..
http://www.stewartsny.com/genealogy/getperson.php?personID=I476&tree=Full1 if you get a chance to look.
-Kevin junkyinny@gmail.com
Thanks for letting me know – I hadn’t noticed that for example on my site it gave a single line between me and my great great grandfather, but when you clicked that line it gave two charts that were the same, but name the relationship in two different ways – that William was my great great grandfather, and that I was William’s great great grandson. I’ve made a change that mirrors a change Darrin recently made so now it’s back to a single chart in this circumstance. It’s available to download here – give it a try and see if it works for your page – i.e. for that page with 2 relationships you get two charts.
Hello,
is something broken here?
I come from TNG wiki to download a mod. But where is this mod (Create sitemap mod) ??
What am I doing wrong?
Jürgen
Jürgen – sorry about the problems – an update to the Download-Monitor plugin rendered it all not working. I’ve got all that sorted out, and just now have to update the TNG Wiki with the new links.
Roger
I’ve downloaded and installed the mod. (And made a donation.)
I installed it and hit the “Create Sitemap” button. From the instructions, I expected it to take a while.
But the page has bee at this point for 40 minutes:
“TNG Sitemap Creator
Please wait… sitemap being generated from TNG database. This may take some time depending on the size of your database.
Records Processed:”
Nothing further. Anything wrong on my end? Running 11.1.2
Downloaded from this page:
http://lisaandroger.com/downloads/download-info/tng-8-tng-9-tng10-create-a-google-sitemap/#respond
Roger,
hope all is good. Looking for info on possible updates/ upgrades to 2 different scripts.
first the old “list_birthdays.php”
Is it possible to add a function to show
1) Only persons in the current users “assignedbranch” ?
2) Only ‘milestone’ years (5,10,15,20…etc)
3) both birthdays AND Anniversaries?
Most of my users say the list is too big (because in many cases they have over 12,000 persons related to them in the database)
So they would only like to see those milestone years.
I will start a diff message for the other…
Thanks for your time on these great add on scripts for tNG!
Jay
William – for TNG 11.1.2 (in fact any TNG greater than 10.1.0) you need the download from
http://lisaandroger.com/downloads/download-info/tng-10-1-create-a-google-sitemap/
Roger
Hi,
I can’t seem to get any of the birthday, anniversary or death lists working 100% on user pages in TNG version12.
Nothing displays when logged out in fact nothing past the code displays.
They display okay when logged in though.
The trouble is that these user pages are introductory pages to certain branches of my website so the lists will have to go if this can’t be sorted
(They were working okay in TNG10.)
Any idea why?
Thanks,
Merv
Have you downloaded the newest versions of these files recently?
TNG 10.1 introduced new query syntax that uses mysqli not mysql, but I have updated the scripts to use that long ago.
Has anything else changed – like the path to the scripts relative to TNG?
Is there anything in your site’s error logs when you try to load a page that contains the scripts?
Roger