Advanced Popup Xbox Gamertag

Started by KiLLuMiNaTi-7-, June 16, 2008, 03:12:42 PM

Previous topic - Next topic

KiLLuMiNaTi-7-

Above it the first "echo"

It might effect load times but i really doubt it will have any effect. I just put there just to cover myself tbh. Just incase someone else is having the same problem and wants to use that code. But if you notice anything you know what it is. The actual xbox mod is fine though no hardcoded code ;)

fext

#41
Cheers bro - it works fine - could be a modification for a later date?

I also hardcoded a link for the profil so other members can link directly to xbox.com to add that user to their FL.

I have attached an image below so you can see what result I have :)

fext

Hey bro - I made a few modifications to my site and have managed to put the avatar on the member profile instead of within the posts.

I have one qwestion: When there is a user who has NO gamertag filled in it just shows nulled information - could you help me get it working so that the feilds will only show when information is filled in - such as how it works on the posts?

Here is a link to my profile on my site: http://consoleninjas.co.uk/forum/index.php?action=profile;u=1;sa=summary

As you can see it is working but here is a link to a profile with no gamertag: http://consoleninjas.co.uk/forum/index.php?action=profile;u=7

I edited the code to a point where it stoped working - something about ' being excaped by \ ??

I have attached both a working and non working copy of my profile template.

Cheers for your help dude!


fext

Quote from: Youngiiie on March 16, 2009, 03:24:47 PM
Hey bro - I made a few modifications to my site and have managed to put the avatar on the member profile instead of within the posts.

I have one qwestion: When there is a user who has NO gamertag filled in it just shows nulled information - could you help me get it working so that the feilds will only show when information is filled in - such as how it works on the posts?

Here is a link to my profile on my site: http://consoleninjas.co.uk/forum/index.php?action=profile;u=1;sa=summary

As you can see it is working but here is a link to a profile with no gamertag: http://consoleninjas.co.uk/forum/index.php?action=profile;u=7

I edited the code to a point where it stoped working - something about ' being excaped by \ ??

I have attached both a working and non working copy of my profile template.

Cheers for your help dude!

In addition to the above I also need the space fix to work - at the moment it currently shows a + as before - I tried to fix this using the code you provided before but I get the tamplate parse error - the example i am talking about can be seen in the non working display template attached to previous post.

Cheers bro.

KiLLuMiNaTi-7-

Hope this is what you wanted mate :)

I didn't get chance to test it sorry, let me know if it chucks up an error.

I edited the non-working one.




fext

Hey dude,

Thanks for having a stab at it!

No errors but nothing shows up for gamertag info now - its like it has been wiped out? Could be something to do with the admin enabled / gamertag info check?

//XBLGT Mod.
$trans = array("+" => "%20", " " => "%20");
$message['member']['options']['pxbgt'] = strtr($message['member']['options']['pxbgt'], $trans);
//Check to see if the admin has enabled the mod and to check if the member has entered a gamertag or not
if ($modSettings['enable_pxbgt_post'] && !empty($modSettings['enable_pxbgt_userbar']) && !empty($message['member']['options']['pxbgt']))
{
echo '

<tr><td><b>XBL Gamercard:</b></td> <td><img src="http://card.mygamercard.net/'.$context['member']['options']['pxbgt'].'.png" alt="XBL gamercard of '.$context['member']['options']['pxbgt'].'" /></a></td>
</tr><tr>
<td><b>Add to XBL friends:</b></td> <td><a title="Send a Friend Request" href="http://live.xbox.com/en-GB/profile/FriendsMgmt.aspx?ru=%252fen-GB%252fprofile%252fprofile.aspx%253fpp%253d0%2526GamerTag%253d'.$context['member']['options']['pxbgt'].'&amp;gt='.$context['member']['options']['pxbgt'].'&amp;act=Add" target="_blank">Send a Friend Request</a></td>
</tr>';
}

echo '<tr>
<td><b>', $txt[69], ': </b></td>
<td>';


If there something missing maybe?

KiLLuMiNaTi-7-

I think you have to enable some of the options in the admin panel to show it, anyway do this to get rid of that check

