Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: LTNiger klausimai.

Parašė Niger· 2008 Gru. 6 19:12:31
#7

Klausimelis apie smailus.

Zodziu susidejau smailus sisikeliau juos ten i ftp viska lig padarau kaip ir turi buti bet ikeliu maincore parefreshinu ir baltas langas lieka, gal zinot kame problema ?

va dalis maincores ten kur su sypsenelem vieta:

// Parse smiley bbcode into HTML images
function parsesmileys($message) {
   $smiley = array(
      "#\:\)#si" => "<img src='".IMAGES."smiley/smile.gif' alt='smiley'>",
      "#\;\)#si" => "<img src='".IMAGES."smiley/wink.gif' alt='smiley'>",
      "#\:\(#si" => "<img src='".IMAGES."smiley/sad.gif' alt='smiley'>",
      "#\:\|#si" => "<img src='".IMAGES."smiley/frown.gif' alt='smiley'>",
      "#\:o#si" => "<img src='".IMAGES."smiley/shock.gif' alt='smiley'>",
      "#\:p#si" => "<img src='".IMAGES."smiley/pfft.gif' alt='smiley'>",
      "#b\)#si" => "<img src='".IMAGES."smiley/cool.gif' alt='smiley'>",
      "#\:d#si" => "<img src='".IMAGES."smiley/grin.gif' alt='smiley'>",
      "#\:@#si" => "<img src='".IMAGES."smiley/angry.gif' alt='smiley'>"
      "#:\]#si" => "<img src='".IMAGES."smiley/xa.gif' alt='smiley'>"
      "#a\)#si" => "<img src='".IMAGES."smiley/aplodismentai.gif' alt='smiley'>"
      "#f\)#si" => "<img src='".IMAGES."smiley/fuck.gif' alt='smiley'>"
      "#x\)#si" => "<img src='".IMAGES."smiley/x.gif' alt='smiley'>"
      "#m\)#si" => "<img src='".IMAGES."smiley/mldc.gif' alt='smiley'>"
      "#s\)#si" => "<img src='".IMAGES."smiley/sss.gif' 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.gif",
      ";)" => "wink.gif",
      ":|" => "frown.gif",
      ":(" => "sad.gif",
      ":o" => "shock.gif",
      ":p" => "pfft.gif",
      "B)" => "cool.gif",
      ":D" => "grin.gif",
      ":@" => "angry.gif"
      ":]" => "xa.gif"
      "a)" => "aplodismentai.gif"
      "f)" => "fuck.gif"
      "x)" => "x.gif"
      "m)" => "mldc.gif"
      "s)" => "sss.gif"
   );
   foreach($smileys as $key=>$smiley) $smiles .= "<img src='".IMAGES."smiley/$smiley' alt='smiley' onClick=\"insertText('$textarea', '$key');\">\n";
   return $smiles;
}





kas pades 10+


aciu is anksto.