Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nl2dav

Pages: [1]
1
hi wonder and welcome to the 4images forum:
you can controll all special chars within this post: http://www.4homepages.de/forum/index.php?topic=17598.msg137905#msg137905

file includes/sessions.php

example with char ą :

search for
Code: [Select]
$row['cat_name'] = strtr($row['cat_name'], "éèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ","eeeaeauoiaabcdefghijklmnopqrstuvwxyz");and
Code: [Select]
$row['image_name'] = strtr($row['image_name'], "éèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ","eeeaeauoiaabcdefghijklmnopqrstuvwxyz");
change to

Code: [Select]
$row['cat_name'] = strtr($row['cat_name'], "ąéèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ","aeeeaeauoiaabcdefghijklmnopqrstuvwxyz");and
Code: [Select]
$row['image_name'] = strtr($row['image_name'], "ąéèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ","aeeeaeauoiaabcdefghijklmnopqrstuvwxyz");

search
Code: [Select]
function get_category_url($cat_id,$cat_url = '')
add before

Code: [Select]
function normalize ($string) {
    $table = array(
        'Š'=>'S', 'š'=>'s', 'Đ'=>'Dj', 'đ'=>'dj', 'Ž'=>'Z', 'ž'=>'z', 'Č'=>'C', 'č'=>'c', 'Ć'=>'C', 'ć'=>'c',
        'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E',
        'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O',
        'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss',
        'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e',
        'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o',
        'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b',
        'ÿ'=>'y', 'Ŕ'=>'R', 'ŕ'=>'r',
    );

    return strtr($string, $table);
}

search quoted code from Nicky (start of this post).

replace with

Code: [Select]
$row['cat_name'] = normalize($row['cat_name']);
and

Code: [Select]
$row['image_name'] = normalize($row['image_name']);
If you also want lowercase characters in your url, use strtolower after normalize lines you just replaced

Code: [Select]
$row['cat_name'] = strtolower($row['cat_name']);
Code: [Select]
$row['image_name'] = strtolower($row['image_name']);

2
Feedback & Suggestions / Re: Warning: 4images and PHP 5.3
« on: September 28, 2009, 07:07:51 PM »
OK, just better to turn E_STRICT errors off and wait for 1. 7. 8  :mrgreen:

3
Feedback & Suggestions / Warning: 4images and PHP 5.3
« on: September 28, 2009, 12:40:46 AM »
The ereg, eregi, ereg_replace and eregi_replace functions which are frequently used in the code of 4images became deprecated in PHP 5. 3;

Quote
Deprecated: Function ereg() is deprecated

Code update is required.        

If you want to fix it yourself;

http://devthought.com/tumble/2009/06/fix-ereg-is-deprecated-errors-in-php-53/


edit; what the. . .   Link censoring?? Why?  :|

4
Web browser based resizing always degrades image quality badly.

5
I got the PMv3 code and zip but it was not easy. No official support here anymore?

6
Superb, nice work!

7
Link is dead  :?

Pages: [1]