Parašė _Tomas· 2007 Spa. 4 14:10:10
#1
Atsisiunciau Smiley I Weba Ir Nebuvo maincore.php Tai redagavausi pats.
Viska Susirasiau Pridėjau Pora Eiluciu Ir Nzn Dabar Kame Problema.
O Problema:
Saukykloi Forume Nerodo Ʋinučiu Nei Komentaruose Niekur kur galima rašyt....
Maincore.php
Cia Vieta Su SMILEY
// Parse smiley bbcode into HTML images
function parsesmileys($message) {
$smiley = array(
"#\:\)#si" => "<img src='".IMAGES."smiley/1.gif' alt='smiley'>",
"#\;\)#si" => "<img src='".IMAGES."smiley/5.gif' alt='smiley'>",
"#\:\(#si" => "<img src='".IMAGES."smiley/sadsmile.gif' alt='smiley'>",
"#\:\|#si" => "<img src='".IMAGES."smiley/speechless.gif' alt='smiley'>",
"#\:o#si" => "<img src='".IMAGES."smiley/surprised.gif' alt='smiley'>",
"#\:p#si" => "<img src='".IMAGES."smiley/4.gif' alt='smiley'>",
"#B\)#si" => "<img src='".IMAGES."smiley/cool.gif' alt='smiley'>",
"#\:d#si" => "<img src='".IMAGES."smiley/3.gif' alt='smiley'>",
"#\:@#si" => "<img src='".IMAGES."smiley/angry.gif' alt='smiley'>",
"#\>\<#si" => "<img src='".IMAGES."smiley/doh.gif' alt='smiley'>",
"#\:\<#si" => "<img src='".IMAGES."smiley/wondering.gif' alt='smiley'>",
"#\:\8#si" => "<img src='".IMAGES."smiley/rofl.gif' alt='smiley'>",
"#\<\p#si" => "<img src='".IMAGES."smiley/party.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 (
":)" => "1.gif",
";)" => "5.gif",
":|" => "speechless.gif",
":(" => "sadsmile.gif",
":o" => "surprised.gif",
":p" => "4.gif",
"B)" => "cool.gif",
":D" => "3.gif",
":@" => "angry.gif",
"><" => "doh.gif",
":<" => "wondering.gif",
":8" => "rofl.gif",
"<p" => "party.gif"
);
foreach($smileys as $key=>$smiley) $smiles .= "<img src='".IMAGES."smiley/$smiley' alt='smiley' onClick=\"insertText('$textarea', '$key');\">\n";
return $smiles;
}
Gal kas žino kokia problema?