Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Konwerter BBCode z phpBB => IPB
spenalzo
post
Post #1





Grupa: Zarejestrowani
Postów: 2 064
Pomógł: 1
Dołączył: 22.01.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Poszukuje konwertera BBCode z forum phpBB do forum IPB - jakby ktoś miał to będę wdzieczny.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
POLVIP
post
Post #2





Grupa: Zarejestrowani
Postów: 80
Pomógł: 0
Dołączył: 1.11.2003
Skąd: Long Island, NY USA

Ostrzeżenie: (0%)
-----


patrzyles kod do convertera phpBB >> IPB

tutaj jest wycinek do bbcode
[php:1:5626d136f3]<?php
function unconvert_bbcode($text)
{
$text = preg_replace("/[list]" , $text);
$text = preg_replace("/[*:([0-9|a-z]+)]/i" , "
[*]" , $text);
$text = preg_replace("/[/list(.+)]/i" , "[list]" , $text);
$text = preg_replace("/{6}|[a-z]+):([0-9|a-z]+)]/i", "[color=1]", $text);
$text = preg_replace("/[/color(.+)]/i" , "
", $text);
$text = preg_replace("/?[1-2]?[0-9]):([0-9|a-z]+)]/si", "[size=1]", $text);
$text = preg_replace("/[/size:([0-9|a-z]+)]/i" , "
" , $text);
$text = preg_replace("/[quote]/si" , "[quote]" , $text);
$text = preg_replace("/[/quote:(.*?)]/si" , "[/quote]" , $text);
$text = preg_replace("/[code:([0-9|a-z]+):([0-9|a-z]+)]/si" , "
Kod
"   , $text);

  $text = preg_replace("/[/code:([0-9|a-z]+):([0-9|a-z]+)]/si", "
" , $text);
$text = preg_replace("/[b:([0-9|a-z]+)]/si" , "" , $text);
$text = preg_replace("/[/b:([0-9|a-z]+)]/si" , "
" , $text);
$text = preg_replace("/[u:([0-9|a-z]+)]/si" , "" , $text);
$text = preg_replace("/[/u:([0-9|a-z]+)]/si" , "
" , $text);
$text = preg_replace("/[i:([0-9|a-z]+)]/si" , "" , $text);
$text = preg_replace("/[/i:([0-9|a-z]+)]/si" , "
" , $text);
$text = preg_replace("/[IMG]/si" , "[IMG]" , $text);
$text = preg_replace("/[/img:(.*?)]/si" , "[/IMG]" , $text);

return $text;
}
?>[/php:1:5626d136f3]
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.10.2025 - 14:08