Problem with &

Professional Joomla restaurant template comes with a custom animated modules and advanced typography elements.
GK User
Sun Aug 05, 2012 1:51 pm
Hello everybody, in my website www.biancofarina.com i have a little trouble....
In the right module "menu" i have Vini & birre , where "&" is shown correctly, but if i click, on the big image that was opened if mouse over it appear as "Vini&Birre" , where the "&" is not shown correctly.
Thanks in advance to anyone can help me.
Max
User avatar
Junior Boarder

teitbite
Fri Aug 10, 2012 9:42 am
Hi

Please show me what big image You have in mind. Ampersant & is a special HTML char so needs to decode in order to work correctly. Anyway when I see it I may be able to come up with an idea.
User avatar
Moderator

GK User
Fri Aug 10, 2012 10:39 am
Thank you teitbite for your interest in matter. i insert an image hosted at imageshack (1024x768) that clearly explain what i'm saying.
In the title you can read "Orecchiette & Cavatelli" , but on mouse over you read "Orecchiette&Cavatelli". The page is reachable by clicking on "primi piatti" on the menu module on the right.

Any solution? Thanks a lot. Max.

http://imageshack.us/photo/my-images/836/catturahc.png/
User avatar
Junior Boarder

teitbite
Mon Aug 13, 2012 3:50 pm
Hi

Sorry for delay. I was away for weekend. I can see You've already found the place where this can be changed. While editing K2 items You are able to set a title and caption for main image. I believe title is the right one.
User avatar
Moderator

GK User
Tue Aug 14, 2012 3:37 pm
Ok, editing item in K2 is the right position. But if i fill as image title the " & " symbol, it give me in the front page the " & ". it seem as the special charater is not properly codified or interpreted. The K2 version i'm using is 2.5.5 by joomlaworks, may i need to upgrade?? maybe new version resolve this problem??
User avatar
Junior Boarder

teitbite
Sat Aug 18, 2012 10:22 pm
Hi

You should update, but I do not think it's gonna fix it. Unfortunately I have no idea how to help You, I was trying to copy this issue on my website and it always displays ok.

The only idea I have is to edit the file which is displaying it and change this sign using php function:

Code: Select all
str_replace( '&', '&', $string );
User avatar
Moderator

GK User
Mon Aug 20, 2012 5:43 pm
Well, may you say where to change or insert this code? i'm searching for your string, but i can't find it. Thanks a lot.
User avatar
Junior Boarder

teitbite
Tue Aug 21, 2012 11:09 am
Hi

There is no such string, that was just an example and the file where captcha is being loaded should be located in /html/com_k2/templates/default/item.php . Unfortunately will need to see Your file to tell the exact line.
User avatar
Moderator


cron