Author Topic: Signs  (Read 11276 times)

0 Members and 1 Guest are viewing this topic.

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« on: August 20, 2002, 09:47:15 PM »
Someone can look in my gallery.
http://213.77.164.195/4images/categories.php?cat_id=1

Why once display bed
śćććłłććń

and once well
śćććłłććń

on the same page.

This is Polish signs in name of category.
arNIK

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #1 on: August 20, 2002, 10:00:30 PM »
sorry, i can't past polish sings on this phorum but look on top select category and on select tagg.

a use CHARSET=windows-1250 in header.html and on some place page display well but in else place display bad.
arNIK

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Signs
« Reply #2 on: August 20, 2002, 10:19:55 PM »
You see, the forum software has the same problems ;)

Try this:

Open "includes/functions.php" and change this line:

Code: [Select]
"cat_name" => htmlspecialchars($cat_cache[$category_id]['cat_name']),

to

Code: [Select]
"cat_name" => $cat_cache[$category_id]['cat_name'],
Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #3 on: August 20, 2002, 10:51:04 PM »
now is on description of category some bad
http://213.77.164.195/4images
but category title now ok :).

on
http://213.77.164.195/4images/categories.php?cat_id=2
the same at last.
arNIK

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Signs
« Reply #4 on: August 20, 2002, 10:54:43 PM »
This problem is hard to solve, but let us try something:

Delete this line in "inNlcudes/functions.php":

Code: [Select]
$chars = preg_replace("/(&#)([0-9]*)(;)/esiU", "chr(intval('\\2'))", $chars);
Then save the description again over the contro, panel.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #5 on: August 20, 2002, 10:59:16 PM »
sorry when I make new category title is OK,
only some in description.
arNIK

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #6 on: August 20, 2002, 11:07:59 PM »
YES that IT   :lol:
arNIK

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #7 on: August 20, 2002, 11:14:03 PM »
Dziekuje za pomoc.

Danke fur hilfe.
arNIK

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #8 on: August 21, 2002, 09:20:34 AM »
Is some strange work now.

When foto is in category:
http://213.77.164.195/4images/categories.php?cat_id=3
it's ok.

but when is't:
http://213.77.164.195/4images/categories.php?cat_id=2

On pages bad:
http://213.77.164.195/4images/top.php
http://213.77.164.195/4images/ - subcategory

and on page upload from category
and control panel - first page - stat - top images
l: test
p: test
This last only I see but maybe U want know  :wink:
arNIK

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #9 on: August 21, 2002, 01:20:26 PM »
I fixed some line in top.php, categories.php, index.php
cat htmlspecialchars() functin.

I can't find which line fix for subcategory
http://213.77.164.195/4images/
arNIK

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Signs
« Reply #10 on: August 21, 2002, 01:23:12 PM »
Check in the appropriate php files for text output with htmlspecialchars and delete the function.

Example:

Change in "includes/functions.php"

Code: [Select]
$sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".htmlspecialchars($cat_cache[$subcat_id]['cat_name'])."</a>";
to
Code: [Select]
$sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".$cat_cache[$subcat_id]['cat_name']."</a>";
This is for the subcategories output.

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
at last
« Reply #11 on: August 21, 2002, 10:09:43 PM »
I del all htmlspecialchars()

At last a think last bad.
When I test add foto from Check new images is bad:
http://213.77.164.195/4images/details.php?image_id=31

but when I add foto from upload button is OK.
http://213.77.164.195/4images/details.php?image_id=34
arNIK

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #12 on: August 21, 2002, 10:46:43 PM »
Is some problem when char add into database

If u can look

http://213.77.164.195/phpmyadmin/sql.php?sql_query=SELECT+%2A+FROM+possysaj_images&pos=0&server=1&db=chojniczanka&table=possysaj_images&goto=tbl_properties.php

and last record 34 is OK when I add foto from uload button.
arNIK

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Signs
« Reply #13 on: August 22, 2002, 07:46:48 AM »
Try to change the charset to iso-8859-2 in the template header.html
Code: [Select]
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
Do the same for the admin panel.
See: http://www.4homepages.de/forum/viewtopic.php?t=1377

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline arNIK

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://0-700.art.pl
Signs
« Reply #14 on: August 22, 2002, 10:13:51 PM »
Yes, just waking about charset.

At the begining I found place to paste charset into admin/index.php and into header.php. I thinking is all places but I was in mistaken.
arNIK