Skocz do zawartości
Hosting webh.pl - 20%

Furl 3.4 błąd :/

Rekomendowane odpowiedzi

Opublikowano

Witam !!

am kłopoty z FURL a mianowicie wszystko jest dobrze tylko nie zmienia mi literki ś na s tylko zostawia puste miejsce FURL byl ściągany z invisionize.com a polskie znaki zaporzyczylem z tego tematu

Mógłby mi ktoś powiedzieć dlaczego tak się dzieje ? ;)

Zaadoptowałem następujący kod

function make_url($title,$id,$type,$linktitle="",$tidlink=""){
global $ibforums;
$text = $title;
//Charachters must be in ASCII and certain ones aint allowed
$text = html_entity_decode ($text);
$text = preg_replace ("'<[\/\!]*?[^<>]*?>'si", "", $text);

//Polish Characters

$text = str_replace( "ą", "a", $text);
$text = str_replace( "ą", "a", $text);
$text = str_replace( "ą", "a", $text);
$text = str_replace( "Ą", "A", $text);
$text = str_replace( "Ą", "A", $text);
$text = str_replace( "ˇ", "A", $text);
$text = str_replace( "ł", "l", $text);
$text = str_replace( "ł", "l", $text);
$text = str_replace( "Ł", "L", $text);
$text = str_replace( "Ł", "L", $text);
$text = str_replace( "ó", "o", $text);
$text = str_replace( "ó", "o", $text);
$text = str_replace( "Ó", "O", $text);
$text = str_replace( "Ó", "O", $text);
$text = str_replace( "ń", "n", $text);
$text = str_replace( "ń", "n", $text);
$text = str_replace( "Ń", "N", $text);
$text = str_replace( "Ń", "N", $text);
$text = str_replace( "ć", "c", $text);
$text = str_replace( "ć", "c", $text);
$text = str_replace( "Ć", "C", $text);
$text = str_replace( "Ć", "C", $text);
$text = str_replace( "Ľ", "z", $text);
$text = str_replace( "Ą", "z", $text);
$text = str_replace( "Ą", "z", $text);
$text = str_replace( "Ź", "Z", $text);
$text = str_replace( "Ź", "Z", $text);
$text = str_replace( "Ź", "Z", $text);
$text = str_replace( "ż", "z", $text);
$text = str_replace( "ż", "z", $text);
$text = str_replace( "Ż", "Z", $text);
$text = str_replace( "Ż", "Z", $text);
$text = str_replace( "ś", "s", $text);
$text = str_replace( "ś", "s", $text);
$text = str_replace( "Ś", "S", $text);
$text = str_replace( "Ś", "S", $text);
$text = str_replace( "ę", "e", $text);
$text = str_replace( "ę", "e", $text);
$text = str_replace( "Ę", "E", $text);
$text = str_replace( "Ę", "E", $text);
$text = str_replace( "?", "e", $text);
$text = str_replace( "?", "e", $text);


$text = str_replace(" / ","-",$text);
$text = str_replace("/","-",$text);
$text = str_replace("'","-",$text);
$text = str_replace(" - ","-",$text);
$text = str_replace("_","-",$text);
$text = str_replace(" ","-",$text);
$text = str_replace( "ä", "ae", $text);
$text = str_replace( "ö", "oe", $text);
$text = str_replace( "ü", "ue", $text);
$text = str_replace( "Ä", "Ae", $text);
$text = str_replace( "Ö", "Oe", $text);
$text = str_replace( "Ü", "Ue", $text);
$text = str_replace( "ß", "ss", $text);
$text = str_replace( "&", "and", $text);
$text = str_replace( "%", "Percent", $text);
$text = ereg_replace("[^A-Za-z0-9-]", "", $text);
$text = str_replace("----","-",$text);
$text = str_replace("---","-",$text);
$text = str_replace("--","-",$text);


if ($linktitle!=""){
$linktitle = " title=\"".$linktitle."\"";
}

if ($tidlink!=""){
$tidlink = " id=\"tid-link-{$tidlink}\"";
}

$furl = "<a{$tidlink} href=\"{$this->ipsclass->vars['board_url']}/{$text}-{$type}{$id}.html\"{$linktitle}>{$title}</a>";
return $furl;

}

Z góry dzięki za pomoc ;)

Edytowane przez DawPi
codebox to super sprawa. Polecam :)

Opublikowano
Witam !!

am kłopoty z FURL a mianowicie wszystko jest dobrze tylko nie zmienia mi literki ś na s tylko zostawia puste miejsce FURL byl ściągany z invisionize.com a polskie znaki zaporzyczylem z tego tematu

Mógłby mi ktoś powiedzieć dlaczego tak się dzieje ? ;)

Zaadoptowałem następujący kod

Z góry dzięki za pomoc ;)

a może byś podał wersje IPB jaką używasz?

Opublikowano
  • Manager

Kodowanie na forum masz charset=iso-8859-2?? zgodnie z tym:

//Charachters must be in ASCII and certain ones aint allowed

kiedyś 20min kminiłem co jest nie tak, a rozwiązanie było tak proste ; )

intermedia - profesjonalne rozwiązania Invision Power Board, IC5

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Konto

Nawigacja

Szukaj

Szukaj

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.