NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 04-10-2008 12:45:47

ellensama
New member

Smilies

I want to add more smilies but I don't want them to all show up on the comment screen so I made a pop up link to a page showing all the smilies but my question is how to I add new smilies with out having all that I add to the smilies code in niftytoo show up on the comments page?

Offline

#2 04-11-2008 02:39:29

Waccoon
Administrator

Re: Smilies

In "comment.php", look for this code:

Code:

<?
if ($cfg['smilies'] == 'yes') {
    foreach ($smilies_group as $s_code => $s_img) {
?>
                    <img onclick="insertText('comment', ' <?=$s_code?> ');" onmouseover="style.cursor='hand'" src="./smilies/<?=$s_img?>" alt="<?=$s_code?>" />
<?
    }
?>
                    <br />
<?
}
?>

...and replace it with this:

Code:

<?
// Number of smilies to show
$smilies_quantity = 23;

if ($cfg['smilies'] == 'yes') {
    $q = count ($smilies_group);
    if ($q > $smilies_quantity) {
        $q = $smilies_quantity;
    }

    reset ($smilies_group);
    for ($i=0; $i < $q; $i++) {
        list ($s_code, $s_img) = each ($smilies_group);
?>
                    <img onclick="insertText('comment', ' <?=$s_code?> ');" onmouseover="style.cursor='hand'" src="./smilies/<?=$s_img?>" alt="<?=$s_code?>" />
<? } ?>
                    <br />
<? } ?>

Then, type in a new value for "$smilies_quantity".  This will allow you to adjust the number of smilies displayed.  In the "hacks.php" file, move all the smilies you don't want displayed to the end of the smilies array.

Wacintaki 1.3.12 will have an official solution for this in the "hacks.php" file.

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB