![]() ![]() |
| cniemira |
Dec 23 2005, 06:20 PM
Post
#1
|
|
Member Group: Members Posts: 28 Joined: 23-December 05 Member No.: 725 |
Hello!
I'm a newbie here (both to the forums and the genealogy world in general), but I've had TNG installed for long enough to have hacked it up a bit and I thought I'd share my results. My rather pedestrian (and not very populated) site is http://niemira.org Of particular interest might be my calelendar addon: http://niemira.org/calendar , and my Google-Maps hack: http://niemira.org/genealogy/showheadstone.php?ID=1 . The calendar addon (called tngCalendar) is open-source and is packaged and available from http://siege.org/projects/tngCalendar . I'll be releasing a newer version with some bug fixes after Christmas. The maps hack isn't available (unlike the calendar, it requires changes to TNG core files), but if people are interested I can pack it up and make it available to download. (I must say, though... even though I only have two headstones in my archive right now, they looked much cooler when gMaps actually drew the road in that cemetary... that seems to have vanished.) |
| Rush |
Dec 23 2005, 08:46 PM
Post
#2
|
|
Advanced Member Group: Members Posts: 1,008 Joined: 8-November 05 Member No.: 676 |
Nice hacks...
I was going to start looking at a google map hack, but it looks like you have a nice one going. Rush |
| fitz-gerald |
Dec 27 2005, 07:12 PM
Post
#3
|
|
Newbie Group: Members Posts: 9 Joined: 26-December 05 From: Florida Member No.: 728 |
Nice calendar, but it looks like it reveals dates for the living members of genealogy site as well (I don't think that was the plan).
|
| cniemira |
Dec 29 2005, 03:50 PM
Post
#4
|
|
Member Group: Members Posts: 28 Joined: 23-December 05 Member No.: 725 |
Yes, it does reveal birth days and anniversaries for living persons, that's not a mistake. In my case, it's actually why I wrote the thing. ;-)
There's a note about security on my project page. |
| fitz-gerald |
Jan 1 2006, 05:47 AM
Post
#5
|
|
Newbie Group: Members Posts: 9 Joined: 26-December 05 From: Florida Member No.: 728 |
I think I found another bug in the calendar (sorry bud).
When a woman has a birthday and you click on the person it brings up the husband record and the woman is listed under family ... but if there is no family then it does something else (I'm trying to figure out where it gets the record ID from). Suggestions : A flag at the top for the following two/three items (living, tree and branch). I have two trees and over 4000 names ... most of whom have been deceased for 100+ yrs. VERY VERY NICE ADD-ON. If you can direct me to a good programming guide on PHP I'll try to modify the suggestions, but I'm no where up to speed on PHP (yet). |
| bleagans |
Jan 2 2006, 09:32 AM
Post
#6
|
|
Newbie Group: Members Posts: 3 Joined: 28-December 05 From: Prattville, Alabama Member No.: 729 |
A nice starting point for PHP, has a bit of everything including resources for MySQL, Apache as well
http://www.php-editors.com/ |
| samag70-1@yahoo.ca |
Jan 4 2006, 11:21 PM
Post
#7
|
|
Member Group: Members Posts: 12 Joined: 1-January 06 Member No.: 737 |
I'd be interested in more information on your google maps hack.
Sam |
| cniemira |
Jan 5 2006, 07:44 AM
Post
#8
|
|
Member Group: Members Posts: 28 Joined: 23-December 05 Member No.: 725 |
QUOTE(fitz-gerald) I think I found another bug in the calendar (sorry bud).
No problem at all... I'd certainly rather they be found than not. QUOTE(fitz-gerald) When a woman has a birthday and you click on the person it brings up the husband record and the woman is listed under family ... but if there is no family then it does something else (I'm trying to figure out where it gets the record ID from).
The ID comes directly from the individual (in the case of an individual), but in the current release, tree information is not included in the record link (for either individuals or families). The SVN version (there's a link on my project page) does have that tree information. I'm thinking that maybe this could be the source of the problem? If your site is available on the Internet, can you PM me the calendar link so I can take a look at the URLs being generated by the calendar? QUOTE(fitz-gerald) Suggestions : A flag at the top for the following two/three items (living, tree and branch). I have two trees and over 4000 names ... most of whom have been deceased for 100+ yrs.
I'll certainly look into adding these features. I can imagine that 4000+ names would produce quite a crowded calendar. :shock: QUOTE(fitz-gerald) VERY VERY NICE ADD-ON.
Thank you. I'm glad it's appreciated. QUOTE(fitz-gerald) If you can direct me to a good programming guide on PHP I'll try to modify the suggestions, but I'm no where up to speed on PHP (yet).
The site bleagans mentions is a good starting point. If you know HTML and any other scripting language (Perl, ASP, etc...) then PHP is really very simple to learn. It's all just syntax... the hard part is always deciphering someone else's code. :oops: |
| cniemira |
Jan 5 2006, 08:14 AM
Post
#9
|
|
Member Group: Members Posts: 28 Joined: 23-December 05 Member No.: 725 |
QUOTE(samag70-1@yahoo.ca) I'd be interested in more information on your google maps hack.
Sure thing... I'll PM you the link, and will be happy to send it to anyone else who wants it... but since the download contains modified versions of TNG code, I don't feel comfortable putting the link up publicly (unlike my calendar which contains no code from TNG). |
| nbflint |
Jan 10 2006, 10:04 AM
Post
#10
|
|
Unregistered |
I really like the calendar! I've been wanting to have this type of calendar function in TNG.
I'm having a small problem, and I'm sure it's something I forgot to do or did wrong. I installed tngcalendar into my base directory with TNG. I did this because my headers did work properly with tngCalendar was in a child directory. The calendar displays fine but when I click on any person or persons the resulting page shows no information. http://www.flintfamilyhistory.com http://www.flintfamilyhistory.com/calendar.php Any thought? Thanks |
| jonesturtle |
Jan 10 2006, 11:40 AM
Post
#11
|
|
Member Group: Members Posts: 16 Joined: 29-December 05 Member No.: 730 |
One of the main problems is that the calender is generating this link
//getperson.php?personID=I1630' target='_blank'>http://www.flintfamilyhistory.com[color=re...?personID=I1630 Notice the extra / in the path. The other problem is that it doesn't contain your tree name at the end &tree=Flint The link should look like this http://www.flintfamilyhistory.com/getperso...1630&tree=Flint |
| afoster |
Jan 10 2006, 01:04 PM
Post
#12
|
|
Advanced Member Group: Members Posts: 43 Joined: 11-November 05 Member No.: 681 |
I had a similar problem, and it was solved when I changed my tree name. The tree name cannot have any spaced in it.
|
| nbflint |
Jan 13 2006, 04:09 AM
Post
#13
|
|
Unregistered |
Thanks for the help on this.
I changed line 152 of calendar.php from: $link = '<a href="' . $tngdomain . '/getperson.php?personID=I' . $row['id'] . '" class="calEvent" onmouseover="return escape('' . $fullname . '');">' . $name . '</a>'; to: $link = '<a href="' . $tngdomain . 'getperson.php?personID=I' . $row['id'] . '&tree=Flint' . '" class="calEvent" onmouseover="return escape('' . $fullname . '');">' . $name . '</a>'; note the dropped slash and the added tree name. I suppose I should have use a variable for the tree name but since I only have one tree I'm not going to worry about it right now. If you have the code I'd use for grabbing the tree name please post it. I'll use it. Thanks again! |
| nbflint |
Jan 13 2006, 04:27 AM
Post
#14
|
|
Unregistered |
That seemed to work, but now the id numbers are wrong so the link doesn't show up right.
I put the "/" back into calendar.php and changed the domain in config.php to remove the trailing "/" as I noticed that this happens with family links as well. Any ideas why the id numbers are wrong? |
| rocksea |
Jan 15 2006, 03:36 AM
Post
#15
|
|
Advanced Member Group: Members Posts: 79 Joined: 13-January 06 Member No.: 757 |
great add on!
may be an option for displayin smtg like 25th Anniversary etc wud be great :) |
| rocksea |
Jan 16 2006, 12:27 AM
Post
#16
|
|
Advanced Member Group: Members Posts: 79 Joined: 13-January 06 Member No.: 757 |
There seems to be some serious error in the present version. I am getting all ids wrong!!
|
| rocksea |
Jan 16 2006, 04:29 AM
Post
#17
|
|
Advanced Member Group: Members Posts: 79 Joined: 13-January 06 Member No.: 757 |
got it solved. Problem was with FTM padding personID with zeros :(
|
| cniemira |
Jan 16 2006, 02:24 PM
Post
#18
|
|
Member Group: Members Posts: 28 Joined: 23-December 05 Member No.: 725 |
Wow... a lot to reply to here...
Most of the problems people have emailed or PM'ed me about have to do with the fact that the present version (1.1) of the calendar does not support anything but the default tree. That's simply because it's all I've got in my (humble) database, so that's all I designed for :oops: The latest SVN version (1.2) has a couple of updates that provide a fix for sites that use multiple trees, and fix that double slash problem in generated hyperlinks: http://siege.org/svn/tngCalendar/trunk/index.php If a few folks would test this out (just replace the one php file) and let me know how it works on a real site (I'm using it on mine, but again... only one tree), I'll release it officially and then get to work on more features. |
| cniemira |
Jan 21 2006, 10:06 AM
Post
#19
|
|
Member Group: Members Posts: 28 Joined: 23-December 05 Member No.: 725 |
Scratch that...
The latest version (in the source control system) is 1.3, and has two major fixes: 1) It turns out that I was indeed getting ID numbers wrong. I was selecting the row number and not the gedcom number. That should be fixed now. 2) Version 1.2 broke anniveraries when it attempted to add tree support. That being the case, please don't use version 1.2. I'll release 1.3 formally after a bit more testing... :oops: I've also added support for nicknames, lnprefix, and suffix (when available). This should resolve all known problems to date... knock on wood. |
| nbflint |
Jan 23 2006, 10:06 PM
Post
#20
|
|
Unregistered |
v1.3 does not contain any of the problems I had previously. It looks and works great now!
How could this be changed to show only living individuals? |
![]() ![]() |
|
Lo-Fi Version | Time is now: 3rd September 2010 - 05:06 AM |