Page 1 of 1

Special characters in Photo-Album [fixed]

Posted: Fri Feb 23, 2007 8:33 am
by osn
I have a problem with using special characters in photo-albums Album. The worst problem I've experienced is in Title.
Ex.    If I want a photo to have to title: Sylvaticus 'Nariño' it will work to type it into the title field but after I saved it it will be: Sylvaticus 'Nariño'.

Same problems when I use characters like ó like in 'Robaló'

The reason I want to use this kind of characters is that I'm running a website with lots of photos of frogs and diffrent morphs of them (only a few examples at the moment there). Most morphs have a name after the place where they are found and dartfrogs lives in Central- and South America meaning I want to use their real spannish names with these characters. Except from the spannish names I want to have all my site using english or possibly swedish characters.

If anyone knows how to solve this, please help me!

Example: http://dartfrog.tk/cms/index.php?page=histrionicus  (The Sylvaticus 'Nariño' is the white and red frog if you want to see the exact example)




I'm using: CMSMS 1.0.2 Maui, Album 8.0.2

Dennis

Re: Special characters in Photo-Album

Posted: Wed Feb 28, 2007 7:11 am
by osn
Please! Someone else must have experienced this problems, or?
Spannish chars in the album title like ñ and ó.

I have also noticed that if I write something like this:

  R. reticulata                <- this will cut everything after the . and look like:    R.
  O. histrionica "bullseye"  <- this will cut everything between the " " chars and look like:    O. histrionica


Anyone who is familiar with the Album module?

Re: Special characters in Photo-Album

Posted: Thu Mar 01, 2007 10:07 am
by osn
here is the next page in my new novel:

I was in the chat yesterday and some people there thought it might be something wrong with the greybox settings, but after doing some testing I can say that it isn't that way. The problem is the same no matter what template I use. I tried separate thumbnails, lightbox and some other standard templates and its the same in everyone. Seems like a problem in the Photo-album manager.

The problem is only showing in the Title row. Is there a setting some where what language or unicode to use for this line?

The comments lines is getting all chars right.

Here must be more people having the same kind of problem, mabie they just havn't tried to use this characters.

Re: Special characters in Photo-Album

Posted: Sat Mar 03, 2007 10:43 pm
by Elijah Lofgren
Hi Dennis,

I've sorry I didn't respond earlier, but I wasn't sure how long this would take to fix and I was kind of busy.

Thankfully, the fix was very easy. ;)

The problem was that I had some code that would convert picture names to htmlentities (in order to fix a Javascript popup bug before I found out about using Smarty modifiers clean up picture name). The other problem with the periods was that I had inserted code to remove the extension from picture names (mainly because I was lazy and didn't want to rename pictures).

I have removed both of those pieces of code so that both of your problems should be fixed.

See the changes I made to fix this here: http://viewsvn.cmsmadesimple.org/viewsv ... .Album.php

Attached to this post (removed the .txt extension) is a fixed version of class.Album.php for Album 0.8.2
Replace your current modules/Album/classes/module/class.Album.php file with it.

Have a great weekend,

Elijah



[gelöscht durch Administrator]

Re: Special characters in Photo-Album [fixed]

Posted: Mon Mar 05, 2007 8:58 am
by osn
Thank you Elijah! I've spent hour after hour to try to solve this during the past 3 weeks. I thought it might be something with my database setup or something but now it works perfect! I almost gave up!



Thank you again!

/Dennis