I didn’t like pidgin for it’s smilies and didn’t use it. I use yahoo messenger and gtalk separately. But later i came to know that i can use yahoo smilies to pidgin. So, i switched to pidgin with my yahoo, gtalk and msn accounts.
Firstly i used yahoo smilies that i found here. But this smilies of yahoo 8.1. But it’s a bit old smilies. So i made a new smiley pack
for pidgin that is used in yahoo 9. I used some code to convert the yahoo smiley code’s to the new theme pack. I parsed the yahoo messenger’s
smiley xml file. That was a chance to purse the xml file and write e new blog post, ha ha ha ha.
I opened my Yahoo’s xml file from here C:\Program Files\Yahoo!\Messenger\Media\Smileys\emoticons.xml
I wrote the code to parse the file and get the file name with it’s corresponding code.
<?php
echo "Name=Yahoo!<br>\n";
echo "Description=Yahoo 9.0 smileys<br>\n";
echo "Icon=4.gif<br>\n";
echo "Author=Tareq Hasan<br>\n";
echo "<br>[default]";
$load = simplexml_load_file('emoticons.xml');
echo "<pre>";
foreach($load->emoticon as $key)
{
echo $key['id'].".gif";
echo "\t";
foreach($key->shortcuts->shortcut as $symbol)
{
echo $symbol." ";
}
echo "<br>";
}
echo "</pre>";
?>
This code generates the following file
Name=Yahoo!
Description=Yahoo 9.0 smileys
Icon=4.gif
Author=Tareq Hasan
[default]
1.gif
(-: (:) ![]()
2.gif
![]()
3.gif
![]()
…………….
…………….
113.gif :-bd
114.gif ^#(^
115.gif :bz
—————————————————————————–
Then i copied the *.gif files to a new folder. I copied the text, generated by the code to a file named “theme” with no extension.
Then compressed the folder in tar.gz format. Now it’s ready for a smiley theme package. So easy
.