Bienvenue, Invité
Nom d'utilisateur : Mot de passe :


Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page :
  • 1
  • 2

SUJET : customizing 2.0.3

customizing 2.0.3 il y a 1 semaine 4 jours #1

  • pilgrim
  • Portrait de pilgrim
  • Hors Ligne
  • New
  • Messages : 51
I am in the process of setting up the newly installed webtrees 2.0.3 and have three questions:
Does adding "historical facts" using the "histo.xx.php" file in version 2.0 no longer work?
How can I change the positioning of the watermark in the images. I would like to have them centered. But the file "mediafirewall.php" does not exist anymore.
I would also like to enjoy the advantages of pretty URL and I have already found "cURL enable" in the displayed settings of the server information (administration). But where do I set the necessary parameters as described in webtrees.net/faq/urls/? I don't dare to try around in phpMyAdmin - I wouldn't know where either. But if I only add "rewrite_urls="1"" to "data/config.ini.php" (+ changes to the ".htaccess"), then webtrees will not be shown in the browser, only:
"Not Found
The requested URL /stammbaum/tree/Huber-Stammbaum/my-page was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.."
Which doesn't surprise me, because the subfolder /tree does not exist.
Thx in advance

P.S.: Is it correct that the access data for the web server in config.ini.php are displayed unencrypted? This makes me nervous, especially since my provider does not support FTP over TLS.
pedigree.med-huber.at/
Server: PHP-Version 7.2
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 4 jours #2

  • xmlf
  • Portrait de xmlf
  • Hors Ligne
  • Junior
  • Messages : 140
About Petty urls:
I think it has been made clear here.
webtrees.net/faq/urls/

Just follow the steps above.
The final step is to add pseudo static rules to your webserver(nginx/apache).

If you still don't understand, I believe you will understand after reading the following three topics.

www.webtrees.net/index.php/en/forum/help...o-enable-pretty-urls
www.webtrees.net/index.php/en/forum/help...-0/33775-pretty-urls
www.webtrees.net/index.php/en/forum/help...-media-in-subfolders
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
Dernière édition: il y a 1 semaine 4 jours par xmlf.
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 4 jours #3

  • HRN
  • Portrait de HRN
  • Hors Ligne
  • Senior
  • Messages : 337
Watermark you'll find in
vendor/leaue/glide/src/Manipulators/Watermark.php
and
resources/img/watermark.png

line 238 in Watermark.php defines the position
webtrees 2.0 at visitusinmaputo.com/webtree PHP 7.2.9
webtrees 2.0 dev on local WampServer PHP 7.3.1
(webtrees 1.7.16 at visitusinmaputo.com/webtreeX PHP 7.2.9 (Modules: vytux_cousins, vytux_pages, fancy_treeview, ancestral-fan-chart))
Dernière édition: il y a 1 semaine 4 jours par HRN.
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 4 jours #4

  • pilgrim
  • Portrait de pilgrim
  • Hors Ligne
  • New
  • Messages : 51
Thanks @ HRN, the reference to watermark.php helped.

@xmlf
I followed the instructions on webtrees.net/faq/urls, including the entries in the .htaccess, but it didn't lead to anything.
I noticed that the normal URL is displayed in the address bar like www.med-huber.at/stammbaum/index.php?rou...mbaum%2Ftree%2FHuber.
If I now enter rewrite_urls="1" into config.ini.php www.med-huber.at/stammbaum/tree/Huber is displayed and leads to the mentioned error message "404 Not Found". Which is not surprising, since /tree/Huber does not really exist.
Maybe I should mention that I run 4 family trees at this address, of which only 2 are publicly available and "Huber" is the default family tree. Maybe it has something to do with the selection of the family trees?
pedigree.med-huber.at/
Server: PHP-Version 7.2
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 3 jours #5

  • xmlf
  • Portrait de xmlf
  • Hors Ligne
  • Junior
  • Messages : 140
Should be your problem with pseudo-static rules.The rules in .htaccess you did not write right 。Your site is in a subfolder, not in the root directory.Please read the above topics carefully, or use search engines, you will learn more.
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 3 jours #6

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 12560
> I followed the instructions on webtrees.net/faq/urls, including the entries in the .htaccess

