Question Date & Time of last GEDCOM update
- pab
- Topic Author
- Visitor
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.
- HRN
- Offline
- Senior Member
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.
- fisharebest
- Offline
- Administrator
<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
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.
- kiwi
- Offline
- Platinum Member
I'll raise a bug report for it.
EDIT - bugs.launchpad.net/webtrees/+bug/672010
Nigel
www.our-families.info
Please Log in or Create an account to join the conversation.
- pab
- Topic Author
- Visitor
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.
- fisharebest
- Offline
- Administrator
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.
- fisharebest
- Offline
- Administrator
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.
- fisharebest
- Offline
- Administrator
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
- Live like it's Christmas every day - Santa Stephen
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
Please Log in or Create an account to join the conversation.
- pab
- Topic Author
- Visitor
Please Log in or Create an account to join the conversation.
- kiwi
- Offline
- Platinum Member
Just as a couple of asides:ToyGuy wrote: ... It is very nice addition to the stats:
- Nothing new here - that template has always been there, even in PGV
- 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 :
Nigel
www.our-families.info
Please Log in or Create an account to join the conversation.