Hello,
I am trying to check if a string is in the topic title of a new thread, Then modify it.
PHP Code:
if (stristr('blah', $newpost['title']))
{
$newpost['title'] = 'new blah';
}
(blah is the string to find in this example)
Im doing this in newthread.php and the code above only works under these conditions:
1) blah is the first word in the subject field
2) The subject field contains only blah
3) Nothing is appended to blah
I have tried quite alot of different methods with no luck, Any help would be appreciated.