Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: Jade Elizabeth - syyskuu 30, 2007, 12:13:45 IP

Otsikko: smiley sets
Kirjoitti: Jade Elizabeth - syyskuu 30, 2007, 12:13:45 IP
i made a set of smileys for my forum and everyone loves them
so now i wanna know
how can i share them? as in how do i put them in a mod?
there arent many sets out, and mine are fresh :)

thanks
Otsikko: Re: smiley sets
Kirjoitti: codenaught - syyskuu 30, 2007, 03:11:41 IP
Perhaps it might help to see how existing smiley sets are packaged. :)

http://custom.simplemachines.org/mods/index.php?mod=488
http://custom.simplemachines.org/mods/index.php?mod=77
Otsikko: Re: smiley sets
Kirjoitti: Jade Elizabeth - syyskuu 30, 2007, 04:26:22 IP
:S

god is there a manual?!


like a step by step thing cause i dunno how to write all that coding....or how to do what ever they did with the smiley images :S
Otsikko: Re: smiley sets
Kirjoitti: codenaught - syyskuu 30, 2007, 04:41:04 IP
Okay I shouldn't have linked to the Free Smileys one as that is not a true smiley pack.

Take a look at how it is done for Lots-O-Smileys, all smileys are placed in a directory.

Then you include a file called package-info.xml so it can be installed via the package manager. The contents of the file would look something like this (adapted from Lots-O-Smileys):

<?xml version="1.0"?>
<package-info xmlns="A lot of smileys" xmlns:smf="http://www.simplemachines.org/">
<!-- For the id, always use something unique - put your name, a colon, and then the package name. -->
<id>yourName:Mod_Package_Name</id>
<!-- Below should be the name of this package. -->
<name>Smiley_Pack_Name</name>
<!-- The version of this modification.  Keep it numeric so PHP can tell that old < new. -->
<version>1.0</version>

<!-- Type, one of: modification, avatar, language. -->
<type>modification</type>

<!-- Installation, the key part of this file. -->
<install>
<require-dir name="your_smiley_directory_name" destination="$smileysdir" />
        </install>

<!-- Don't forget something to make it uninstallable! -->
<uninstall>
                <remove-dir name="$smileysdir/your_smiley_directory_name" />
        </uninstall>
</package-info>


You can then create a .zip with the directory of the smileys and that file in it.
Otsikko: Re: smiley sets
Kirjoitti: Jade Elizabeth - syyskuu 30, 2007, 04:47:05 IP
okay awesome

when i install smileys, they have their own codes already (the short keys)
do i need to do that??
(if so, how)
Otsikko: Re: smiley sets
Kirjoitti: Jade Elizabeth - syyskuu 30, 2007, 05:55:30 IP
<?xml version="1.0"?>
<package-info xmlns="Alunny Blue Smilies" xmlns:smf="http://www.simplemachines.org/">
<!-- For the id, always use something unique - put your name, a colon, and then the package name. -->
<id>Alundra:Alunny_Blue_Smilies</id>
<!-- Below should be the name of this package. -->
<name>Alunny_Blue_Smilies</name>
<!-- The version of this modification.  Keep it numeric so PHP can tell that old < new. -->
<version>1.0</version>

<!-- Type, one of: modification, avatar, language. -->
<type>modification</type>

<!-- Installation, the key part of this file. -->
<install>
<require-dir name="AlunnyBlueSmilies" destination="$smileysdir" />
        </install>

<!-- Don't forget something to make it uninstallable! -->
<uninstall>
                <remove-dir name="AlunnyBlueSmilies" />
        </uninstall>
</package-info>


so would that work??
assuming the folder i put the smilies in is called "AlunnyBlueSmilies"?
Otsikko: Re: smiley sets
Kirjoitti: codenaught - syyskuu 30, 2007, 06:54:48 IP
It looks about right. Except, make this:

                <remove-dir name="AlunnyBlueSmilies" />

This:

                <remove-dir name="$smileysdir/AlunnyBlueSmilies" />

As for custom codes, you really should use the same codes as a base to start off with. That way a smiley being used for one set would also be shown for another. If you have some additional smileys though that would then use extra codes, then I suppose you could include a database install file to add those codes to the database.
Otsikko: Re: smiley sets
Kirjoitti: Jade Elizabeth - syyskuu 30, 2007, 07:02:08 IP
hmmm good point

so where exactly are the keycodes stored? i mean, when i install a pack, like lots o smileys,  it makes it a set and has premade codes right?
(it did when i installed sarcasmics im sure....wait was that cause the smilies had the same name as the defaults?)

is a database install file easy to make?
Otsikko: Re: smiley sets
Kirjoitti: Scubasjl18 - lokakuu 02, 2007, 05:38:23 AP
Cant wait to see these smilies I need some for my new forum and I'm sure the default will not be enough.
Otsikko: Re: smiley sets
Kirjoitti: Jade Elizabeth - lokakuu 02, 2007, 06:22:08 IP
okay i have everything in a folder, and i have the package info file....now what?
Otsikko: Re: smiley sets
Kirjoitti: codenaught - lokakuu 02, 2007, 07:02:30 IP
Do you know how to zip up files into an archive. I personally recommend 7-Zip (http://www.7-zip.org/), although you are free to use whatever you like.

As for the codes, I just looked at Lots of Smileys, and it looks like it will automatically make the codes for each smiley the same as the filename of the smiley, so you don't necessarily have to do anything.
Otsikko: Re: smiley sets
Kirjoitti: Jade Elizabeth - lokakuu 02, 2007, 09:23:56 IP
Lainaus käyttäjältä: akabugeyes - lokakuu 02, 2007, 07:02:30 IP
Do you know how to zip up files into an archive. I personally recommend 7-Zip (http://www.7-zip.org/), although you are free to use whatever you like.

As for the codes, I just looked at Lots of Smileys, and it looks like it will automatically make the codes for each smiley the same as the filename of the smiley, so you don't necessarily have to do anything.

so winking tongue should be called ";p"?
what do i do once i .rar'ed or ziped or what evered them?