Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del Smailu
Parašė zirou· 2008 Bir. 19 11:06:40
#1
Taigi nenoriu uzkrauti savo serverio smailais, tad nutariau smailus talpinti kitame serveryje. Tarkim smailai sukelti i kita servery, turiu linkus visu ju, ir kur man juos pakeisti vietoi tu kur nukreipti siustis is mano severio? gal galit pasakyt kokiuose failuose reikia pakeisti tuos linkus? nes radau tik viena faila kuriame yra smailai. Taigi labai busiu dekingas jei kas pades :) ;)
Parašė Enzo· 2008 Bir. 19 11:06:12
#2
maincore.php
Parašė zirou· 2008 Bir. 19 11:06:01
#3
tai negi tik viename faile uztenka pakeisti??
Parašė Enzo· 2008 Bir. 19 11:06:01
#4
taip
Parašė zirou· 2008 Bir. 19 11:06:00
#5
vopstvaimat.. B)
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
Parašė Enzo· 2008 Bir. 19 14:06:10
#7
negi taip sunku įdėt tuos smailus į savo web? Ką jie labai sugadins? Vietos daug užima? :D
Parašė lilas· 2008 Bir. 19 14:06:06
#8
Apie 300 eilute ziurek
function parsesmileys($message) {
$smiley = array(
"#\:\)#si" => "<img src='".IMAGES."smiley/smile.gif' alt=':)'>",
"#\;\)#si" => "<img src='".IMAGES."smiley/wink.gif' alt=';)'>",
"#\:\(#si" => "<img src='".IMAGES."smiley/sad.gif' alt=':('>",
"#\:\|#si" => "<img src='".IMAGES."smiley/frown.gif' alt=':|'>",
"#\:o#si" => "<img src='".IMAGES."smiley/shock.gif' alt=':O'>",
"#\:p#si" => "<img src='".IMAGES."smiley/pfft.gif' alt=':P'>",
"#b\)#si" => "<img src='".IMAGES."smiley/cool.gif' alt='B)'>",
"#\:d#si" => "<img src='".IMAGES."smiley/grin.gif' alt=':D'>",
"#\:@#si" => "<img src='".IMAGES."smiley/angry.gif' alt=':@'>",
"#\:trumpas_kodas:#si" => "<img src='".IMAGES."smiley/smailo_nuoroda.gif' alt='apraymas xD'>",
);
foreach($smiley as $key=>$smiley_img) $message = preg_replace($key, $smiley_img, $message, 4);
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",
":trumpas_kodas:" => "smailo_nuoroda.gif"
Matai kur rasyskinta ta redaguok
Parašė zirou· 2008 Bir. 19 22:06:09
#9
krc tu man davei pwz kaip padaryt is savo servo... blm kasnors rimtesnis galit pasakyt? B) kaip padaryt kad smailai butu naudojami is kitur!!:@:@:@
Redagavo ozzWANTED· 2008 Bir. 19 22:06:35
Parašė Narysx· 2008 Bir. 19 22:06:53
#10
Atsidarom maincore.php...
Susirandam apie 312 eilutę. Po ja matome:
"#\:\)#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'>",
Ir t.t...
Redaguojam:
"#\:\)#si" => "<img src='http://pirmo.smailo.url.gif' alt='smiley'>",
"#\;\)#si" => "<img src='antro.smailo.url.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'>",
Ir taip viską pakeičiame...
Redagavo Narysx· 2008 Bir. 19 22:06:05
Parašė zirou· 2008 Bir. 19 23:06:47
#11
as juk taip ir dariau... kai taip redaguoju nebeatidaro psl! Redaguokit maincore.php ta failiuka, pabandyk bent viena smaila pakeist! vieno smailo url:
http://www.talpykla.com/files/42... ir atsiuskit man,, ar prisekit ji cia:(