• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Problems with coding

Status
Not open for further replies.

Gatses

Chevereto Member
Hello. That's a website name is displayed instead:
w3ANZ.png


And yet on the demo:
m1LYK.png
 
I just don't see what you are seeing.
I understand that you are getting that error but I can't fix it without seeing it on my machine, it just impossible for me fix a error where I don't see the error.

Please tell me what browser version are you using and if using FF 5 and Opera 11.50 you still have troubles.
 
I will need:
1. Full image capture of your browser window.
2. Copy and paste the code that shows on source <title>
 
1.
1)I have:
jJBFL.png

2)On demo:
LHZ9I.png

2.Writes "<title>Просмотр изображения DP4k2.jpg - Фотохостинг VerdicT</title>", and must be "<title>Просмотр изображения DP4k2.jpg - Фотохостинг VerdicT</title>"
 
Ok, in /includes/template.functions.php go to the line 401 and change this:
PHP:
<title>'.utf8_encode($doctitle.chevereto_config('doctitle')).'</title>';

To this:
PHP:
<title>'.$doctitle.utf8_encode(chevereto_config('doctitle')).'</title>';

The current 2.0.4 zip have been patched.
 
I don't understand this. After upgrade from 2.01 to 2.0.4 (I upladed everything) my polish title now doesn't work.
I tried to save config.php as UTF-8, UTF-8 with BOM. But it still doesn't work.

Problem is not in config.php

###
OK I just fixed this.
My solution :

Find in template.functions.php :
Code:
<title>'.$doctitle.utf8_encode(chevereto_config('doctitle')).'</title>';

And change to this :
Code:
<title>'.$doctitle.chevereto_config('doctitle').'</title>';}
 
Thank you, so everything works. Only in this way:

Code:
<title>'.$doctitle.chevereto_config('doctitle').'</title>';
 
The issue is this... The config doctitle could be anything... It could be a normal string, a string with UTF-8 chars (like tildes) and a UTF-8 string with &oacute and even a mixture between all this things.

So, the function need to be more bulletproof, i will think in something for 2.0.5
 
Ok this is the deal... This is not like when you store data on mysql records. So it's kinda buggy.
I'm sorry but it needs more investigation, the fix will be delayed until further notice.
 
Assists in the replacement string template.functions.php:
Code:
<title>'.$doctitle.utf8_encode(chevereto_config('doctitle')).'</title>';

replace with

Code:
<title>'.$doctitle.chevereto_config('doctitle').'</title>';
 
My dear friend, sorry for this I have found the issue it was a terrible noob mistake by me.
I have included this fix on the 2.0.15 realease you have to download it again and:

1. Replace your old config.php with the new config.php file (this is crucial because the old file is ANSI and the new is UTF-8).
2. Replace the template.functions.php file with the new one.

I have tested on the dev: http://dev.chevereto.com/

Tell me what you think.
 
Status
Not open for further replies.
Back
Top