Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: shoutbox_panel

Parašė luxkas· 2008 Lie. 29 20:07:26
#4

isidejau nauju smilu ir shoutboxo panelej meta sita errora galit paaiskint kai istaisyt?

aeon
29/07/2008 20:23
Warning: preg_replace() [function.preg-replace]: Compilation failed: missing ) at offset 8 in /home/aeon/public_html/maincore.php on line 322

Warning: preg_replace() [function.preg-replace]: Compilation failed: malformed \P or \p sequence at offset 4 in /home/aeon/public_html/maincore.php on line 322

[Redaguoti - Trinti]

------------------------------------------------------
o cia maincore.php ka redagavau

// Parse smiley bbcode into HTML images
function parsesmileys($message) {
   $smiley = array(
      "#\:angry:#si" => "<img src='".IMAGES."smiley/angry.png' alt='smiley'>",
      "#\:beer:(#si" => "<img src='".IMAGES."smiley/beer.png' alt='smiley'>",
      "#\:\D#si" => "<img src='".IMAGES."smiley/biggrin.png' alt='smiley'>",
      "#\:blush:#si" => "<img src='".IMAGES."smiley/blush.png' alt='smiley'>",
      "#\:cool:#si" => "<img src='".IMAGES."smiley/cool.png' alt='smiley'>",
      "#\:cry:#si" => "<img src='".IMAGES."smiley/cry.png' alt='smiley'>",
      "#\:devil:#si" => "<img src='".IMAGES."smiley/devil.png' alt='smiley'>",
      "#\:drool:#si" => "<img src='".IMAGES."smiley/drool.png' alt='smiley'>",
      "#\:joke:#si" => "<img src='".IMAGES."smiley/grin.png' alt='smiley'>",
      "#\:happy:#si" => "<img src='".IMAGES."smiley/happy.png' alt='smiley'>",
      "#\:poo:#si" => "<img src='".IMAGES."smiley/poo.png' alt='smiley'>",
      "#\:\|#si" => "<img src='".IMAGES."smiley/pouty.png' alt='smiley'>",
      "#\:o#si" => "<img src='".IMAGES."smiley/shock.png' alt='smiley'>",
      "#\:sick:#si" => "<img src='".IMAGES."smiley/sick.png' alt='smiley'>",
      "#\:\)#si" => "<img src='".IMAGES."smiley/smile.png' alt='smiley'>",
      "#\:stfu:#si" => "<img src='".IMAGES."smiley/stfu.png' alt='smiley'>",
      "#\:down:#si" => "<img src='".IMAGES."smiley/thumbdown.png' alt='smiley'>",
      "#\:up:#si" => "<img src='".IMAGES."smiley/thumbsup.png' alt='smiley'>",
      "#\:\p#si" => "<img src='".IMAGES."smiley/tongue.png' alt='smiley'>",
      "#\;\)#si" => "<img src='".IMAGES."smiley/wink.png' alt='smiley'>"
   );
   foreach($smiley as $key=>$smiley_img) $message = preg_replace($key, $smiley_img, $message);
   return $message;
}

// Show smiley icons in comments, forum and other post pages
function displaysmileys($textarea) {
   $smiles = "";
   $smileys = array (
      ":)" => "smile.png",
      ";)" => "wink.png",
      ":|" => "pouty.png",
      ":(" => "cry.png",
      ":O" => "shock.png",
      ":P" => "tongue.png",
      ":cool:" => "cool.png",
      ":joke:" => "grin.png",
      ":angry:" => "angry.png",
                                ":beer:" => "beer.png",
      ":blush:" => "blush.png",
      ":devil:" => "devil.png",
      ":drool:" => "drool.png",
      ":happy:" => "happy.png",
      ":poo:" => "poo.png",
      ":sick:" => "sick.png",
      ":stfu:" => "stfu.png",
      ":down:" => "thumbdown.png",
      ":up:" => "thumbsup.png"
   );
   foreach($smileys as $key=>$smiley) $smiles .= "<img src='".IMAGES."smiley/$smiley' alt='smiley' onClick=\"insertText('$textarea', '$key');\">\n";
   return $smiles;
}




Redagavo luxkas· 2008 Lie. 29 22:07:48