the smilies are visible in my phone wml mode but in xhtml phone it doesnt but in xhtml if i visit from pc it the smilies are visible example the code is visible not the smile when i am visiting my site from mobile but when i visit from my pc the smilies are visible i am going mad to solve this also tried copying the smilies functions from wml to xhtml and made a comparison on parse pm function parse other pm function and also get smilies function the codes in both i mean wml and xhtml c both functions are seem to be same but still the problem exists
smilies are playing with me
Collapse
X
-
PHP Code:///////////////////////////////////////////////Get the smilies
function getsmilies($text)
{
$sql = "SELECT * FROM ibwf_smilies";
$smilies = mysql_query($sql);
while($smilie=mysql_fetch_array($smilies))
{
$scode = $smilie[1];
$spath = $smilie[2];
$text = str_replace($scode,"<img src=\"$spath\" alt=\"$scode\"/>",$text);
}
return $text;
}
PHP Code:$text = str_replace($scode,"<img src=\"$spath\" alt=\"$scode\"/>",$text);
it is already posted mate and i have made comparison with my wml core and the xhtml core this is my xhtml cores get smilie and it still doesnt showNice Effects
Comment
-
looks like its a host problem ...here is the only fix i know of ... but will cause warning messages while on pc
PHP Code:function getsmilies($text)
{
$sql = "SELECT * FROM ibwf_smilies";
$smilies = mysql_query($sql);
while($smilie=mysql_fetch_array($smilies))
{
$scode = $smilie[1];
$spath = $smilie[2];
$text = str_replace($scode,"<img src=\"http://%20@sitename.com/$spath\" alt=\"$scode\"/>",$text);
}
return $text;
}
Comment
Comment