Not sure if you found what your looking for yet, but I've added Smilies manually to the scripts for my 5.47e board instead of adding another hack for them.
Simply open the following three files and look for each of these occurrences and add any additional lines for each new smilie.
In
edit.cgi find:
[/code]Copy the entire line and paste it underneath.
Rename [b]eek.gif[/b] in the pasted line to the new smilie file name.
Rename [b]:eek:[/b] in the pasted line to the new text to type.
In [i]postings.cgi[/i] find:
[code]
Copy the entire line and paste it underneath.
Rename
eek.gif in the pasted line to the new smilie file name.
Rename

in the pasted line to the new text to type.
In
ubblibrary.pl find:
[code][/code]Copy the entire line and paste it underneath.
Rename
eek.gif in the pasted line to the new smilie file name.
Rename

in the pasted line to the new text to type.
Upload the new smilies to your NonCGI directory and edit.cgi, postings.cgi, and ubblibrary.pl to your CGI directory.
Make sure you make backup copies of
edit.cgi,
postings.cgi, and
ubblibrary.pl. Also update your smilies.html page to reflect the new smilie additions.