 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
February 16th, 2006, 06:09 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Sep 2004
Posts: 123
| Control panel with utf-8 charset problem
Hi
I am using Vietnamese (charset utf-8) with photopost pro and have problem in admin control panel:
Firt all the text name of category in control panel is broken. And then I searched and found this: Arabic language prob in admin cp
And I tried change the charset in language file and then edit the adm-inc.php as the following:
comment the two lines: Code: Content visible to verified customers only.
Change the line 270 in to Code: Content visible to verified customers only.
(I am using english.php file but just changed it charset to word with vietnamese)
And then I seem ok when o go to the "edit categories" in the control panel. However, when I click one category to edit. Its name is broken again as the attachment.
Can anyone tell me how to fix this problem?
Thanks
|
| |
February 16th, 2006, 09:46 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
Try commenting out the htmlentities for catname in adm-misc.php
|
| |
February 16th, 2006, 10:04 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Sep 2004
Posts: 123
|
Thanks for your help. Do you mean this line? Code: Content visible to verified customers only.
I tried it but nothing changes.
I have one more question: The charset in my ppc is still ISO (not utf-8) as I want. How i make it automatic encode utf-8?
Thanks
|
| |
February 16th, 2006, 10:13 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
Okay your hosting in the photopost pro section. You need to make similar changes you made in Photopost to classifieds for the $charset
I am referring to this line in adm-misc.php Code: Content visible to verified customers only.
|
| |
February 16th, 2006, 05:48 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Sep 2004
Posts: 123
|
Thanks Chuck,
I did not find Code: Content visible to verified customers only.
In adm-misc.php.
Do you misunderstand me? I am talking about photopost pro not classifieds.
Can you take a look again!
Thanks
|
| |
February 16th, 2006, 05:58 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Sep 2004
Posts: 123
|
I found it in the adm-cats.php in lines 374 already! I can read vietnamese when I edite category now.
However I still do not know where to change the charset for amin control panel
Thanks
Last edited by ttnb; February 16th, 2006 at 06:02 PM.
|
| |
February 16th, 2006, 06:56 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
That is changed in adm-inc.php in both products.
Yes always good to open posts on each product accordingly so you can get the response you want |
| |
February 17th, 2006, 08:28 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Sep 2004
Posts: 123
|
I am using photopost pro and I think this box is not for calassifieds.
Could you tell me what line I should edit in adm-inc.php to make the admin control panel have utf-8 charset?
Thanks
|
| |
February 17th, 2006, 08:42 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
well this is the question you asked Quote: |
I have one more question: The charset in my ppc is still ISO (not utf-8) as I want. How i make it automatic encode utf-8?
| Is there some shorthand I am not understanding that means photopost classifieds
Anyway your first post already states how to use uft8 and the changes needed. You change the contentmeta Control panel with utf-8 charset problem |
| |
February 17th, 2006, 09:02 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Sep 2004
Posts: 123
|
Oh, sorry for making you confused!
I did as in the thread you qouted and the languages can be viewed correctly but when I look at the encoding, it still does not automatically charset in to utf-8. Please look at my attachment(sorry I am using Japanese Windows but I think you can recognize).
I just want to figure out why it is not charsetted in to utf-8.
Thanks
|
| |
February 17th, 2006, 09:18 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
Okay well thats not going to control anything what you set in a browser. The admin control panel is english and only english. All the entries are in a database
Your encoding in your browser may effect your browser but its not going to affect a program on the webserver.
|
| |
April 14th, 2006, 08:09 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: May 2005 Location: OK, US
Posts: 107
|
Better to use this: Code: Content visible to verified customers only.
You may also want to set
$subcatname = htmlentities($subcatname, ENT_QUOTES,'utf-8');
in adm-inc.php Quote: |
Originally Posted by Chuck S Okay well thats not going to control anything what you set in a browser. The admin control panel is english and only english. All the entries are in a database
Your encoding in your browser may effect your browser but its not going to affect a program on the webserver. | If you want to change charset in admincp, search and replace iso-08859-1 by utf-8
in adm-inc.php, adm-index.php, adm-users.php
|
| |
July 3rd, 2006, 10:28 AM
|
#13 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2006 Location: BULGARIA/Sofia
Posts: 19
|
adding ,ENT_COMPAT,"UTF-8") after $subcatname seems to work fine, for example:
$subcatname = htmlentities($subcatname,ENT_COMPAT,"UTF-8"); Quote: |
Originally Posted by ttnb I found it in the adm-cats.php in lines 374 already! I can read vietnamese when I edite category now.
However I still do not know where to change the charset for amin control panel
Thanks | |
| |
January 4th, 2007, 10:41 AM
|
#14 (permalink)
| | Junior Member Verified Customer
Join Date: May 2006
Posts: 2
|
Проблем так и не решена. Все перепробовал - ничего не вышло....
Happy New Year
|
| |
September 30th, 2007, 06:43 AM
|
#15 (permalink)
| | Junior Member Verified Customer
Join Date: Sep 2007
Posts: 2
| Quote:
Originally Posted by Pavel Проблем так и не решена. Все перепробовал - ничего не вышло....
Happy New Year | Russian with utf-8 works fine for me after some patching
1)
// patch
mysql_query('SET NAMES utf8');
.... insert this after each mysql_connect
in pp-inc.php
2) correct htmlentities as decribed above in all files
|
| |
December 6th, 2007, 11:46 AM
|
#16 (permalink)
| | Junior Member Verified Customer
Join Date: Dec 2007
Posts: 7
|
vrom, your solution works just fine,
here is my Cyrillic utf-8 forum and photopost gallery: http://www.ulitka.com/forums/
thank you!
Last edited by ulitka; December 15th, 2007 at 09:11 PM.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:47 PM. | |