Furry stuff, oekaki stuff, and other stuff.
You are not logged in.
Pages: 1
Since I'm such a modification person, I like to share some (useful) modifications with you guys. ^__^ For those who have made custom smileys (you can find the smileys in the resource/hacks.php file. Also look here for troubleshoot: http://www.ninechime.com/forum/viewtopic.php?id=501 ) you might find you added too many smileys and they're taking up a big, bad huge line that looks trouble. Here's a nifty code that limits the number of smileys on one line and adds a <br /> tag after x amount of smileys:
Find this in the comment.php file (line 379):
<? 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 coding:
<? if ($cfg['smilies'] == 'yes') { $x = 0; 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?>" /> <? if($x == 20) // Edit the number above to maximum # of smileys you want to display on one line { echo '<br/>'; $x = 0; } $x++;} ?> <br /> <? } ?>
This code will, by default, display 20 smileys in one line, then it adds a <br /> tag and continue the smileys on a new line till there are 20 again, and so on and so forth. It's great if you've up to 50 smileys. ^^
For those who want to add smileys to the Mailbox, you can add the same code as above. First, open mailsend.php and find this line (line 97):
<textarea name="body" cols="40" rows="10" class="multiline" id="body" style="width:600px;"><? if ($mode == 'reply') echo "\n\n".$langop_orgmessage.": \n".$row['body'];?></textarea>
REPLACE it with this code:
<? if ($cfg['smilies'] == 'yes') { $x = 0; foreach ($smilies_group as $s_code => $s_img) { ?> <img onclick="insertText('body', ' <?=$s_code?> ');" onmouseover="style.cursor='hand'" src="./smilies/<?=$s_img?>" alt="<?=$s_code?>" /> <? if($x == 20) { echo '<br/>'; $x = 0; } $x++;} ?> <br /> <? } ?> <textarea name="body" cols="40" rows="10" class="multiline" id="body" style="width:600px;"><? if ($mode == 'reply') echo "\n\n".$langop_orgmessage.": \n".$row['body'];?></textarea>
These are some great codes for people who use a lot of smileys and also for people who'd like to add smileys to the mailbox. ^^ Please enjoy! If it doesn't work for you somehow, just post here.
Last edited by Sadil (01-26-2007 15:17:57)
Offline
Pages: 1