Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    215
    Thanks
    74
    Thanked 0 Times in 0 Posts

    wraping Function around code

    Hello

    It been a while since i start looking for censor word filter , thx zangeel finaly Got one but stuck on how to wrap the function around the comment code .

    this is the Function
    PHP Code:
    censor($comment
    Need to wrap around the code below which print out the comment.
    PHP Code:
        $message['comment'] = $myts->makeTareaData4Show($myrow['comment'],0); 

  • #2
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    I'm assuming "makeTareaData4Show()" echos out a comment and returns that comment as well. Just do this:

    PHP Code:
    $message['comment'] = $myts->makeTareaData4Show(censor($myrow['comment']),0); 

  • Users who have thanked bacterozoid for this post:

    ajloun (08-27-2009)

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Posts
    215
    Thanks
    74
    Thanked 0 Times in 0 Posts
    thx that works Fine . as Extra is there any other ways
    Last edited by ajloun; 08-27-2009 at 11:17 PM.


  •  

    Posting Permissions

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