Skip to content

Tareq Hasan

Posted on

Yahoo! smiles in Pidgin

I didn’t like pidgin for its 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 codes to the new theme pack. I parsed the yahoo messenger’s
smiley xml file. That was a chance to parse the xml file and write a 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 its 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 :D .

4 thoughts on “Yahoo! smiles in Pidgin”

  1. I want to thank the blogger very much not only for this post but also for his all previous efforts. I found tareq.wedevs.com to be greatly interesting. I will be coming back to tareq.wedevs.com for more information.

  2. Hello, i believe that i noticed you visited my website thus i got here
    to return the choose?.I'm trying to in finding things to improve my site!I guess its ok to make use of a few of your concepts!!