MyBB Community Forums

Full Version: MYxbl v.2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, i've been looking around throughout my forum files looking for ideas that might show me or direct me in the right direction too pulling the users gamertag off the database and display it beside

Hello Again, Chaotic (User CP — Mod CP — Admin CP — Logout) **HERE**

The user CP displays the gamertag (member.php) but i cant figure out how it displays it. I also don't wanna use any hacky methods that could open security holes and possibly allow a skilled hacker into something they shouldn't be.

Could anyone direct me in the right direction please? Thanks ShyShy
You'd need to add a query to pull it as gamertags are stored in a separate table. You'd therefore need either a core edit or an extra function within the plugin that basically does the following:

$gamertag = $db->simple_select('xboxlive', 'gamertag', 'uid = '.$mybb->user['uid']);