Web based family history software

Question How to edit the privacy policy and the footer

  • efhache
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 months ago #1 by efhache
Hi, I've the version 2.0.10 with the Carmen just light theme.

I'd like to change twoo things :
  • the footer
  • the content of the privacy policy

How can I do that? I don't find an edit options in the configuration pannel and/or a config file with this informations.

Can you explain me where can I update it ?

With some advance : Happy New Year all

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

More
3 years 3 months ago - 3 years 1 week ago #2 by mp
You can use the custom module example-footer from the modules_v4 folder to create your own imprint and privacy policy. The default imprint module should then be disabled in the administration.

I have solved this on my site like this.

Martin - ffp.bauschaffen.de
Last edit: 3 years 1 week ago by mp.

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

  • efhache
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #3 by efhache
Replied by efhache on topic How to edit the privacy policy and the footer
Thanks, I'll check it and see how I can do what I want. :-)

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

More
3 years 2 months ago #4 by jprause
Replied by jprause on topic How to edit the privacy policy and the footer
Inspired by @mp above I solved it like this , see my test site .

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
3 years 1 week ago - 3 years 1 week ago #5 by MikeT
Thanks Josef - that's very helpful!

I wanted to edit the privacy policy on my site too. I don't like the way it publishes my e-mail address for the world to see, and wanted to replace the e-mail address with a link to the contact form. I've achieved that by modifying your custom module that you link to on GitHub.

These are the changes I made to the module.php file:
I added this line:
Code:
use Fisharebest\webtrees\User;
I added this function:
Code:
/** * Create a contact link for a user. * * @param User $user * * @return string */ public function contactLink(User $user): string { if ($user instanceof User) { $request = app(ServerRequestInterface::class); return $this->user_service->contactLink($user, $request); } }
In function getPageAction I added these lines:
Code:
$administrators = $this->user_service->administrators(); $contactlinks = array(); foreach ($administrators as $administrator) { $user_id = $administrator->id(); $contactlinks[$user_id] = $this->contactLink($administrator); }
and under
Code:
return
I replaced
Code:
$administrators = $this->user_service->administrators();
with
Code:
'administrators' => $administrators,
and added this line:
Code:
'contactlinks' => $contactlinks,

This is the change I made to the page.phtml file:
I replaced these lines:
Code:
<?= e($administrator->realName()) ?> — <a href="mailto:<?= e($administrator->email()) ?>"><?= e($administrator->email()) ?></a>
with this one:
Code:
<?php echo($contactlinks[$administrator->id()]) ?>

You can see the result of these changes on my site here.

Thanks for your inspiration!

Mike
Last edit: 3 years 1 week ago by MikeT.

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

More
2 years 11 months ago #6 by jprause
Replied by jprause on topic How to edit the privacy policy and the footer

MikeT wrote: ...wanted to replace the e-mail address with a link to the contact form. I've achieved that by modifying your custom module that you link to on GitHub.

This is a very good idea. I will modify my custom module to your way. 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

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

More
2 years 4 months ago #7 by dinhtuanminh
Replied by dinhtuanminh on topic How to edit the privacy policy and the footer
Hi Bro,
please help me to creat a part of Welcome as on your site : www.taylor-thomas.org.uk/familytree/tree...-Thomas%20family.ged

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 years 4 months ago - 2 years 4 months ago #8 by bertkoor
Replied by bertkoor on topic How to edit the privacy policy and the footer

Hi Bro,
please help me to creat a part of Welcome as on your site : www.taylor-thomas.org.uk/familytree/tree...-Thomas%20family.ged

That looks like a standard HTML block added to the Home page.

menu My Pages - Customize this page.
Drag a HTML block to the top and save.
Once returned to the page view, click the &#x1f527; (wrench) icon.
There you can edit the content.

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 2 years 4 months ago by bertkoor.

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

More
2 years 4 months ago #9 by dinhtuanminh
Replied by dinhtuanminh on topic How to edit the privacy policy and the footer
Yess, thanks bro so much

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

More
2 years 4 months ago - 2 years 4 months ago #10 by dinhtuanminh
Replied by dinhtuanminh on topic How to edit the privacy policy and the footer
Can you help me that i would like to extend (stretch to fullscreen) the frames of content on website likes this
Attachments:
Last edit: 2 years 4 months ago by dinhtuanminh.

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 years 4 months ago - 2 years 4 months ago #11 by bertkoor
Replied by bertkoor on topic How to edit the privacy policy and the footer

Can you help me that i would like to extend (stretch to fullscreen) the frames of content on website likes this

Your questions belong in the Customisation subforum.

Anyway, the Vesta Classic Look & Feel module might do what you want:
github.com/vesta-webtrees-2-custom-modules/vesta_classic_laf

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 2 years 4 months ago by bertkoor.

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

More
2 years 4 months ago - 2 years 4 months ago #12 by MikeT
Yes, bertkoor is correct - the Welcome block on my site www.taylor-thomas.org.uk/familytree/ is a standard HTML block.

I made my site use the full width of the screen by adding a bit of CSS like this:
  • Go to your Control panel
  • Click on All modules
  • Scroll down and enable CSS and JS (if not already enabled)
  • Scroll down and click on Save
  • Scroll up to the top and click on Control panel
  • Scroll down to the Modules section and click on CSS and JS
  • Add this code to the end of the <head> element:
Code:
<style> .container, .container-lg, .container-md, .container-sm, .container-xl, .container-fluid { max-width: 100% } </style>
Last edit: 2 years 4 months ago by MikeT.

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

More
2 years 4 months ago #13 by dinhtuanminh
Replied by dinhtuanminh on topic How to edit the privacy policy and the footer
Hi bro, can you guide or show me the way fill all of information TO SETUP in the part of SENDING EMAIL. I tried many ways but not available. ( as the site www.taylor-thomas.org.uk/familytree/ )
Many Thanks

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

More
2 years 4 months ago #14 by dinhtuanminh
Replied by dinhtuanminh on topic How to edit the privacy policy and the footer
ok, problem solved

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

Powered by Kunena Forum
}