Calendar Addon - tngCalendar

113 posts in this topic

Posted

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.)

Share this post


Link to post
Share on other sites

Posted

Nice hacks...

I was going to start looking at a google map hack, but it looks like you have a nice one going.

Rush

Share this post


Link to post
Share on other sites

Posted

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).

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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).

Share this post


Link to post
Share on other sites

Posted

A nice starting point for PHP, has a bit of everything including resources for MySQL, Apache as well

http://www.php-editors.com/

Share this post


Link to post
Share on other sites

Posted

I'd be interested in more information on your google maps hack.

Sam

Share this post


Link to post
Share on other sites

Posted

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. :shock:

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. :oops:

Share this post


Link to post
Share on other sites

Posted

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).

Share this post


Link to post
Share on other sites

Posted

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

Share this post


Link to post
Share on other sites

Posted

I had a similar problem, and it was solved when I changed my tree name. The tree name cannot have any spaced in it.

Share this post


Link to post
Share on other sites

Posted

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!

Share this post


Link to post
Share on other sites

Posted

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?

Share this post


Link to post
Share on other sites

Posted

great add on!

may be an option for displayin smtg like 25th Anniversary etc wud be great smile.gif

Share this post


Link to post
Share on other sites

Posted

There seems to be some serious error in the present version. I am getting all ids wrong!!

Share this post


Link to post
Share on other sites

Posted

got it solved. Problem was with FTM padding personID with zeros sad.gif

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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?

Share this post


Link to post
Share on other sites

Posted

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...).

Share this post


Link to post
Share on other sites

Posted

Could you possibly send me the code for the calendar? Thanks a lot.

Share this post


Link to post
Share on other sites

Posted

The calendar is available at http://siege.org/projects/tngCalendar .

You can download the code from there, or look at the svn repository.

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now