...

View Full Version : wraping Function around code



ajloun
08-27-2009, 09:15 PM
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

censor($comment)

Need to wrap around the code below which print out the comment.

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

bacterozoid
08-27-2009, 09:18 PM
I'm assuming "makeTareaData4Show()" echos out a comment and returns that comment as well. Just do this:


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

ajloun
08-27-2009, 10:03 PM
thx that works Fine . as Extra :) is there any other ways



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum