Jump to content
TNG Community

Calendar Addon - tngCalendar


cniemira

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 112
  • Created
  • Last Reply

Top Posters In This Topic

  • cniemira

    21

  • rocksea

    8

  • clweed

    7

  • Francis

    6

Top Posters In This Topic

Posted Images

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest nbflint

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest nbflint

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!

Link to comment
Share on other sites

Guest nbflint

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...