Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z shoutbox PHP
Gruby1991
post 4.11.2009, 20:42:09
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 4.11.2009

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


Witam ostatnio znalazłem mod do ShoutBoxa na stronie.. Posiadam Tracker torrent i chce poprosic o pomoć..

Opis instalacji tego moda znajduje się na: http://www.torrentmania.info/f-mody-100-dz...otami-4505.html

mam problem z dwoma końcowymi etapami mianowicie z tym:

Do pliku global.php na początku dodaj:

Kod:

Kod
$shoutsmilies = array(
  ":)" => "smile1.gif",
   ":D" => "grin.gif",
":lol:" => "laugh.gif",
":w00t:" => "w00t.gif",
":p" => "ras.gif",
":P" => "tongue.gif",
  ";)" => "wink.gif",
":|" => "noexpression.gif",
  ":-/" => "confused.gif",
  ":(" => "sad.gif",
   ";(" => "weep.gif",
  ":O" => "ohmy.gif",
  "o)" => "clown.gif",
  "8)" => "cool1.gif",
  "|-)" => "sleeping.gif",
":innocent:" => "innocent.gif",
  ":whistle:" => "whistle.gif",
  ":unsure:" => "unsure.gif",
  ":closedeyes:" => "closedeyes.gif",
  ":cool:" => "cool2.gif",
   ":thumbsup:" => "thumbsup.gif",
  ":thumbsdown:" => "thumbsdown.gif",
  ":blush:" => "blush.gif",
   ":yes:" => "yes.gif",
  ":no:" => "no.gif",
  ":love:" => "love.gif",
  ":?:" => "question.gif",
  ":!:" => "excl.gif",
    ":hmm:" => "hmmm.gif",
    ":angry:" => "angry.gif",
    ":devil:" => "devil.gif",
  ":evil:" => "evil.gif",
);


oraz także do pliku global.php dodaj:

Kod:

Kod
[/color][/color]
    $s = preg_replace(
        "/\[color=(#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\]((\s|.)+?)\[\/color\]/i",
        "<font color=\\1>\\2</font>", $s);
    // [url=http://www.example.com]Text[/url]
    $s = preg_replace(
        "/\[url=([^()<>\s]+?)\]((\s|.)+?)\[\/url\]/i",
        "<a href=\"\\1\" target=\"_parent\">\\2</a>", $s);
    // [url]http://www.example.com[/url]
    $s = preg_replace(
        "/\[url\]([^()<>\s]+?)\[\/url\]/i",
        "<a href=\"\\1\" target=\"_parent\">\\1</a>", $s);
  

    reset($shoutsmilies);
    while (list($code, $url) = each($shoutsmilies))
        $s = str_replace($code, "<img border=0 src=\"/pic/smilies/$url\">", $s);

    return $s;
}


Chodzi mi o to ze pierwszy kod mam wkleic na poczatku pliku global.php no to wklejam a drugi gdzie questionmark.gif Jak wkleje go gdzies to wyskakuje mi błąd... Proszę o jak najszybsza pomoc. Dziękuje
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 04:44