NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 08-15-2007 08:07:04

acwitness
Member

adding smilies

I'm trying to add some new smilies but not having any luck. I edited the hacks.php file like this:

                        ':crazy:'    => 'crazy.gif',
            ':what:'     => 'what.gif',
            ':gamer:'    => 'gamer.gif',
            ':kitty:'    => 'kitty.gif',
                        ':angel:'    => 'angel.gif',
            ':barf:'     => 'barf.gif' // No comma on last entry

(I added the kitty and angel)
Uploaded hacks.php into the resource folder, and uploaded the two images into the smilies folder. But when I type :kitty: or :angel:, the smilies don't work. Am I missing something?

Offline

#2 08-16-2007 03:50:38

Waccoon
Administrator

Re: adding smilies

For performance reasons, the smilies in hacks.php are ignored unless you change the value of USE_SMILE_HACK.

Please note that the line define ('USE_SMILE_HACK', 0); must be set to 1.  No other number will work, so it must look like this:

Code:

define ('USE_SMILE_HACK', 1);

Offline

#3 08-16-2007 06:39:47

acwitness
Member

Re: adding smilies

Thanks Waccoon - the new ones are working now. But the original ones were working before I changed the 0 to 1. Is that something weird?

Offline

#4 08-17-2007 02:33:41

Waccoon
Administrator

Re: adding smilies

Nope.  The smilies in the "hacks.php" file replace the ones in "niftytoo.php".  This is done so if the NiftyToo script is updated in a future version of the board, your custom smilies won't be lost.

A smiley editor would make more sense, of course.  wink

Offline

#5 08-17-2007 10:23:18

acwitness
Member

Re: adding smilies

ahhh... now I get it  tongue

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB