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.
[sourcecode language=’php’]
\n”;
echo “Description=Yahoo 9.0 smileys
\n”;
echo “Icon=4.gif
\n”;
echo “Author=Tareq Hasan
\n”;
echo “
[default]”;
$load = simplexml_load_file(’emoticons.xml’);
echo “
"; foreach($load->emoticon as $key) { echo $key['id'].".gif"; echo "\t"; foreach($key->shortcuts->shortcut as $symbol) { echo $symbol." "; } echo "
"; } echo "
“;
?>
[/sourcecode]
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 😀 .
[download id=”5″]
Welldone! Keep the exploration 🙂
hahaha.. thank’s a lot for info sharing. Nice posting ^_^
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.
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!!