Quote:
Originally Posted by checkmail
im trying to make a plugin this isnt it but its an example of what wont work!
Code:
$string = $vbulletin->GPC['message'];
$Pos = strpos($string,"hello");
$vbulletin->GPC['message'] = $Pos;
it wont display the postion if i enter in hello as a message. this is for
Hook Location : newthread_start
what am i doing wrong?
|
That code is setting the $vbulletin->GPC['message'] to the first numerical occurence of "hello" in the $string.
It is not echoing or displaying anything.