NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

Post a reply

Write your message and submit
Options
Humanity test

What is eight + eight?

Go back

Topic review (newest first)

Waccoon
04-11-2008 02:39:29

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.

ellensama
04-10-2008 12:45:47

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?

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB