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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
all smilies fit in message-write-window [message #17233] Fri, 19 March 2004 21:00 Go to next message
AzaToth is currently offline  AzaToth   Sweden
Messages: 125
Registered: October 2003
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

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 13:19 Go to previous message
AzaToth is currently offline  AzaToth   Sweden
Messages: 125
Registered: October 2003
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

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']);
                }
?>
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Tue Oct 17 05:53:23 EDT 2017

Total time taken to generate the page: 0.00619 seconds