SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    And your point is.... redgoals's Avatar
    Join Date
    Feb 2002
    Location
    Birmingham, UK
    Posts
    496
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy oi! only five smilies per post...how?

    is there a function in php to limit the amount of smilies that can be entered into a form, or will it have to be a javascript approach?
    http://redgoals.com ... my site ... nuff said

  2. #2
    Custom User Title v1.0 FireFly's Avatar
    Join Date
    Aug 2001
    Posts
    363
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do you parse smilies? (i.e turning them into images)

    Whichever function you are using, you can just do this:
    PHP Code:
    if (substr_count(parseSmilies($text), '<img')>5) {
      
    // more than 5 smilies



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •