View Single Post
Old 22 Aug 2020, 13:52
ART's Avatar
ART ART is offline
Join Date: Feb 2002
Originally Posted by vbSuperfan View Post
I coding a small, simple light-weight PHP application (that is, I would like to avoid having to make it a full fledged "product"/plugin for vBulletin 5 Connect at this point) which must access the userid (and subsequently, username and usertitle) of the currently logged-in user in the vBulletin 5 Connect instance that is running on the same domain (that is, my PHP app will have access to the cookies of this vBulletin instance too).

My question is, what would be the simplest and most efficient way to get hold of this currently-logged-in-user-in-vBulletin information from this stand-alone PHP application of mine?

This is working for me (vb562 using vb API) look below. When calling the API the currently logged in user session also gets updated The sessions are stored in the database (prefix_session)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now You could grab the usertitle from $user_info array
What's brewing in Poland? Find out on (in Polish)
Reply With Quote