Question How to mark individuals on group photo ?
- UksusoFF
- Offline
- Junior Member
This trick must hide map on media tab of individuals.Andreas wrote: But the notes in the media entry are still shown.
I forget about image page.
For this page you can try:
Please Log in or Create an account to join the conversation.
- Andreas
- Offline
- Premium Member
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.
- Andreas
- Offline
- Premium Member
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
Please Log in or Create an account to join the conversation.
- markus
- Offline
- Junior Member
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
Please Log in or Create an account to join the conversation.
- Andreas
- Offline
- Premium Member
Thanks
Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18
Please Log in or Create an account to join the conversation.
- Andreas
- Offline
- Premium Member
UksusoFF wrote:
This trick must hide map on media tab of individuals.Andreas wrote: But the notes in the media entry are still shown.
I forget about image page.
For this page you can try:Code:$('.facts_table .optionbox:contains("<map")').prev('.descriptionbox').parent('tr').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
Please Log in or Create an account to join the conversation.
- UksusoFF
- Offline
- Junior Member
Please give me both screenshot.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 Log in or Create an account to join the conversation.
- Andreas
- Offline
- Premium Member
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.
- UksusoFF
- Offline
- Junior Member
Ouch, that's really ugly solution.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
Please wait new version.
Please Log in or Create an account to join the conversation.
- UksusoFF
- Offline
- Junior Member
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.
- Andreas
- Offline
- Premium Member
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
Please Log in or Create an account to join the conversation.
- UksusoFF
- Offline
- Junior Member
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.
- Andreas
- Offline
- Premium Member
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
Please Log in or Create an account to join the conversation.
- UksusoFF
- Offline
- Junior Member
I think that's poly is trouble. Tested only rect...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.
UPD: Here you have wrong syntax:
Please Log in or Create an account to join the conversation.
- Andreas
- Offline
- Premium Member
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.
- UksusoFF
- Offline
- Junior Member
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.
- Andreas
- Offline
- Premium Member
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.
- Andreas
- Offline
- Premium Member
I changed the code by replacing the ending \> by a simple >
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.
- Andreas
- Offline
- Premium Member
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.
- UksusoFF
- Offline
- Junior Member
Ok, now map it's ok. I see console error. But can't reproduce in my webtrees.Andreas wrote: But the media doesn't show a map.
tree.iamdrunk.ru/mediaviewer.php?mid=M59&ged=test.test
Do you have enabled any custom scripts provided above? Try disable custom js module?
Please Log in or Create an account to join the conversation.