Web based family history software

Question Historical Facts?

  • jprause
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 2 months ago #1 by jprause
Historical Facts? was created by jprause
In 1.7 there is a feature Historical Facts, see wiki.webtrees.net/en/Historical_Facts .
Is this available in 2.0 ?

Josef

webhosting:-- webtrees 2.1.18, PHP version 8.1.16, MySQL 8.0.22, test site webtrees 2.1.18
local desktop:-- webtrees 2.1.18, PHP version 8.2.12, MySQL 8.0.28, Apache2 2.4.41, Linux Ubuntu 22.04 64bit

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

More
4 years 2 months ago #2 by fisharebest
Replied by fisharebest on topic Historical Facts?
Historical facts are now modules.

There are some built-in modules. e.g US Presidents

These are enabled in the control panel.

It is simple to write a module.

Or just provide the facts, and I can do it.

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

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

  • jprause
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 2 months ago #3 by jprause
Replied by jprause on topic Historical Facts?
Thank you, Greg, it's great. I will try to write another one, later.
There were 14 US presidents during my life.

Josef

webhosting:-- webtrees 2.1.18, PHP version 8.1.16, MySQL 8.0.22, test site webtrees 2.1.18
local desktop:-- webtrees 2.1.18, PHP version 8.2.12, MySQL 8.0.28, Apache2 2.4.41, Linux Ubuntu 22.04 64bit

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

More
4 years 2 months ago #4 by fisharebest
Replied by fisharebest on topic Historical Facts?
> There were 14 US presidents during my life.

You must be much older than you look in your photo ;-)

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

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

  • jprause
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 2 months ago - 4 years 2 months ago #5 by jprause
Replied by jprause on topic Historical Facts?
Well... (see my profile, may be I am a historical fact myself)

Josef

webhosting:-- webtrees 2.1.18, PHP version 8.1.16, MySQL 8.0.22, test site webtrees 2.1.18
local desktop:-- webtrees 2.1.18, PHP version 8.2.12, MySQL 8.0.28, Apache2 2.4.41, Linux Ubuntu 22.04 64bit
Last edit: 4 years 2 months ago by jprause.

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

  • jprause
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 2 months ago - 4 years 2 months ago #6 by jprause
Replied by jprause on topic Historical Facts?
Hi Greg, I wrote a custom historic events module (based on example.disable and US Presidents).
It can be seen on github.com/jpretired/czech-monarchs-and-presidents
I would appreciate if you find a few minutes spare time to check it.
It works as can be seen e.g. on test.jprodina.cz/tree/tree1/individual/I...%C5%A1%20%C5%A0punda

Thank you

Josef

webhosting:-- webtrees 2.1.18, PHP version 8.1.16, MySQL 8.0.22, test site webtrees 2.1.18
local desktop:-- webtrees 2.1.18, PHP version 8.2.12, MySQL 8.0.28, Apache2 2.4.41, Linux Ubuntu 22.04 64bit
Last edit: 4 years 2 months ago by jprause.

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

More
4 years 2 months ago #7 by fisharebest
Replied by fisharebest on topic Historical Facts?
Can I add this to the core code?

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

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

  • jprause
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 2 months ago #8 by jprause
Replied by jprause on topic Historical Facts?
I wouldn't object to that.

Josef

webhosting:-- webtrees 2.1.18, PHP version 8.1.16, MySQL 8.0.22, test site webtrees 2.1.18
local desktop:-- webtrees 2.1.18, PHP version 8.2.12, MySQL 8.0.28, Apache2 2.4.41, Linux Ubuntu 22.04 64bit

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

More
4 years 2 months ago - 4 years 2 months ago #9 by fisharebest
Replied by fisharebest on topic Historical Facts?
Thanks - I have added this.

If anybody wants to contribute historic events for their own country, you simply need a list in this format:

github.com/fisharebest/webtrees/blob/2.0...onarchs.php#L59-L106

Please post them on the github issue tracker.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Last edit: 4 years 2 months ago by fisharebest.

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

More
4 years 2 months ago #10 by godzil
Replied by godzil on topic Historical Facts?
Hi Greg,

I've tried add own version of histo facts like british monarchy placing them on /app/Module but it's not even visible in modules.
Does it must be like Josef did by modules_v4/*name*/module.php? if so i guess there must be some verification mechanism of modules if they are custom or stock?

Regards
Adrian

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

More
4 years 2 months ago #11 by fisharebest
Replied by fisharebest on topic Historical Facts?
> I've tried add own version of histo facts like british monarchy placing them on /app/Module but it's not even visible in modules.

That's correct.

Core modules live in /app/Module
Third-party modules live in /modules_v4

>i guess there must be some verification mechanism of modules if they are custom or stock?

Correct.

There is documentation on how to create a custom module here:

github.com/fisharebest/webtrees/tree/2.0.1/modules_v4

Copy the "minimal example". Add the interface/trait for historic facts. Add your function that lists the facts.

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

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

  • Bogie
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago #12 by Bogie
Replied by Bogie on topic Historical Facts?

fisharebest wrote: If anybody wants to contribute historic events for their own country, you simply need a list in this format:

github.com/fisharebest/webtrees/blob/2.0...onarchs.php#L59-L106


Does that mean that the NOTE of the former version has gone?

In my facts I made extensive use of those as below.

Code:
$histo[] = "1 EVEN\n2 TYPE terrorist attacks in the USA\n2 DATE 11 SEP 2001\n2 NOTE The September 11 attacks (also referred to as 9/11) were a series of four coordinated terrorist attacks launched by the Islamic terrorist group al-Qaeda upon the United States in New York City and the Washington, D.C. metropolitan area on Tuesday, September 11, 2001.";

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen

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

More
4 years 2 months ago - 4 years 2 months ago #13 by fisharebest
Replied by fisharebest on topic Historical Facts?
> Does that mean that the NOTE of the former version has gone?

No. It just means that I didn't use any notes.

It just needs to be a valid GEDCOM fact/event.

--edit--

According to the specs, you can use the following attributes on your events:
TYPE
DATE
PLAC
ADDR
AGNC
RELI
CAUS
NOTE

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Last edit: 4 years 2 months ago by fisharebest.

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

  • Bogie
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago #14 by Bogie
Replied by Bogie on topic Historical Facts?
Thank you, I'll get back to it.

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen

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

  • Bogie
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago #15 by Bogie
Replied by Bogie on topic Historical Facts?

fisharebest wrote: Historical facts are now modules.

There are some built-in modules. e.g US Presidents


Which module respectively file contains the US Presidents?

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen

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

More
4 years 2 months ago #16 by fisharebest
Replied by fisharebest on topic Historical Facts?
Control panel -> Modules -> Individual pages -> Historic events -> United States presidents

github.com/fisharebest/webtrees/blob/mas...ule/USPresidents.php

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

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

  • Bogie
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago #17 by Bogie
Replied by Bogie on topic Historical Facts?
Thank you.

Does it mean there is no language support as in 1.7 anymore and different languages would mean different historical facts modules?

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen

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

More
4 years 2 months ago #18 by fisharebest
Replied by fisharebest on topic Historical Facts?
> Does it mean there is no language support as in 1.7 anymore

There was no language support for historic events in 1.7



I didn't add language support, because I thought the events would only be of interest locally.

i.e. events in the Czech republic will only be of interest to people who live in that country, and who speak Czech.

It would be a simple change to allow the modules to provide events in different languages. Do you think this is needed?

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

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

  • Bogie
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
4 years 2 months ago #19 by Bogie
Replied by Bogie on topic Historical Facts?

fisharebest wrote: There was no language support for historic events in 1.7


In 1.7 I had 2 files - histo.de.php and histo.en_US.php. I had all events in both languages and it worked. May be it's been too long for you ;-) ?


fisharebest wrote: It would be a simple change to allow the modules to provide events in different languages. Do you think this is needed?


I would say so.

Especially in Europe there were many historic events which were not limited to one language or region or country, i.e. Thirty Years' War or First and Second World War. On the other hand there might be some which were limited.

And what is with ancestors who came from Europe and emigrated to the US. They had events in France or Germany before they settled in the US later on.

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen

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

More
4 years 2 months ago #20 by rola
Replied by rola on topic Historical Facts?
I think a language support for historical events is a veery good idea.
For example a file with historical evants for Austrian-Hungarian empire is interesting for at least 7 or more countries.
And I have users who cannot speak either Slovak or Hungarian and have ancestors from Slovakia.

Ladislav

Ladislav

webtrees 2.0.24 + ⚶ Vesta modules (from cissee.de/ )
testing webtres 2.1.5 + ⚶ Vesta modules
on PHP Version 7.4.28

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

Powered by Kunena Forum
}