Additional Info
Type
Package ID
UTM-MaKaVeLi:PopupXboxGamerTag
First Created
June 06, 2008, 06:39:50 PM
Last Updated
October 19, 2010, 04:01:09 PM

Advanced Popup Xbox Gamertag v1.2

Adds a Xbox Gamer Tag. When you mousehover over the users Xbox name their gamertag will appear.
Compatible With 1.1.5, 1.1.9
Latest version v1.2
Downloads 31,664
Reviews 0
Rating 0/5
Subscribers 3
License (View License)
Author(s)
An updated version of this mod for 2.0 can be found here: http://custom.simplemachines.org/mods/index.php?mod=2769



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



Introduction
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.

Compatibility
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.

Features
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.)

Installation
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
/Themes/{Your_Theme_Name}/index.template.php
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

/Themes/{Your_Theme_Name}/Display.template.php
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
// PXBGT MOD
if ($modSettings['enable_pxbgt_post'] && !empty($modSettings['enable_pxbgt_userbar']) && !empty($message['member']['options']['pxbgt']))
{
echo '
<img src="http://card.mygamercard.net/'.$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">
'.$txt['pxbgt_txt2'].'
               ', $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, \'http://card.mygamercard.net/'.$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
1.0
- Initial release. On request here
1.1
- Added new features.
1.2
- Updated compatibility to 1.1.9. (No changes needed)
- Added New Xbox Live icon.
PXBGT.tar.gz
53.31 KB
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: