 | |  | | | Classifieds Installation & Upgrades If you're having install or upgrade problems, post here. |
June 4th, 2007, 02:53 PM
|
#61 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
Like I said in post #54, I uploaded the files from the 5:42PM build which was the last one available.
|
| |
June 4th, 2007, 03:41 PM
|
#62 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Then this is some new problem you have yet to report because there where no other changes made here.
The file that shows the cat names not on the edit screen but the main cat screen which is the one I beleive your talking about the one with edit delete sort cats etc is done by the catli function in adm-inc.php
You reported earlier the cat names where messed up on that page because of an addition to the code I made and I backed that out and uploaded the 524pm build which only has the change I noted for your initial issue
You can try adding in adm-inc.php at line 421 this line in bold Code: Content visible to verified customers only.
|
| |
June 4th, 2007, 05:01 PM
|
#63 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
Added the line in bold and still no change.
It is not a new problem. The problem was reported quite a few posts ago (I posted the screenshots).
You are right about the page. The problem is present on the page
/adm-misc.php?admact=admcats&ppaction=cats
Both categories and subcategories are shown incorrectly on this list.
|
| |
June 4th, 2007, 07:16 PM
|
#64 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
If it is not the original issue then it is a new one
If thats the page your saying this is what we do Code: Content visible to verified customers only.
See there is the catli function which is in adm-inc.php and the line I noted above and the line should do it
You can also put the same thing on the subcatname variable Code: Content visible to verified customers only.
Did you change or add the utf meta charset tag to adm-inc.php for your language yet?
|
| |
June 4th, 2007, 07:36 PM
|
#65 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
This problem has been present since the beginning. It was the reason I noticed the other problems...
I added the line you mentioned now and the text has changed but it is still wrong.
Now it shows http://www.photopost.com/forum/attac...1&d=1180903511
Before I added the line $subcatname = htmlentities($subcatname, ENT_QUOTES,'utf-8'); it showed http://www.photopost.com/forum/attac...6&d=1180873597
Do you see the difference? The text Š has been inserted in the middle of the category name. No idea where that came from...
Not a single fix you suggeested so far has fixed this original problem, only the ones in Edit or Sort Subcats subpages.
And yes, all the charset values are utf-8.
|
| |
June 4th, 2007, 07:53 PM
|
#66 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
The fix I posted is the same one you applied early in the discussion which fixed that same error. I fail to see why applying the same fix would not fix it
Tell me how the catname would be displayed and how it is stored in the database
|
| |
June 5th, 2007, 04:49 AM
|
#67 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
Look at post #43, I wrote all this data you are asking for now in that post.
The problems were located at:
Admin panel -> Edit Categories (still present, never fixed) This problem was never fixed, it only changed in a way described in post #65.
Admin panel -> Edit Categories -> Edit (fixed)
Admin panel -> Index Options -> Contents of the Announcement box (fixed but the text is still indented in the box for no reason!)
Last edited by tomzl; June 5th, 2007 at 04:55 AM.
|
| |
June 5th, 2007, 07:37 AM
|
#68 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
You did not exactly answer the information. You posted pictures saying how it displays with or without a line of code but that does not tell me in any way shape or form how it is stored in the database.
How is the category stored in the database is what I asked you need to post that here. I can not type the characters you are typing as I do not use your language so you need to physically do this. I can not do any testing of my own without being able to change a category to that name.
What I am saying is if the line we gave you fixes the catname on edit of a category it should do the same thing on the main cat display
|
| |
June 5th, 2007, 09:04 AM
|
#69 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
OK, English is not my first language but I thought I made it clear enough. I can't write it any more simple. Let me quote my message #43 and bold the parts you have been asking me to write in the last 2 posts. Quote:
Originally Posted by tomzl Can you please reply what file I need to edit so that categories are displayed correctly in the admin panel? I have changed all instances of charset to be utf-8 in the Classiffieds files beforehand so there is nothing more to change.
On the main page the category is displayed as: ČŠŽĐĆ In admin panel when I click edit categories: Ä?ŠŽÄ?Ä?
Stored in the database as: Ä?ŠŽÄ?Ä?
Edit subcats view in admin panel: ČŠŽĐĆ
Admin panel has utf-8 meta tags in its code on all the admin pages so I don't know where else to change it.
When I click Sort subcats in Edit categories, the categories are shown correctly like on the main page. Is this a bug since on one admin page Classifieds show the categories incorrectly and on another admin page they show them correctly? Both pages have utf-8 meta tags. In fact, when I go to edit the category, it manages to show the category name correctly and incorrectly on the same page (screenshot enclosed).
I have included screenshots for easier understanding. | The text is always stored in the database in the same format. The difference is just how Classifieds display it.
Again:
Admin panel -> Edit Categories (not displayed correctly)
Admin panel -> Edit Categories -> Edit (displayed correctly after the fix)
This is the same text stored in the same place in the table but displayed differently by Classifieds. Stored in the database as: Ä?ŠŽÄ?Ä?
I don't know what the fix should or should not do, I just know that it doesn't fix the problem.
|
| |
June 5th, 2007, 11:21 AM
|
#70 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Same thing once again download and reupload adm-inc.php and adm-misc.php
|
| |
June 5th, 2007, 02:23 PM
|
#71 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
That did the trick.  Thanks.
BTW, these small bugs I mentioned in post #49 are still present. Quote:
Originally Posted by tomzl While you're making corrections. When you choose all options in the admin panel, there is some text missing (the explanation) for GMT Offset and WorldPay Installation ID. Explanations end in the middle of the sentence. | Also, in admin panel where you have to enter the text for the announcement, the box for the text is acting funny. Any type of text you put in there is then displayed in the box with a lot of spaces in front of it. It shows on the main Classifieds page just fine but it is strange where those spaces come from in the admin panel.
|
| |
June 5th, 2007, 02:52 PM
|
#72 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
The descriptions just need to be shorter the fields in the settings table can only be 255 characters
|
| |
June 5th, 2007, 03:09 PM
|
#73 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
| Quote:
Originally Posted by Chuck S The descriptions just need to be shorter the fields in the settings table can only be 255 characters | OK but I'm talking about the English descriptions. What use are they if they end in the middle of the sentence? This a bug, is it not?
Also why is the announcement box text indented in the admin panel? Why the empty spaces?
Another charset related problem popped up when I tried to translate the text. The symptoms are the same as with the categories. When I make a change in admin panel, a confirmation page will be shown. The characters on this page are displayed incorrectly (look at the attachment). I added the text in red to show how it should be displayed correctly. The language file has a utf-8 encoding in the meta tags.
|
| |
June 5th, 2007, 03:17 PM
|
#74 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
I dont think there is a meta tag in the forward function you can add one around line 3118 of pp-inc.php in the function forward
|
| |
June 5th, 2007, 04:09 PM
|
#75 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
There is nothing that looks right around line 3118. I did find something that is the closest to what you are describing in line 2625.
I changed
<meta http-equiv=\"refresh\" content=\"1; URL=$redirect\" />
to
<meta http-equiv=\"refresh\" content=\"1; URL=$redirect\; charset=utf-8\" />
but the problem is still there.
I enclosed an utf-8 version of the english language file with characters ČŠŽĐĆ in the beginning of the "clickhere" phrase so you can test for yourself where the problem is.
|
| |
June 5th, 2007, 05:09 PM
|
#76 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
You did not use the proper meta tags you can not add a charset to a refresh tag you need a whole new line here is what the section should look like Code: Content visible to verified customers only.
|
| |
June 5th, 2007, 05:31 PM
|
#77 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
Excellent! Works like a charm.
What about the other bugs (cut off English explanations and indented text in the announcement text box in admin panel)?
|
| |
June 5th, 2007, 06:13 PM
|
#78 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
cutting off descriptions I already explained and its not a bug I guess we just need to shorten those explanations. A mysql varchar field has a max of 255 characters
cant say anything about any indenting cause I dont see anything in the code with indenting.
|
| |
June 5th, 2007, 08:22 PM
|
#80 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
What I am saying is I see absolutely nothing where we indent anything
That to me looks like your changing your text order from right to left or something are you doing that?
|
| | |
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:49 PM. | |