FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » all smilies fit in message-write-window
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
all smilies fit in message-write-window [message #17233] Sat, 20 March 2004 02:00 Go to next message
AzaToth is currently offline  AzaToth   Sweden
Messages: 125
Registered: October 2003
Karma: 0
Senior Member

change line 25 in post_common.tmpl to
<td valign=top><div class="smiley">{TEMPLATE-DATA: data}</div></td></tr>

then add to forum.css.tmpl
div.smiley {
        width: auto;
        overflow: auto;
        white-space: nowrap;
}


and voila, I have now 130 smilies fit into a rolling bar in message-window.
Re: all smilies fit in message-write-window [message #17237 is a reply to message #17233] Sat, 20 March 2004 18:19 Go to previous message
AzaToth is currently offline  AzaToth   Sweden
Messages: 125
Registered: October 2003
Karma: 0
Senior Member

off course it won't work in ie, then change row 27 in post_common.php.t to:
<?php
if(strpos($_SERVER['HTTP_USER_AGENT'], "MSIE"))
                {
                        
$c = uq('SELECT code, descr, img FROM {SQL_TABLE_PREFIX}smiley ORDER BY vieworder LIMIT 25');
                }
                else
                {
                        
$c = uq('SELECT code, descr, img FROM {SQL_TABLE_PREFIX}smiley ORDER BY vieworder LIMIT '.$GLOBALS['MAX_SMILIES_SHOWN']);
                }
?>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Admin controll-panel UI-overhaul
Next Topic: pop3-mailinglist, without imap
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 22:54:03 GMT 2024

Total time taken to generate the page: 0.02387 seconds