Gossamer Forum
Home : Products : DBMan : Customization :

Re: [shann123] Emoticons in record view?

Quote Reply
Re: [shann123] Emoticons in record view? In reply to
I think I have what you want, sorta. This works:

Code:

$smilies{smile} = ":smile:";
$smilies{frown} = ":frown:";
$smilies{wink} = ":wink:";
foreach $col (sort keys %rec) {
foreach $file (sort keys %smilies) {
$graphic = "<img url/to/smilies/dir/$file.gif>";
$rec{$col} =~ s/$smilies{$file}/$graphic/g;
}
}
foreach $col (sort keys %rec) {
print $rec{$col} . "\n";
}


It's not really smilies, but you can get the graphics where you want them. I tried everything I could think of to get the actual similies -- :-) :-( ;-) -- to work, but it would always try to interpret the characters.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.

Last edited by:

JPDeni: May 25, 2005, 8:41 PM
Subject Author Views Date
Thread Emoticons in record view? shann123 5664 May 19, 2005, 5:39 PM
Post Re: [shann123] Emoticons in record view?
JPDeni 5486 May 19, 2005, 8:16 PM
Thread Re: [shann123] Emoticons in record view?
Watts 5507 May 20, 2005, 3:45 PM
Thread Re: [Watts] Emoticons in record view?
shann123 5485 May 20, 2005, 4:17 PM
Thread Re: [shann123] Emoticons in record view?
shann123 5490 May 20, 2005, 4:38 PM
Thread Re: [shann123] Emoticons in record view?
JPDeni 5480 May 20, 2005, 5:48 PM
Post Re: [JPDeni] Emoticons in record view?
Watts 5451 May 23, 2005, 11:37 AM
Thread Re: [shann123] Emoticons in record view?
JPDeni 5447 May 25, 2005, 8:40 PM
Post Re: [JPDeni] Emoticons in record view?
shann123 5450 May 26, 2005, 9:28 AM