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

Home » FUDforum » FUDforum Suggestions » Maximum smileys
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Maximum smileys [message #13870 is a reply to message #13865] Wed, 29 October 2003 22:02 Go to previous messageGo to previous message
AzaToth is currently offline  AzaToth   Sweden
Messages: 125
Registered: October 2003
Karma:
Senior Member

ok, but perhaps just render 3 smileys and skip render the rest like:
Embarassed Embarassed Embarassed ·:blush:

so the users realise that a lot of smileys is not necicary Smile

And I'm thinking, why traverse?
why not:
<?php
$smileys = preg_match_all("#:(.*?):#is", $msg);
if($smileys > (3 + (strlen($msg)-$smileys)/$smileys)) {
print "Too many smileys, try again";
}
?>

[Updated on: Wed, 29 October 2003 22:04]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Disable Tree View
Next Topic: default theme css split
Goto Forum:
  

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

Current Time: Fri Nov 22 05:39:35 GMT 2024

Total time taken to generate the page: 0.04206 seconds