Log in

View Full Version : Display post owners userid


Riceman
10-17-2009, 11:39 AM
I need to know how to display the userid of the owner of a post. I currently have:
$vbulletin->templatecache['postbit_legacy'] = str_replace("posterID",$vbulletin-userinfo['userid'],$vbulletin->templatecache['postbit_legacy']);, however this is producing the userid of the person viewing the thread. I would rather the result be the userid of the owner of each individual post. Any help would be greatly appreciated.

Regards,

Riceman

Lynne
10-17-2009, 02:46 PM
The userid of a post is $post['userid']

Riceman
10-18-2009, 06:07 AM
Thanks Lynne, that helped me find my final solution, though I was a bit off-track. All good now.