MyBB Community Forums

Full Version: Get session's data with js
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi !

I know who get this inf. in php: $mybb->user['username']; for example..
But, how can i get the name user in js?
Thx
You have to include some JavaScript in one of the templates, setting JavaScript variables to PHP variables.
(06-23-2016, 06:40 PM)laie_techie Wrote: [ -> ]You have to include some JavaScript in one of the templates, setting JavaScript variables to PHP variables.

Any example? I don't underestand D:
^ can be like this