Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

smiley sets

Aloittaja Jade Elizabeth, syyskuu 30, 2007, 12:13:45 IP

« edellinen - seuraava »

Jade Elizabeth

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
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

codenaught

Dev Consultant
Former SMF Doc Coordinator

Jade Elizabeth

: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
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

codenaught

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.
Dev Consultant
Former SMF Doc Coordinator

Jade Elizabeth

okay awesome

when i install smileys, they have their own codes already (the short keys)
do i need to do that??
(if so, how)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Jade Elizabeth

<?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"?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

codenaught

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.
Dev Consultant
Former SMF Doc Coordinator

Jade Elizabeth

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?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Scubasjl18

Cant wait to see these smilies I need some for my new forum and I'm sure the default will not be enough.

Jade Elizabeth

okay i have everything in a folder, and i have the package info file....now what?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

codenaught

Do you know how to zip up files into an archive. I personally recommend 7-Zip, 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.
Dev Consultant
Former SMF Doc Coordinator

Jade Elizabeth

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, 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?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: