Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 05 Jan 2009, 02:47
footose footose is offline
Join Date: Mar 2006
UserID in private message

I'm having an issue where the userid in private messages cannot be access by using...


.. instead of returning the poster's user id, it returns the ID of the person that you are sending the message too....

THis kind of wrecks my "plugin" because I use $post[userid] to put a link under the username of the postbit using the $template_hook[postbit_userinfo_left] hook.

Is there a "generic" way to get the userid from the poster regardless of where they are on the site?
Reply With Quote
Old 05 Jan 2009, 15:50
Kirk Y's Avatar
Kirk Y Kirk Y is offline
Join Date: Apr 2005
Use $bbuserinfo (or $vbulletin->userinfo if inside a plugin). This will always return the currently viewing user's information.
Former Staff Member

Please feel free to re-use any of the code in any of my projects submitted to, so long as original attribution is retained.
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini Mods GS - Visitor Message Private Message Notification 1.0 ForumsMods vBulletin 3.7 Add-ons 10 27 Oct 2011 11:56

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 20:16.

Layout Options | Width: Wide Color: