Web based family history software

Question Date & Time of last GEDCOM update

  • pab
  • Topic Author
  • Visitor
  • Visitor
13 years 4 months ago #1 by pab
Can the date & time of the last instance a GEDCOM was updated be included in the Gedcom Statistics module?
When this module is displayed on the home page it would then be an indicator of how active the site is.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #2 by HRN
Replied by HRN on topic Re: Date & Time of last GEDCOM update
There is an own block "Recent Canges" to be activated on your home page

webtrees 2.1.18 at visitusinmaputo.com/webtree PHP 8.1.27
webtrees 2.1 dev on local Wampserver 3.3.2 PHP 8.2.13/8.3.0 MySQL 8.2.0

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #3 by fisharebest
Replied by fisharebest on topic Re: Date & Time of last GEDCOM update
If you have a "html" block, you can embed the code #gedcomUpdated# to show the date of the last update. e.g.

<p>This family tree was last updated on #gedcomUpdated#</p>

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • pab
  • Topic Author
  • Visitor
  • Visitor
13 years 4 months ago #4 by pab
Replied by pab on topic Re: Date & Time of last GEDCOM update
Hi fisharebest

I tried this. It worked in 1.0.4 but when I upgraded to 1.0.5 I got this horrible error message:

Strict Standards: Non-static method stats::gedcomUpdated() cannot be called statically, assuming $this from compatible context stats in /home/bootes/public_html/webtrees/includes/classes/class_stats.php on line 190

So I deleted my old HTML block and put up some plain text instead.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #5 by kiwi
Replied by kiwi on topic Re: Date & Time of last GEDCOM update
Unfortunately it looks like something has completely broken the HTML block code in 1.0.5 (which is frustrating because my own site uses it extensively - so I can't upgrade :-( )

I'll raise a bug report for it.

EDIT - bugs.launchpad.net/webtrees/+bug/672010
Last edit: 13 years 4 months ago by kiwi.

Please Log in or Create an account to join the conversation.

  • pab
  • Topic Author
  • Visitor
  • Visitor
13 years 4 months ago #6 by pab
Replied by pab on topic Re: Date & Time of last GEDCOM update
Thanks kiwi - I didn't know whether it was a bug or just me!
Anyway, I still think that date & time of last update properly belongs in the GEDCOM statistics module more so than the date created which shows at present.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #7 by fisharebest
Replied by fisharebest on topic Re: Date & Time of last GEDCOM update
I think this is a PHP5.2 / PHP5.3 issue.

We seem to be hitting a bug in PHP that was fixed in PHP5.3.0.

Leave it with me.....

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #8 by fisharebest
Replied by fisharebest on topic Re: Date & Time of last GEDCOM update
OK, I have reproduced the problem on a PHP5.2 site, and found a change that works on both PHP5.2 and PHP5.3

A patch is available from bugs.launchpad.net/webtrees/+bug/672010

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #9 by fisharebest
Replied by fisharebest on topic Re: Date & Time of last GEDCOM update

pab wrote: Anyway, I still think that date & time of last update properly belongs in the GEDCOM statistics module more so than the date created which shows at present.


FYI, you can customise this yourself.

1) disable the ckeditor module

2) add an HTML block

3) in the block config, choose the template "GEDCOM statistics"

4) edit the generated HTML - changing the "created on" sentence to use the "updated on" tag that I showed you earlier.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • ToyGuy
  • Offline
  • Moderator
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
More
13 years 4 months ago #10 by ToyGuy
Replied by ToyGuy on topic Re: Date & Time of last GEDCOM update
Greg
Excellent solution - offering, and thanks. It is very nice addition to the stats:


Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
Attachments:

Please Log in or Create an account to join the conversation.

  • pab
  • Topic Author
  • Visitor
  • Visitor
13 years 4 months ago #11 by pab
Replied by pab on topic Re: Date & Time of last GEDCOM update
Many thanks to all for a speedy solution and useful suggestions :-)

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #12 by kiwi
Replied by kiwi on topic Re: Date & Time of last GEDCOM update

ToyGuy wrote: ... It is very nice addition to the stats:

Just as a couple of asides:
  1. Nothing new here - that template has always been there, even in PGV
  2. If you look at the the template "GEDCOM statistics" recommended here you will see it is just a simple HTML table with a selection of tags like the #gedcomUpdated# Greg recommended. On my site I have a tiny summary of the stats done in a similar way :
Attachments:

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}