is there a wey to make an admin-type page where you can update a php file for emoticons?
let me explain what i want. i have a php file that i include in a document and it turns :) into graphical ones and such. what i want is to be able to use an admin page to add more smilies to that file. while NOT using MYSql. I know some messageboards have this. they have a place for the path to the graphic and a place for the code to the smilie. can it be done heres my emoticon.php file:
PHP Code:
<?
function Do_faces ($article) {
$article = nl2br($article);
$article = str_replace(":)","<img src=\"/images/smiles/smile.gif\" border=\"0\" alt=\"\">",$article);
$article = str_replace(":(","<img src=\"/images/smiles/frown.gif\" border=\"0\" alt=\"\">",$article);
$article = str_replace(":p","<img src=\"/images/smiles/tongue.gif\" border=\"0\" alt=\"\">",$article);
$article = str_replace(":o","<img src=\"/images/smiles/redface.gif\" border=\"0\" alt=\"\">",$article);
$article = str_replace(":D","<img src=\"/images/smiles/biggrin.gif\" border=\"0\" alt=\"\">",$article);
$article = str_replace(";)","<img src=\"/images/smiles/wink.gif\" border=\"0\" alt=\"\">",$article);
return $article;
}
?>





Bookmarks