cniemira Posted December 24, 2005 Report Share Posted December 24, 2005 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.) Quote Link to comment Share on other sites More sharing options...
Rush Posted December 24, 2005 Report Share Posted December 24, 2005 Nice hacks...I was going to start looking at a google map hack, but it looks like you have a nice one going.Rush Quote Link to comment Share on other sites More sharing options...
fitz-gerald Posted December 28, 2005 Report Share Posted December 28, 2005 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). Quote Link to comment Share on other sites More sharing options...
cniemira Posted December 29, 2005 Author Report Share Posted December 29, 2005 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. Quote Link to comment Share on other sites More sharing options...
fitz-gerald Posted January 1, 2006 Report Share Posted January 1, 2006 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). Quote Link to comment Share on other sites More sharing options...
bleagans Posted January 2, 2006 Report Share Posted January 2, 2006 A nice starting point for PHP, has a bit of everything including resources for MySQL, Apache as wellhttp://www.php-editors.com/ Quote Link to comment Share on other sites More sharing options...
samag70-1@yahoo.ca Posted January 5, 2006 Report Share Posted January 5, 2006 I'd be interested in more information on your google maps hack.Sam Quote Link to comment Share on other sites More sharing options...
cniemira Posted January 5, 2006 Author Report Share Posted January 5, 2006 I think I found another bug in the calendar (sorry bud).No problem at all... I'd certainly rather they be found than not.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?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. VERY VERY NICE ADD-ON.Thank you. I'm glad it's appreciated.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. Quote Link to comment Share on other sites More sharing options...
cniemira Posted January 5, 2006 Author Report Share Posted January 5, 2006 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). Quote Link to comment Share on other sites More sharing options...
Guest nbflint Posted January 10, 2006 Report Share Posted January 10, 2006 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.comhttp://www.flintfamilyhistory.com/calendar.phpAny thought?Thanks Quote Link to comment Share on other sites More sharing options...
jonesturtle Posted January 10, 2006 Report Share Posted January 10, 2006 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=I1630Notice the extra / in the path. The other problem is that it doesn't contain your tree name at the end&tree=FlintThe link should look like thishttp://www.flintfamilyhistory.com/getperso...1630&tree=Flint Quote Link to comment Share on other sites More sharing options...
afoster Posted January 10, 2006 Report Share Posted January 10, 2006 I had a similar problem, and it was solved when I changed my tree name. The tree name cannot have any spaced in it. Quote Link to comment Share on other sites More sharing options...
Guest nbflint Posted January 13, 2006 Report Share Posted January 13, 2006 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! Quote Link to comment Share on other sites More sharing options...
Guest nbflint Posted January 13, 2006 Report Share Posted January 13, 2006 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? Quote Link to comment Share on other sites More sharing options...
rocksea Posted January 15, 2006 Report Share Posted January 15, 2006 great add on!may be an option for displayin smtg like 25th Anniversary etc wud be great Quote Link to comment Share on other sites More sharing options...
rocksea Posted January 16, 2006 Report Share Posted January 16, 2006 There seems to be some serious error in the present version. I am getting all ids wrong!! Quote Link to comment Share on other sites More sharing options...
rocksea Posted January 16, 2006 Report Share Posted January 16, 2006 got it solved. Problem was with FTM padding personID with zeros Quote Link to comment Share on other sites More sharing options...
cniemira Posted January 16, 2006 Author Report Share Posted January 16, 2006 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 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.phpIf 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. Quote Link to comment Share on other sites More sharing options...
cniemira Posted January 21, 2006 Author Report Share Posted January 21, 2006 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... I've also added support for nicknames, lnprefix, and suffix (when available).This should resolve all known problems to date... knock on wood. Quote Link to comment Share on other sites More sharing options...
Guest nbflint Posted January 24, 2006 Report Share Posted January 24, 2006 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? Quote Link to comment Share on other sites More sharing options...
cniemira Posted January 24, 2006 Author Report Share Posted January 24, 2006 The next release will better integrate with TNG's security model. That is to say, 1.4 (or later, if I have to do more bug-fixing), will be able to be set up to only show living persons when you log in.I'm also planning to add a few features that will let you filter the results (such as only showing selected trees, filter by living/not-living, etc...). Quote Link to comment Share on other sites More sharing options...
jgrantham Posted January 24, 2006 Report Share Posted January 24, 2006 Could you possibly send me the code for the calendar? Thanks a lot. Quote Link to comment Share on other sites More sharing options...
cniemira Posted January 24, 2006 Author Report Share Posted January 24, 2006 The calendar is available at http://siege.org/projects/tngCalendar .You can download the code from there, or look at the svn repository. Quote Link to comment Share on other sites More sharing options...
jgrantham Posted January 24, 2006 Report Share Posted January 24, 2006 Thanks. I found it after I postd. I am working on integrating it in TNG with the Login security and hiding Living individuals if not logged in. Quote Link to comment Share on other sites More sharing options...
arnold Posted January 24, 2006 Report Share Posted January 24, 2006 The calendar is available at http://siege.org/projects/tngCalendar.You can download the code from there, or look at the svn repository.Please check your link. It is not working out here in Missouri. I get a 404 error. 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.