Web based family history software

Question Inivite user - module

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #1 by webtreesFUN
Inivite user - module was created by webtreesFUN
What You think guys about this type solution?
Code:
<?php use Fisharebest\webtrees\Filter; use Fisharebest\webtrees\Filter\Email; class InviteUsersPlugin extends Module {     public function __construct() {         $this->name = 'InviteUsers';         $this->version = '1.0';         $this->title = 'Invite Users';         $this->checkInstalled();     }     public function init() {         $this->addMenuItem('action=invite_users', 'Invite Users', 'fa-envelope');     }     public function invite_users() {         if (!$this->session->get('USER')) {             $this->redirectTo('login');         }         // Get the list of available genealogical trees         $trees = $this->gedcom->getTrees();         if ($this->request->isPost()) {             $email = $this->request->getPost('email');             $tree = $this->request->getPost('tree');             if (Email::isValid($email)) {                 $this->send_invitation_email($email, $tree);                 $this->addMessage('success', 'Invitation has been sent to ' . $email);             } else {                 $this->addMessage('error', 'Invalid email address');             }         }         return $this->display('invite_users', ['trees' => $trees]);     }     private function send_invitation_email($email, $tree) {         $subject = 'Invitation to register in genealogical tree';         $message = 'Hi!<br><br>';         $message .= 'You have been invited to register in the genealogical tree "' . $tree . '". Click the link below to create an account:<br>';         $message .= '<a href="' . $this->url('register', ['email' => $email]) . '">Register</a><br><br>';         $message .= 'Best regards,<br>Website Team';         $headers = "From: your-email@example.com\r\n";         $headers .= "Content-type: text/html\r\n";         mail($email, $subject, $message, $headers);     } }

Am looking option to set dedicated tree access to only accept user without scope settings in panel after registration.
 

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

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #2 by webtreesFUN
Replied by webtreesFUN on topic Inivite user - module
Also thinking about invite user as part of selected object in tree to connect user with this object to manage related tree down, for give option who can invite more.
Code:
<?php use Fisharebest\webtrees\Filter; use Fisharebest\webtrees\Filter\Email; class InviteUsersPlugin extends Module {     public function __construct() {         $this->name = 'InviteUsers';         $this->version = '1.0';         $this->title = 'Invite Users';         $this->checkInstalled();     }     public function init() {         $this->addMenuItem('action=invite_users', 'Invite Users', 'fa-envelope');     }     public function invite_users() {         if (!$this->session->get('USER')) {             $this->redirectTo('login');         }         // Get the list of available genealogical trees         $trees = $this->gedcom->getTrees();         if ($this->request->isPost()) {             $email = $this->request->getPost('email');             $tree = $this->request->getPost('tree');             $object_id = $this->request->getPost('object_id');             if (Email::isValid($email)) {                 $this->send_invitation_email($email, $tree, $object_id);                 $this->addMessage('success', 'Invitation has been sent to ' . $email);             } else {                 $this->addMessage('error', 'Invalid email address');             }         }         return $this->display('invite_users', ['trees' => $trees]);     }     private function send_invitation_email($email, $tree, $object_id) {         // Here you would need to get information about the object based on $object_id         $object_info = $this->getObjectInfo($object_id);         $subject = 'Invitation to continue genealogical research';         $message = 'Hi!<br><br>';         $message .= 'You have been invited to continue genealogical research in the ' . $tree . ' tree.<br>';         $message .= 'Object details: ' . $object_info . '<br>';         $message .= 'Click the link below to create an account and continue exploring:<br>';         $message .= '<a href="' . $this->url('register', ['email' => $email]) . '">Register</a><br><br>';         $message .= 'Best regards,<br>Website Team';         $headers = "From: your-email@example.com\r\n";         $headers .= "Content-type: text/html\r\n";         mail($email, $subject, $message, $headers);     }     // Function to get information about the object     private function getObjectInfo($object_id) {         // Here you would need to implement logic to retrieve information about the object based on its ID         // You can query your database or use webtrees' API to get the necessary information         // Return the information as a string to be included in the invitation email         return "Object ID: " . $object_id; // Example     } }

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 1 week ago #3 by bertkoor
Replied by bertkoor on topic Inivite user - module
I don't know how useful this is. I just send an email with a link to the page where they can request an account thenselves.

stamboom.BertKoor.nl runs on webtrees v2.1.20

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

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago - 10 months 1 week ago #4 by webtreesFUN
Replied by webtreesFUN on topic Inivite user - module
But take attention that in system you can have more family trees, then you must manage this after they registered and checking e-mail with data person is correct. Doing invitation by system you can assign user to the family tree and right branches what is adequate for user. You can set with invite the role for user in family tree.

It's more like concept here to deploy more advanced solution.
Eg. in e-mail can be links to the FAQ, with strong indication for basic, and Manual
www.webtrees.net/index.php/forum/2-open-...r-without-suggestion
Last edit: 10 months 1 week ago by webtreesFUN.

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

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago - 10 months 1 week ago #5 by webtreesFUN
Replied by webtreesFUN on topic Inivite user - module
When admin of tree confirming new registered user.. is there message for user that he get access?
And if admin change access to other trees as add, change the msg is sent or not?
Poor that in log diary no info about changes and sent msg.
Last edit: 10 months 1 week ago by webtreesFUN.

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 1 week ago #6 by bertkoor
Replied by bertkoor on topic Inivite user - module

When admin of tree confirming new registered user.. is there message for user that he get access?
I think yes, but better test this.
First test whether you have config for sending emails correct...

And if admin change access to other trees as add, change the msg is sent or not?
No, I don't think so.

stamboom.BertKoor.nl runs on webtrees v2.1.20

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

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #7 by webtreesFUN
Replied by webtreesFUN on topic Inivite user - module
1. And if I sent msg about changes internal, user who sent message not seeing own sent messages only received?

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

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #8 by webtreesFUN
Replied by webtreesFUN on topic Inivite user - module

I don't know how useful this is. I just send an email with a link to the page where they can request an account thenselves.
 
What if far user from tree show the system for other family and he registered and you don't know the person.. coz far family?
You know what I mind, the sending invite by user from that is on tree resgistered can confirm that he know this person and know what doing not like me.. (everyone can write me is son of son from sons of sons : ) to see my data.. )
By this is strong security issue.. as I'm watching how my users doing this. Some neighbors saw how the fighting with system, then registered to see.

Should exist a list of users that are in system and not related with individuals to verify, and in future give time to set this var with msg as wholesale reminder for other do this and where.

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 1 week ago - 10 months 1 week ago #9 by bertkoor
Replied by bertkoor on topic Inivite user - module
I think you are over-complicating things.

When I have no idea who requests access, then there are two options:

1. Request them (by email) to clarify who they are and why they want/need access
2. Ignore. The form states to give a reason, and access is given to family only. If they don't give a reason or provide the slightest evidence they are family, they should not be surprised I deny them access.

I have done both.
Most of my requests for extra info (90%) never get answered.
Most users (90%) which I did grant access have a "last logged in" date less than four weeks after their "created" date. 

stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 10 months 1 week ago by bertkoor.

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

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #10 by webtreesFUN
Replied by webtreesFUN on topic Inivite user - module
For 1st it is not solution, coz remote.. other part of world and continent.. no time to confirmation.
For 2nd.. ignore maybe is not good solution coz role of system is grabbing data in to, soo it's "conversion problem".. and what after time.. "sory we did not know that you are from family".

I think is not complication, but good solution to invite by other as confirmation process in future, related person is responsible for contact and is a small guarantor, if not invited the other process to verify family part.

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

  • norwegian_sardines
  • Offline
  • Platinum Member
  • Platinum Member
More
10 months 1 week ago #11 by norwegian_sardines
Replied by norwegian_sardines on topic Inivite user - module

For 1st it is not solution, coz remote.. other part of world and continent.. no time to confirmation.
For 2nd.. ignore maybe is not good solution coz role of system is grabbing data in to, soo it's "conversion problem".. and what after time.. "sory we did not know that you are from family".

I think is not complication, but good solution to invite by other as confirmation process in future, related person is responsible for contact and is a small guarantor, if not invited the other process to verify family part.


#1. What do you mean “no time to confirm” Just because they are remote and in another part of the world, I do not see that as a reason to not send them an email. NOTHING is that time sensitive that a few hours or even a day of waiting is bad!

#2. If you don’t know them, don’t want to connect with them via email, then you are not very interested in them anyway so why would you want them in your genealogy? The roll of the system is to connect you to your genealogy, make new family relationship and become better connected to your family, NOT just to collect data on people. Genealogy as a hobby is for learning about where YOU come from and connecting with your past and other branches of your family!

Ken

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

More
10 months 1 week ago #12 by hermann
Replied by hermann on topic Inivite user - module

For 1st it is not solution, coz remote.. other part of world and continent.. no time to confirmation.


I don't understand what you are saying. Do you know that email is available in more than one continent? I don't know how a user registration should happen if a new user doesn't have access to email. This is not possible when using webtrees.

Why is there no time for confirmation? In my opinion, genealogical research is working in the time scale of years or months. confirmation is working in the time scale of minutes or hours. This should fit. Or are you working on a genealogical process that is working in real time, so that confirmation should happen in seconds or milliseconds? Sound very interesting. Please tell me more!

Hermann
Designer of the custom module "Extended Family"

webtrees 2.1.21 (all custom modules installed, PHP 8.3.12, MariaDB 10.6) @ ahnen.hartenthaler.eu

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 1 week ago #13 by bertkoor
Replied by bertkoor on topic Inivite user - module
I think we are back to square one, @webtreesFUN.

Please state (in clear language) what exactly is the problem you are trying to solve?

stamboom.BertKoor.nl runs on webtrees v2.1.20

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

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #14 by webtreesFUN
Replied by webtreesFUN on topic Inivite user - module
1. Need time clarify the family connections.. right correspondence, etc. Eg. when I never meet this person, never seen, etc. but it's some individual related abroad. Then how confirm person.. if I don't know who invited him. But for some individual from tree this important person to grow with tree.

Ok.. you all can sent meils manualy, I'm looking solution to optimize process around with automation.

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

  • norwegian_sardines
  • Offline
  • Platinum Member
  • Platinum Member
More
10 months 1 week ago #15 by norwegian_sardines
Replied by norwegian_sardines on topic Inivite user - module
If someone asks permission to access your system that you did not specifically ask to connect, you should have a ready made email Questionnaire to send them that asks vital questions about their connection to your database.  This can include a question about “ how did you learn about this website?”

You can kindly say to them that these are precautions you use to protect information already on the database from people not associated with your family!

You, as the admin and owner of the database, need to control the data and access.  Controlling the data can be achieved by not allowing automatic acceptance of data entry without review!  Controlling access means setting users to view only until they have been trained, not allowed to change data without review.  New subscribers can have view access until they provide enough information to link them to your tree.

I think you said you has multiple trees!  WHY?  Most admins only have one or two

Ken

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 1 week ago - 10 months 1 week ago #16 by bertkoor
Replied by bertkoor on topic Inivite user - module
How to confirm someone is who (s)he says it is?
Trust me: you will be able to solve that when the issue is real instead of only a figment of your imagination.

I have a couple of members that got to my site because they found it via Google. I am glad they did! We have the same great-great-grand-father. No invitation would have reached them, they are too far related.

Do I trust them? Now I do. How? I truely don't recall.
Do you smell imposters? Yes you will.
Do I give edit rights? Ofcourse not. I limit what they can see and do.
Trust needs to be earned.

stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 10 months 1 week ago by bertkoor.

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

Powered by Kunena Forum