That .htaccess file is just an example.

I don't have apache on any of my servers, so I cannot test this. But I *think* that since you are using a sub-folder, you need some additional configuration.
RewriteEngine On
RewriteBase /stammbaum/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /stammbaum/index.php [L]
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 3 jours #7

  • pilgrim
  • Portrait de pilgrim
  • Hors Ligne
  • New
  • Messages : 51
Thanks, Greg,
I made the changes. But as soon as I activate the line rewrite_urls="1" in data/config.ini.php, this leads to "Not Found".
I have the faint suspicion that the files are not in the right place.
In my root directory /.. there is already the automatically generated file robots.txt
Then the subfolder /stammbaum with index.php and finally /stammbaum/data with .htaccess and config.ini.php (but there is also another index.php, only 66 bytes in size).
At my provider's website configuration I have set that both pedigree.med-huber.at and stammbaum.med-huber.at are redirected to www.med-huber.at/stammbaum. Can this provoke a conflict? I am already completely confused.
pedigree.med-huber.at/
Server: PHP-Version 7.2
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 3 jours #8

  • xmlf
  • Portrait de xmlf
  • Hors Ligne
  • Junior
  • Messages : 140
Try this one. 404 is because your rewrite rule is incorrect.

RewriteEngine On
RewriteBase /stammbaum/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L]

I think you'll understand more if you use a search engine and search the apache Rewrite subdirectory.
??
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
Dernière édition: il y a 1 semaine 3 jours par xmlf.
L'administrateur a désactivé l'accès en écriture pour le public.
Avez-vous besoin d'une solution d'hébergement web pour votre site webtrees ?
Si vous préférez un hébergeur spécialisé de webtrees, la page suivante en liste quelques-uns capables de vous offrir ce type de service :

customizing 2.0.3 il y a 1 semaine 2 jours #9

  • pilgrim
  • Portrait de pilgrim
  • Hors Ligne
  • New
  • Messages : 51
@ xmlf - Didn't work either
Well, I can't figure it out!
Of course I have tried to find out about Apache and Rewrite on the net, but, @xmlf , don't be angry with me, you want the program to be spread as widely as possible. But then the usability has to be improved. You cannot expect the average user to learn programming.
What I have found out:
The address www.med-huber.at/stammbaum/tree/huber leads to a 404 Not Found
Without redirecting the address is www.med-huber.at/stammbaum/index.php?rou...mbaum%2Ftree%2Fhuber and so it also appears as URL in the settings of the family tree in the administration of the tree.
I can understand this - it is the internal reference of the program that among the 4 available family trees the one with the name "huber" has to be selected.
But with the .htaccess line
RewriteCond %{REQUEST_FILENAME} !-d
it must fail. The interpretation of the program internal references as subdirectories must lead to an error message when comparing with "-d", because such, namely "/tree/huber" do not exist in "/stammbaum". And where this wrong address interpretation takes place, I could not find out neither in config.ini.php nor in .htaccess.
I know, you can't take these settings away from me, because they are specific to my address. But couldn't you automate these settings during installation in future versions; after all, the file robot.txt also will be generated automatically.

The files in my /stammbaum/data/ - subdirectory:

My .htaccess-file:
order allow,deny
deny from all
RewriteEngine On
RewriteBase /stammbaum/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L]

The additions to my config.ini.php:
base_url="www.med-huber.at/stammbaum"
rewrite_urls="1"

Thanks for your patient help anyway.
pedigree.med-huber.at/
Server: PHP-Version 7.2
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #10

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 12560
You have added the Rewrite instructions to the .htaccess file in /data.

This is wrong.

You should create a new .htaccess file containing just the Rewrite instructions in the webtrees root folder.

The first one is just concerned with protecting the contents of that folder.

Your new one handles the rewrites.

> But couldn't you automate these settings during installation in future versions

Sadly not. Not all servers use apache. Not all servers allow .htaccess files.
It is not possible for PHP scripts to detect the server environment, the URL, etc.

Also, you can include all sorts of other things in the .htaccess file. If we tried to
auto-generate it, we'd overwrite these settings.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #11

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 12560
PS - I have updated the instuctions at webtrees.net/faq/urls/ to
say to create .htaccess in the webtrees root folder.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #12

  • pilgrim
  • Portrait de pilgrim
  • Hors Ligne
  • New
  • Messages : 51