Find:

   //Check to see if the admin has enabled the mod and to check if the member has entered a gamertag or not
            if ($modSettings['enable_pxbgt_post'] && !empty($modSettings['enable_pxbgt_userbar']) && !empty($message['member']['options']['pxbgt']))
            {


Replace:

   //Check to see if the admin has enabled the mod and to check if the member has entered a gamertag or not
            if (!empty($message['member']['options']['pxbgt']))
            {


Find:

//Added check to see if the admin has enabled the mod and to check if the member has entered a gamertag or not
if ($modSettings['enable_pxbgt_post'] && !empty($modSettings['enable_pxbgt_userbar']) && !empty($message['member']['options']['pxbgt']))
{


Replace:

//Added check to see if the admin has enabled the mod and to check if the member has entered a gamertag or not
if (!empty($message['member']['options']['pxbgt']))
{


If that still doesn't do what you wanted, contact me through PM ;)

fext

Sent you a PM bro - cheers for the help on this.

Giiyom

Will it works if I'm using a different language pack (french)?
And would you recommend me to install it manually?
www.QcStarcraft.com
www.QuebecSF.com
[SMF 1.1.11 / SimplePortal 2.3.1]

KnottyMars

Great work on the mod, I love the addition and it works like a champ.

I noticed another person asked if there was any possibility of have some sort of link that would add that persons GT to your friends list.

Is this something I can add to it? or maybe it was added already?

We have a gaming community (www.world-racers.com) and it would be great to click on their GT and add them as a friend straight away.

Cheers!!

fext

Quote from: KnottyMars on March 25, 2009, 05:09:48 PM
Great work on the mod, I love the addition and it works like a champ.

I noticed another person asked if there was any possibility of have some sort of link that would add that persons GT to your friends list.

Is this something I can add to it? or maybe it was added already?

We have a gaming community (www.world-racers.com) and it would be great to click on their GT and add them as a friend straight away.

Cheers!!

Hi,

Take a look at my site - All the modifications I made were custom edits tailored to the design of my site - the maker of the mod helped me with issues I encountered - everything works fine for me.

seeson

#51
I have this mod installed on a 1.1.8 SMF forum and would like to make it so that the gamertag (as plain text) is a link to add to friends friends list. Can somebody please point me in the right direction?

I.E. XBLGT: Seeson [nofollow]

KiLLuMiNaTi-7-

Quote from: seeson on April 17, 2009, 07:27:45 PM
I have this mod installed on a 1.1.8 SMF forum and would like to make it so that the gamertag (as plain text) is a link to add to friends friends list. Can somebody please point me in the right direction?

I.E. XBLGT: Seeson

Install the mod.

Open up your display.template.php in your theme directory (if it isn't there open up the display.template.php in the /default folder)

Find:

// 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'] . '/xbgt.gif" alt="' . $message['member']['options']['pxbgt'] . '" /></a>';
}


Replace with:

// 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'].'
               <a href="http://live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=', $message['member']['options']['pxbgt'], '">', $message['member']['options']['pxbgt'], '</a></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'] . '/xbgt.gif" alt="' . $message['member']['options']['pxbgt'] . '" /></a>';
}


and sorry for the late reply!

seeson

#53
Thank you very much! It works :)

fext

Sorry I never helped with this - I made alot of global changes to the files that are mentioned in this thread nad did not want to post those changes up as they might have messed up the site being modified.

Glad you finally got it working Seeson :)

h4nbury

hey i really want this on 1.1.9, please can it be updated?

KiLLuMiNaTi-7-

@h4nbury. Ive tested it and it works fine on a fresh install of 1.1.9. Let me know if you have any error's.

Updated mod to 1.2

- Updated compatibility to 1.1.9. (No changes needed)
- Added New Xbox Live icon.

Ive started work on upgrading this to 2.0 RC1 when i had some free time, hopefully it will be done sometime soon and will only need a few edits done to it when 2.0 becomes final.

h4nbury

well i still cant get it working on it, and now i have updated to 1.1.10, please can you update it?

d58e7

#58
I installed it fine with the package manager, but for some reason when I scroll over the icon nothing happens (Same thing happens when I click it) What could be causing this?

smp420

any way to make it so it shows without putting the mouse over the icon
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Advertisement: