Web based family history software

Question How to mark individuals on group photo ?

More
7 years 9 months ago #101 by UksusoFF
Replied by UksusoFF on topic How to mark individuals on group photo ?

Andreas wrote: But the notes in the media entry are still shown.

This trick must hide map on media tab of individuals.
I forget about image page.

For this page you can try:
Code:
$('.facts_table .optionbox:contains("<map")').prev('.descriptionbox').parent('tr').hide()

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

More
7 years 9 months ago #102 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
@UksusoFF
There must be another problem in my installation. I'll first solve this.

Guten Morgen Markus,

what's the hell may be different in our two installations ?
Hoster OVH
Nothing in the error-log

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18

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

More
7 years 9 months ago - 7 years 9 months ago #103 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
Hello Markus,

markus wrote: custom_js works without problems in my wt 1.7.9.


where did you get the module custom_js www.webtrees.net/index.php/en/add-ons/do...om-javascript-module ??
I'm using the colors template.

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18
Last edit: 7 years 9 months ago by Andreas.

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

More
7 years 9 months ago - 7 years 9 months ago #104 by markus
Replied by markus on topic How to mark individuals on group photo ?
Andreas, there are TWO module-downloads available!?!
The newer version from here works for me. It's tagged as wt >=1.7.0.

Best regards /Markus
webtrees 2.1.x + several addons
Last edit: 7 years 9 months ago by markus. Reason: Typos

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

More
7 years 9 months ago #105 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
Marvellous !!

Thanks

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18

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

More
7 years 9 months ago - 7 years 9 months ago #106 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?

UksusoFF wrote:

Andreas wrote: But the notes in the media entry are still shown.

This trick must hide map on media tab of individuals.
I forget about image page.

For this page you can try:
Code:
$('.facts_table .optionbox:contains("<map")').prev('.descriptionbox').parent('tr').hide();

Code:
$('.note-details:contains("<map")').prev('.fact_NOTE').hide();

I added both via custom_js

This works fine.

But one page is still showing the note. The list of medias in the media tab of a person.

One negative side effect: medias with <map>-tags aren't shown in family view. :-((

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18
Last edit: 7 years 9 months ago by Andreas.

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

More
7 years 9 months ago #107 by UksusoFF
Replied by UksusoFF on topic How to mark individuals on group photo ?

Andreas wrote: But one page is still showing the note. The list of medias in the media tab of a person.

One negative side effect: medias with <map>-tags aren't shown in family view. :-((

Please give me both screenshot.

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

More
7 years 9 months ago #108 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
Hello UksusoFF,

sorry for the late reply. I took screenshots with and without a <map>-tag in the medias note
The two additional lines are inserted via custo_js.

Here are the screenshots for the INDI page facts&events tag open.



here those the INDI page media tab open




the FAM page with and without




In the MEDIA page it's working fine with and without



Hope this helps to understand

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18

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

More
7 years 9 months ago #109 by UksusoFF
Replied by UksusoFF on topic How to mark individuals on group photo ?

Andreas wrote: Hello UksusoFF,

sorry for the late reply. I took screenshots with and without a <map>-tag in the medias note
The two additional lines are inserted via custo_js.

Hope this helps to understand

Ouch, that's really ugly solution.
Please wait new version.

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

More
7 years 9 months ago #110 by UksusoFF
Replied by UksusoFF on topic How to mark individuals on group photo ?
@Andreas

Please try new master version.
github.com/UksusoFF/photo_note_with_imag...p/archive/master.zip

It's implemented image selection in realtime and all data now storage in module settings.

I think that some bug still here so please backup existing image maps to some txt for example.

For update from 1.x version:
1. login as user which can edit media;
2. click by image with map;
3. click by 'save' button;
4. remove image map from image note.
Now you can use new features.

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

More
7 years 9 months ago - 7 years 9 months ago #111 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
@UksusoFF

I did according to your description

UksusoFF wrote: For update from 1.x version:
1. login as user which can edit media;
2. click by image with map;
3. click by 'save' button;
4. remove image map from image note.
Now you can use new features.


I clicked on an image, where a [save] button appeared. I saved and after this I removed the <map> from the note (by saving it to a backup txt-file) as asked in the warning pop-up.

But nothing. The photo doesn't show any map anymore.

Here a screenshot of the admin module


When clicking on the leftmost red marked name of the module nothing happens. It refers to wt.rauhut.eu/admin_modules.php#
Shouldn't it open a dialog?

here you should have a look to the media entry
but unfortenately this does not work anymore for visitors. Why? :-(

Even the INDI page doesn't show the media to visitors. That is not desired. :-(

----

There's still some work. I will try to make tests as you need.

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18
Attachments:
Last edit: 7 years 9 months ago by Andreas.

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

More
7 years 9 months ago #112 by UksusoFF
Replied by UksusoFF on topic How to mark individuals on group photo ?

Andreas wrote: I clicked on an image, where a [save] button appeared. I saved and after this I removed the <map> from the note (by saving it to a backup txt-file) as asked in the warning pop-up.

But nothing. The photo doesn't show any map anymore.


It's strange because warning dialog shown only in successful saved data.

Can you check wt_module_setting table in database have any rows with PNWIM_ prefix?

Andreas wrote: Here a screenshot of the admin module

When clicking on the leftmost red marked name of the module nothing happens. It refers to wt.rauhut.eu/admin_modules.php#
Shouldn't it open a dialog?


No, it's alright. I used default module with settings for save data. And this behaviour require any url. Maybe in next version there will be list of all images with image maps.

I little update module for fix anonymous access. Please try update also.

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

More
7 years 9 months ago - 7 years 9 months ago #113 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
In wt_module_setting table I found just one record entry

photo_note_with_image_map
PNWIM_M3837
[{"pid":"23033I","coords":["506","8","510","268","398","320","490","798","820","1474","998","1366","778","264","652","218","638","6"]}]

But the original <map> of media M3837 had two <area> entries. The first hadn't been considered.

<map name="map />
<area shape="poly" data-pid="23032I" coords="248,290,250,482,140,542,38,806,282,1128,412,1562,422,1628,796,1436,490,810,394,286" href="#" title="Willy Boldt" />
<area shape="poly" data-pid="23033I" coords="506,8,510,268,398,320,490,798,820,1474,998,1366,778,264,652,218,638,6" href="#" title="Luise Pramschüfer" />
</map>

I'll try the update.

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18
Last edit: 7 years 9 months ago by Andreas.

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

More
7 years 9 months ago - 7 years 9 months ago #114 by UksusoFF
Replied by UksusoFF on topic How to mark individuals on group photo ?

Andreas wrote: In wt_module_setting table I found just one record entry

photo_note_with_image_map
PNWIM_M3837
[{"pid":"23033I","coords":["506","8","510","268","398","320","490","798","820","1474","998","1366","778","264","652","218","638","6"]}]

But the original <map> of media M3837 had two <area> entries. The first hadn't been considered.

<map name="map />
<area shape="poly" data-pid="23032I" coords="248,290,250,482,140,542,38,806,282,1128,412,1562,422,1628,796,1436,490,810,394,286" href="#" title="Willy Boldt" />
<area shape="poly" data-pid="23033I" coords="506,8,510,268,398,320,490,798,820,1474,998,1366,778,264,652,218,638,6" href="#" title="Luise Pramschüfer" />
</map>

I'll try the update.

I think that's poly is trouble. Tested only rect...

UPD: Here you have wrong syntax:
Code:
<map name="map />
Last edit: 7 years 9 months ago by UksusoFF.

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

More
7 years 9 months ago #115 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
Update seems to work concerning access rights to media entry and INDI entry

But there is no image map or sensitiv areas on the photo. :-((

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18

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

More
7 years 9 months ago #116 by UksusoFF
Replied by UksusoFF on topic How to mark individuals on group photo ?

Andreas wrote: But there is no image map or sensitiv areas on the photo. :-((


Try add map to note, open image, click by (save) and remove note again.
I tested poly, it's also must save without trouble.
And please post image map here, maybe they also have wrong syntax.

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

More
7 years 9 months ago #117 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
here the map-code that I placed in a new note of the media entry
Code:
<map name="map" /> <area shape="poly" data-pid="23032I" coords="248,290,250,482,140,542,38,806,282,1128,412,1562,422,1628,796,1436,490,810,394,286" href="#" title="Willy Boldt" /> <area shape="poly" data-pid="23033I" coords="506,8,510,268,398,320,490,798,820,1474,998,1366,778,264,652,218,638,6" href="#" title="Luise Pramschüfer" /> </map>
This time I placed the missing double quotes.

Above the picture shows a greyed (save). On this I did a click. But nothing happened.

Do I have to delete the record in the database?

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18

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

More
7 years 9 months ago #118 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
I deleted the entry in the database --> nothing

I changed the code by replacing the ending \> by a simple >

Code:
<map name="map"> <area shape="poly" data-pid="23032I" coords="248,290,250,482,140,542,38,806,282,1128,412,1562,422,1628,796,1436,490,810,394,286" href="#" title="Willy Boldt"> <area shape="poly" data-pid="23033I" coords="506,8,510,268,398,320,490,798,820,1474,998,1366,778,264,652,218,638,6" href="#" title="Luise Pramschüfer"> </map>

After clicking on the image I got the image popup with the jpg and above the two PIDs followed by a greyed (save).
I clicked on and a popup opened, asking me to delete the <map>
So I did.

But the media is still without map.

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18

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

More
7 years 9 months ago #119 by Andreas
Replied by Andreas on topic How to mark individuals on group photo ?
Now the wt_module_setting table has one new entry for photo_note_with_image_map
Code:
PNWIM_M3837 [{"pid":"23032I","coords":["248","290","250","482","140","542","38","806","282","1128","412","1562","422","1628","796","1436","490","810","394","286"]}, {"pid":"23033I","coords":["506","8","510","268","398","320","490","798","820","1474","998","1366","778","264","652","218","638","6"]}]

But the media doesn't show a map.

Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18

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

More
7 years 9 months ago - 7 years 9 months ago #120 by UksusoFF
Replied by UksusoFF on topic How to mark individuals on group photo ?

Andreas wrote: But the media doesn't show a map.

Ok, now map it's ok. I see console error. But can't reproduce in my webtrees.

tree.iamdrunk.ru/mediaviewer.php?mid=M59&ged=test.test

Do you have enabled any custom scripts provided above? Try disable custom js module?
Last edit: 7 years 9 months ago by UksusoFF.

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

Powered by Kunena Forum