"); Markup("wink","block","/;-\)/","winking smiley"); Markup("sad","block","/:-\(/","frowning smiley"); Markup("tongue","block","/:-p/","laughing smiley"); Markup("redface","block","/:-o/","embarrassed smiley"); Markup("cool","block","/\{cool\}/","cool smiley"); Markup("biggrin","block","/:-D\\b/","grinning smiley"); Markup("confused","block","/\{confused\}/","confused smiley"); Markup("eek","block","/\{eek\}/","shrieking smiley"); Markup("mad","block","/\{angry\}/","angry smiley"); Markup("rolleyes","block","/\{rolleyes\}/","rolling eyes smiley"); ## Other smilies : called with their names inside "{" and "}" : {happy} # ">block" to force this rule to be used after the other concerning smiley (give a chance to {angry} smiley to be linked with mad.gif) # "/\{([^\}]+?)\}/" because the regexp must not catch text like {} Markup('smiley_icon','>block','/\{([^\}]+?)\}/',"$1 smiley"); /* Experimental, don't work, needs pathname... Markup('smiley_icon','>block','/\{([^\}]+?)\}/e',"Smiley_Exists(\"$1\")"); function Smiley_Exists($SmileyFile) { global $SmileysFolder; #Quoted from php.net : file_exists will have trouble finding your file if the file permissions are not read enabled for 'other' when not owned by your php user. if (file_exists("$SmileysFolder/$SmileyFile.gif")) { # Numbering format needs PHP 4.0.6 or higher # return sprintf("$SmileyFile", $SmileysFolder, $SmileyFile); return "Yes"; } else { return "No"; } } */ ?>