WebsiteBaker Community Forum

General Community => WebsiteBaker Website Showcase => Topic started by: albatros on March 04, 2007, 11:05:02 PM

Title: First time baker - first Design
Post by: albatros on March 04, 2007, 11:05:02 PM
Hello everybody,

a friend cares for honorary the website of a yacht club in northern Germany. He did it with Netobjects Fusion, but now he uses WB.  :-D
I installed the CMS for him including the modules and i also made a design for him, which is based on Landzilla, but it contains many changes. The Website still is in the development. My friend needs some help sometimes, but i think he likes WB and my design too.

And how do you like the Design?

http://www.byc-online.net/ (http://www.byc-online.net/)

I got a lot of help in this forum, especially by ruebenwurzel and kweitzel  an I like to say "Thank you!!!"
I love WB!

Best regards!

Uwe
Title: Re: First time baker - first Design
Post by: ruebenwurzel on March 05, 2007, 05:05:21 AM
Hello,

looks good  :-D

Matthias
Title: Re: First time baker - first Design
Post by: kweitzel on March 05, 2007, 08:21:55 AM
It realy is nice and captures the topic yachting. Ach ... and thanks for the credits ;-)

cheers

Klaus
Title: Re: First time baker - first Design
Post by: ruebenwurzel on March 05, 2007, 12:05:12 PM
Hello,

looked a little bit at your page and tested the search funktion. As you are using UTF8 as charset but in some textareas HTML-Entities you have mixed special chars in your database. This works on the frontend view but using the search function gives you wrong results. On SVN and the german subforum we have a patch for this wich gives results independent from the charset. Read here:

http://forum.WebsiteBaker.org/index.php/topic,5595.msg35616.html#msg35616 (http://forum.WebsiteBaker.org/index.php/topic,5595.msg35616.html#msg35616)

This fix also adds a search highlighting function wich gives you a search highlighting if you add the following class to your screen.css

Code: [Select]
.highlight {
background-color: grey;
}

Matthias
Title: Re: First time baker - first Design
Post by: albatros on March 05, 2007, 12:32:48 PM
Hello Matthias and hello Klaus,

thanks for your friendly replies.

And Matthias, thank you again for your help and for the link. I already read this before, but i didn´t use the patch. I wanted two wait for the next release. But now i will give it a try.

Quote
As you are using UTF8 as charset but in some textareas HTML-Entities you have mixed special chars in your database.

Could this also be a problem of copy and paste? Uli sometimes used this function without putting text in notepad in between.

Best regards from Willingen

Uwe
Title: Re: First time baker - first Design
Post by: ruebenwurzel on March 05, 2007, 12:41:44 PM
Hello,

Quote
Could this also be a problem of copy and paste? Uli sometimes used this function without putting text in notepad in between.

No, no problem of copy and paste, because if you use f.e. FCKEditor it converts the special chars as soon as you save the page. The different Editors works totally different. TinyMCE converts all, FCKEditor a part, XINHA also a part but other then FCKEditor. We are working on a better solution.

Matthias
Title: Re: First time baker - first Design
Post by: albatros on March 05, 2007, 02:42:27 PM
Hi Matthias,

FCK is indeed the editor which i installed for Uli´s site. An i know about the problems, because i am here nearly every day and learned a lot. About WB, but not only about WB.

Regards

Uwe
Title: Re: First time baker - first Design
Post by: albatros on March 09, 2007, 05:26:41 PM
Quote
As you are using UTF8 as charset but in some textareas HTML-Entities you have mixed special chars in your database.

Hello Matthias,

i think, i did not really understand this. So i used the html-validator and got this:
Quote
The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.

So, is this my fault (in the template)? I didn`t find (iso-8859-1) in the header of the page code. So, where did Validator get it? And what do you think abut a utf-8-definition there? Maybe, whith different definitions i would get trouble in the future (when there is a lot of content on the website)!? Did i make the problem myself by these changes for googlemap in the template: http://forum.WebsiteBaker.org/index.php/topic,4186.msg32470.html#msg32470 (http://forum.WebsiteBaker.org/index.php/topic,4186.msg32470.html#msg32470)

 :?

Thank´s a lot!
Title: Re: First time baker - first Design
Post by: ruebenwurzel on March 09, 2007, 06:00:00 PM
Hello,

the source code of your page gives the following;

Code: [Select]
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
if you have in the index.php of your template the following line:

Code: [Select]
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined(&#39;DEFAULT_CHARSET&#39;)) { echo DEFAULT_CHARSET; } else { echo &#39;utf-8&#39;; }?>" />
the template uses the charset wich you have defined in the options - show advanced settings of WB.

About special chars and charset settings maybe this is also interesting for you:

http://forum.WebsiteBaker.org/index.php/topic,5374.0.html (http://forum.WebsiteBaker.org/index.php/topic,5374.0.html)

and last but not least depending on the WYSIWYG Editor your special chars from the textareas are different stored (some in UTF8, some as Entities) in your database.

So why a told you this?
Optimum of a website would be if it is all in UTF8 or all not in UTF8 (for western europe special chars ISO-8859-1 should be the standard) but at the moment we have it all mixed up. And this could cause problems with validiation, the search or the frontend or backend display. So this is not a problem you made yourself but knowing abaout the possible issues with charsets the website developpers could try to get their pages as best as possible to UTF8 or in your case ISO-8859-1.

How to get this:
1. Look at the advanced settings and set charset to ISO-8859-1
2. Look at your template if this uses also this charset.
3. Use FCKEditor (or TinyMce) as WYSIWYG Editor.
4. Use the fixed convert.php from the link above
After this four steps the most of your page (except news entries, guestbook entries and a few other modules) uses ISO-8859-1 and HTMLentities.

Hope this explains a little bit

Matthias
Title: Re: First time baker - first Design
Post by: albatros on March 09, 2007, 06:51:08 PM
Quote

Hope this explains a little bit

Matthias

Yes, it does!  :-D
Thank you very much for your detailed explanations and the fast answer!

Regards

Uwe