PHP Code:
$post['userid']
is what i'm using and it only works for posts.
PHP Code:
$post['fromuserid']
would probably work but only for PMs.
I suppose if there's a way to determine whether a PM or Post is being viewed in the plugin, I could assign the proper variable.
BUT still: why is vBulletin using MY userid for $post['userid'] in the plugin and only for PMs? It doesn't really make any sense.