Monthly Archives: May 2011

Create your website multilingual – Second way

Yesterday I posted you an easy way to make your website multilingual. There are several ways to do this. Today I wanted to post youa second way to create a multilingual website. The method from yesterday was a version to use, if you want to translate your whole website and to have the possibility to insert also different looks.

If you want to translate only text parts, you can use translation property files. These are read to the session and inserted from the session to your website. Continue reading “Create your website multilingual – Second way” »

Include your family tree in your webpage

Yesterday I’ve posted for all interested genealogists and webmaster, how they can create a database out of their gedcom file. But how you can display this information on your website?

In this post I want to explain, how I do this and share you my PHP code for free to use it on your website. I only please you for let my link in the code, that I have also something out from it. Continue reading “Include your family tree in your webpage” »

Google Chrome: Problems with inaccurate “enctype”-data in HTML forms

Following Problem was happened to me:

I had a HTML form to send text data to the webserver. Because it was only text data, I used the enctype “text”.

<form name="formname" enctype="text" method="post" action="saveData.php">

This works in every browser like IE, Firefox and Safari. But I never tested it in the Google Chrome browser.

The form had some mandatory fields. If not all of these fields are filled, the not filled fields are colored red and the hint is shown, that all mandatory fields must be filled. Then a user called me and told me, that he is not able to register. He filled all fields and pressed the register button. Then the form was shown again, all fields were empty and all mandatory fields were colored red. Continue reading “Google Chrome: Problems with inaccurate “enctype”-data in HTML forms” »

Create a database from your GEDCOM file

You are interested in creating your own webpage to publish your family tree to the world? Then you need to insert your data in a database. The problem: most programms are creating a gedcom file as global file type or other files formats specially for the software you are using but there is no software to create a database. Nearly all genealogical researchers uses then one of the well known platforms to publish there genealogical data to the world wide web. But what to do, if you do not want to upload your data to one foreign platform? Then you have to start again from the beginning to type your data into a database. Continue reading “Create a database from your GEDCOM file” »

Create thumbnail from image with PHP

Everybody who has a webpage where it is possible to upload images (for example a member picture for member profile) knows this problem: Digital cameras in these days creates pictures with high resolution but also with a big file size. Most pages forbid to upload pictures like this and restrict the size of the picture files.

You can create a good workaround for that. One version is to store the original file and create an additional thumbnail, the other way is, to store only the thumbnail, if you have less space on your webserver. Continue reading “Create thumbnail from image with PHP” »

PDF creation by PHP

I tried a lot to create PDF files by using PHP frameworks. For Java I’m using iText, but there is no interface to use iText by a PHP server. So I googled a lot and there are several frameworks to create these files. I tried them all an my opinion is, that domPDF is the best one, becase it is the easiest of all to use.

To create a PDF by domPDF, I only have to create a normal HTML page. This page I have to give to the renderer of domPDF and this renderer creates a PDF file out of this HTML code which is a one to one copy of the HTML page. Continue reading “PDF creation by PHP” »