![]() |
|
Admin editing in frontend - markup will be changed - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Admin editing in frontend - markup will be changed (/thread-3816.html) |
Admin editing in frontend - markup will be changed - Lilly - 2008-09-25 Hi! Admin editing in frontend - markup will be changed - Lilly - 2008-09-25 Sorry, ` Admin editing in frontend - markup will be changed - acrylian - 2008-09-25 Thanks for reporting. I can reproduce it and I wonder why that escaped us or probably more exactly me since I am German, too. Probably I am a little english focussed with Zenphoto (or its because of our "neue Rechtschreibung" where ß is less often used..:-)). Generally, if you use UTF-8 on your theme files there is actually no need to turn "ß" into ' ß' . It should display fine directly. Anyway, we will take a look at it. Admin editing in frontend - markup will be changed - Lilly - 2008-09-25 Thank you very much for your quick reply, Acrylian! I have UTF-8 everywhere, in themes, in database fields, but I cannot use "ß" directly, "Hauptstraße" would turn into "Hauptstraf#376;e". And I could do this only in textboxes in admin backend but not in textareas (I guess this is what you missed) before I changed admin-functions.php. Funny is that there is no problem to type äöü or even directly from keyboard. Just what I would like to know from you is where I can find the code which is responsible for textboxes and textareas in frontend when logged in as admin and how to change the code. Because if I type "& e u r o ;" in any of the input fields it will be shown as € in frontend next time I edit it. May be like this: '.html_encode($UnknownVariable_WhereDoIFindIt, $striptags=false).'? Yours, Admin editing in frontend - markup will be changed - acrylian - 2008-09-25 The front end code is within several template functions that you will find within zp-core/template-functions.php. But that "editable if logged in" is tied in with some Ajax-Javascript and that may be picky beast. Our JS/encoding expert is not available currently (I think), but all I can say is we will try to solve this problem as soon a possible. Admin editing in frontend - markup will be changed - Lilly - 2008-09-25 Okay! It's not so urgent, I can wait until it's fixed. Main thing is that you know about it. Thanks for the information! Btw, I'm curious, do you paint acrylics, Acrylian? Admin editing in frontend - markup will be changed - acrylian - 2008-09-25 Alright. Sort of, I am also an illustrator and I do use acrylics. But the "Acrylian" actually refers to my logo figure. Admin editing in frontend - markup will be changed - sbillard - 2008-09-25 I think we have found both the problem and the fix. Seems the database was not considering ß a valid UTF-8 character and truncating the string at that character. The fix is to convert ß to ß before it is stored in the database. There are a few other characters with the same [unfortunate] properties. Mostly accented capital letters. These have been converted as well. There may be other characters as well with the property. If so, the user base will have to let us know which they are. Admin editing in frontend - markup will be changed - Lilly - 2008-09-26 Hi SBillard, if I type a text directly into a database field with phpmyadmin, I can type anything I like. For a test I put in the whole charset into a description field. It shows up completely on the website. I made now several tests to find the concerning chars, but I'm afraid they are too much. Other users who want to help can find a complete list of all named entities here: Here are them in short: They should appear like this: Kind regards, Admin editing in frontend - markup will be changed - sbillard - 2008-09-26 Of course typing the HTML representation of the character will work. It is just the direct UTF-8 code that seems to fail. In fact, what you have done is exactly the fix we have made. The problem characters are converted to their HTML representations before being saved to the database. Have you tried last night's build? Admin editing in frontend - markup will be changed - Lilly - 2008-09-26 Thanks for your efforts, you both! I will try the latest night's build on Monday. During the weekend I will be a "pastelian" and try to keep away from the computer. Have a nice weekend! Admin editing in frontend - markup will be changed - Lilly - 2008-09-29 Hi there, |