I read about .htaccess has to be in the root. But I only moved it to the root folder. That generates another failure message.
I will try it.
pedigree.med-huber.at/
Server: PHP-Version 7.2
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #13

  • pilgrim
  • Portrait de pilgrim
  • Hors Ligne
  • New
  • Messages : 51
IT WORKED!!!
Thx a lot and more time!
pedigree.med-huber.at/
Server: PHP-Version 7.2
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #14

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 12560
Yay! Glad you got it working.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #15

  • pilgrim
  • Portrait de pilgrim
  • Hors Ligne
  • New
  • Messages : 51
Dear Greg,
Evreything is working fine now. But as it is written in webtrees.net/upgrade/2.0/
robots.txt
In webtrees 1.7, you must create this file yourself, using robots-example.txt.
In webtrees 2.0, if you enable pretty URLs, it will be generated automatically.
sitemap.xml
The URL of the sitemap.xml file has changed.
If webtrees is installed in the root folder, and you enable pretty URLs, then search engines will find the new files automatically.
If webtrees is installed in a subfolder, or if you do not enable pretty URLs, then you will need to re-submit your sitemaps.
So where are these two files?
There is no /robots.txt and no /stammbaum/sitemap.xml
Do I have to trigger the automatic generation somehow?
And what does "If webtrees is installed in the root folder,..." mean? The installation instructions recommend to upload the unzipped webtrees folder (I just called it stammbaum at that time and didn't change it anymore). So webtrees/stammbaum is automatically a subfolder of root, isn't it?
pedigree.med-huber.at/
Server: PHP-Version 7.2
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #16

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 12560
> So where are these two files?

These are URLS - not files.

Visit the URL www.med-huber.at/stammbaum/sitemap.xml
You will see a sitemap.

There is no file on the disk. The sitemap is generated automatically.

The .htaccess file we created earlier says that if you request a URL, and
there is no file at that location, then pass the request to webtrees (index.php)
which will generate the page dynamically.

(So, if you *did* create a file stammbaum/sitemap.xml, then this file would be used,
and webtrees wouldn't get involved. Don't do this.)



robots.txt is slightly different. These files only work at the top-level of your site.
e.g. www.med-huber.at/robots.txt not www.med-huber.at/stammbaum/robots.txt

Now webtrees can only respond to requests in its own folder, so it cannot generate this URL for you.
You'll will need to create it manually.
webtrees can give you a template to use.
Visit www.med-huber.at/stammbaum/robots.txt
Create a file /robots.txt on your server containing the same text.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #17

  • pilgrim
  • Portrait de pilgrim
  • Hors Ligne
  • New
  • Messages : 51
Thx a lot one more time!
pedigree.med-huber.at/
Server: PHP-Version 7.2
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #18

  • jprause
  • Portrait de jprause
  • en ligne
  • Junior
  • Messages : 177
My site:
test.jprodina.cz/sitemap.xml shows
This XML Sitemap contains 0 URLs.
Josef

webhosting:-- webtrees 1.7.16, PHP version 7.3.13, MySQL 5.7.21, testing webtrees 2.0.4-dev
local desktop:-- webtrees 2.0.4-dev, PHP version 7.2.24, MySQL 5.7.25, Apache2 2.4.29, Linux Ubuntu 18.04 64bit
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #19

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 12560
You must choose which trees to include.

Control panel -> Modules -> Sitemap.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

customizing 2.0.3 il y a 1 semaine 2 jours #20

  • jprause
  • Portrait de jprause
  • en ligne
  • Junior
  • Messages : 177
I did so before I wrote my post.
Josef

webhosting:-- webtrees 1.7.16, PHP version 7.3.13, MySQL 5.7.21, testing webtrees 2.0.4-dev
local desktop:-- webtrees 2.0.4-dev, PHP version 7.2.24, MySQL 5.7.25, Apache2 2.4.29, Linux Ubuntu 18.04 64bit
L'administrateur a désactivé l'accès en écriture pour le public.
  • Page :
  • 1
  • 2
Propulsé par Kunena