SMF Mod Site

This is an outdated mod that is no longer supported by its author. Use at your own risk
Mod Name:
Advanced Popup Xbox Gamertag
Created By:
First Created:
June 06, 2008, 06:39:50 PM
Last Modified:
October 19, 2010, 04:01:09 PM
Latest Version:
Compatible With:
1.1.5, 1.1.9
Total Downloads:

Download this mod

PXBGT.tar.gz (53kB) [3010]
Manual Install Instructions for SMF

Below are some preview images of what the mod looks like when being used


An updated version of this mod for 2.0 can be found here:

Advanced Popup Xbox Gamertag V1.2
By KiLLuMiNaTi-7- 

Adds a Xbox Gamer Tag to the users profile

When you mousehover over there gamertag name a popup will appear with there Xbox Gamer Tag.

I've only tested it on SMF 1.1.4 and SMF 1.1.5 & 1.1.9. So i don't no if it work on any other version's below 1.1.4. It does not work on 2.0 Public Beta yet.

These features can be found in Admin -> Features and options -> Xbox GamerTag
- Display in posts     
- Display in private message's    
- Display as a gamercard (image). This wont look good on most themes you will have to do manual edits. Which i cannot help you with.    
- Display as plain text
(Ex PSN ID: Name)
- Display as a Xbox icon
(When you hover over. It will popup with a Xbox gamercard.)

Install the package to install on the default core theme/Babylon and any another theme that does NOT have a custom Profile.template.php or a custom Display.template.php or if you have copied it over from the theme it is based on, or the default theme.

Installation on custom themes
All custom themes need these edit!
Code: (Find) [Select]
function template_main_above()
global $context, $settings, $options, $scripturl, $txt, $modSettings
Code: (Add After) [Select]
, $boardurl
Code: (Find) [Select]
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
Code: (Add after) [Select]
<script type="text/javascript" src="', $boardurl, '/pxbgt/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>
Copy the image (xbl.png) included in the package to your custom theme image directory.

Theme's that have a custom Profile.template.php or a custom Display.template.php. Or if you have copied Profile.template.php or/and custom Display.template.php over from the theme it is based on, or the default theme. Will require these manual edits.

Run the installer first and if you can't see the Xbox gamertag field in your profile do these edits. Only do these edits if you have custom template files i.e If you have copied them from the default theme

Code: (Find) [Select]
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';
Code: (Add After) [Select]
if ($modSettings['enable_pxbgt_post'] && !empty($modSettings['enable_pxbgt_userbar']) && !empty($message['member']['options']['pxbgt']))
echo '
<img src="'.$message['member']['options']['pxbgt'].'.png" alt="" /></a>';
// If they dont want the userbar just show plain text.
if ($modSettings['enable_pxbgt_plain'] && !empty($modSettings['enable_pxbgt_post']) && !empty($message['member']['options']['pxbgt']))
echo '
<div class="smalltext">
               ', $message['member']['options']['pxbgt'], '</div>';
if ($modSettings['enable_pxbgt_popup'] && !empty($message['member']['options']['pxbgt']))
echo '
<a href="javascript:void(0);" onmouseover="return overlib(\'\', WIDTH, 199, HEIGHT, 135, BACKGROUND, \''.$message['member']['options']['pxbgt'].'.png\', PADX, 10, 10, PADY, 10, 10);" onmouseout="return nd();" title=""><img border="0" src="' . $settings['images_url'] . '/xbl.png" alt="' . $message['member']['options']['pxbgt'] . '" /></a>';

Change Log
 - Initial release. On request here
 - Added new features.
 - Updated compatibility to 1.1.9. (No changes needed)
 - Added New Xbox Live icon.