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

Parašė zirou· 2008 Bir. 19 14:06:08
#6

TAIGI, nepavyksta..Yra taip:
--------------------------------------------------------------------------------------------
function parsesmileys($message) {
   $smiley = array(
      "#\:\ )#si" => "<img src='".IMAGES."smiley/smile.gif' alt='smiley'>",
);
   foreach($smiley as $key=>$smiley_img) $message = preg_replace($key, $smiley_img, $message);
   return $message;
}
function displaysmileys($textarea) {
   $smiles = "";
   $smileys = array (
      ": )" => "smile.gif",
   );
   foreach($smileys as $key=>$smiley) $smiles .= "<img src='".IMAGES."smiley/$smiley' alt='smiley' onClick=\"insertText('$textarea', '$key' ) ; \">\n";
   return $smiles;


--------------------------------------------------------------------------------------------
as pakeiciu nuorodas bet tada visai psl neuzsikrauna.. ka as blogai darau?
--------------------------------------------------------------------------------------------
function parsesmileys($message) {
   $smiley = array(
      "#\: \ )#si" => "<img src='<img src="http://www.talpykla.com/files/4219/wink3.gif" alt="wink3.gif" />'>",
);
   foreach($smiley as $key=>$smiley_img) $message = preg_replace($key, $smiley_img, $message);
   return $message;
}
function displaysmileys($textarea) {
   $smiles = "";
   $smileys = array (
      ": )" => "http://www.talpykla.com/files/4219/wink3.gif",
   );
   foreach($smileys as $key=>$smiley) $smiles .= "<img src='".IMAGES."smiley/$smiley' alt='smiley' onClick=\"insertText('$textarea', '$key' );\">\n";
   return $smiles;



Redagavo ozzWANTED· 2008 Bir. 19 14:06:00