PDA

View Full Version : Show Thread Enhancements - XBOX gamercard and NXE avatar in postbit


JAnders
11-20-2008, 10:00 PM
This is a simple modification I created for my forum and I believe someone may find it handy.

I will display the Avatar's thumbnail and gamertag on the users posts. if you place the mouse over the avatar it'll show the avatar and the gamercard on the gamertag. depending on which you place the cursor over.

IMPORTANT:
This works with gxbox live (https://vborg.vbsupport.ru/showthread.php?t=139958&highlight=gxbox+live) requires it to be installed.


TO INSTALL:
Go the admin panel. Select Styles and templates --- Style Manager. Find postbit_legacy

Find the following:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

add below:
<if condition="$post[field#]"><fieldset><legend>XBox LIVE Gamercard</legend>
<div>
<a href="http://avatar.xboxlive.com/avatar/$post[field#]/avatar-body.png" target="_blank" onmouseover="gXBL_show('nxeavatar','$post[field#]');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="http://avatar.xboxlive.com/avatar/$post[field#]/avatarpic-s.png" style="border: 1px solid gold;" /></a>
<a href="http://gamercard.xbox.com/$post[field#].card" target="_blank" onmouseover="gXBL_show('gamercard','$post[field#]');" onmouseout="return gXBL_hide();">$post[field#]</a></fieldset>
</if>
Make sure to replace [field#] with the field number where gamertags are stored.

Demo: www.fifamexico.net/foros

Update: v.1.1
fixed missing fieldset closing tag.

Gamelobby
11-23-2008, 07:28 AM
I'm using the "Excellent Postbit Legacy" Mod...
https://vborg.vbsupport.ru/showthread.php?t=189186




I got this Error..
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/content/m/i/l/milo327/html/Forum/includes/adminfunctions_template.php(3729) : eval()'d code on line 96



My code looks like this..
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>



Would it go in here..
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]Here</div>
</div>



Here is that whole section..
<!-- ##### /EDIT AVATAR FIELDS ##### -->


<div class="smallfont">
&nbsp;<br />
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>



</div></div>

</td>


<!-- ##### GRAY GRADIENT AND PADDINGS ##### -->

I really like this mod, & want to use it if it is possible..
Thanks for the help in advance.

JAnders
11-23-2008, 05:11 PM
FIELDS ##### -->


<div class="smallfont">
&nbsp;<br />
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
<if condition="$post[field9]"><fieldset><legend>XBox LIVE Gamercard</legend>
<div>
<a href="http://avatar.xboxlive.com/avatar/$post[field9]/avatar-body.png" target="_blank" onmouseover="gXBL_show('nxeavatar','$post[field#]');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="http://avatar.xboxlive.com/avatar/$post[field#]/avatarpic-s.png" style="border: 1px solid gold;" /></a>
<a href="http://gamercard.xbox.com/$post[field#].card" target="_blank" onmouseover="gXBL_show('gamercard','$post[field#]');" onmouseout="return gXBL_hide();">$post[field#]</a></fieldset>
</if></div>
</div>



</div></div>

</td>


<!-- ##### GRAY GRADIENT AND PADDINGS ##### -->


try it this way...

I see some extra closing div tags but since I'm not seeing the full code it may be they are part of something else...

xzibit
11-24-2008, 01:13 PM
hi !

can you take the new nxe gamecard ??

https://vborg.vbsupport.ru/external/2008/11/13.png

JAnders
11-24-2008, 03:51 PM
I'll think about it, mainly because the nxe camercards are not from the xbox site, and the mygamercard site is less reliable than xbox.

Gamelobby
11-30-2008, 08:44 AM
Nope.. now i get this error code:
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/content/m/i/l/milo327/html/Forum/includes/adminfunctions_template.php(3729) : eval()'d code on line 97

JAnders
12-02-2008, 03:44 PM
I've not seen the error before.... do you have gxbox live installed on your vb?

Gamelobby
12-06-2008, 06:25 AM
The Leaderboard..?
Yup.. www.gamelobby.com/Forum/gxboxlive.php

Gizmo99
12-14-2008, 10:01 AM
This is Mine

Notice This enables the Avatars show up in only certain forums :)

just change array(#) to array(1,2,3,4) for multi forums or array(1) for one :) remember to add the </if> at the end



<if condition="in_array($forum[forumid], array(#))">




<!-- Xbox Live Hack -->
<if condition="in_array($forum[forumid], array(#))">
<if condition="$post[field#]"><fieldset><legend>XBox LIVE Gamercard</legend>
<div>
<a href="http://avatar.xboxlive.com/avatar/$post[field#]/avatar-body.png" target="_blank" onmouseover="gXBL_show('nxeavatar','$post[field#]');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="http://avatar.xboxlive.com/avatar/$post[field#]/avatarpic-s.png" style="border: 1px solid gold;" /></a>
<a href="http://gamercard.xbox.com/$post[field#].card" target="_blank" onmouseover="gXBL_show('gamercard','$post[field#]');" onmouseout="return gXBL_hide();">$post[field#]</a></fieldset>
</if>
</if>
<!-- Xbox Live Hack -->

x YNWA x
12-18-2008, 07:05 PM
hack works fine but the avatar dosnt show over mouseover? any ideas?

JAnders
12-22-2008, 06:08 PM
avatar only the avatar doesn't show? or both the gamertag and avartar don't show on mouse over?

do they show in the gxboxlive hack?

Gold Jok3
09-19-2009, 08:09 AM
i'm using vbulletin 3.8.4

is this work?

Nephalim
09-19-2009, 07:37 PM
i'm using vbulletin 3.8.4

is this work?

Yes, it is working perfect in Our forum. Sorry it's brand new and not 'live' yet. But this Mod does work!

ONE IMPORTANT THING!!!!!!!
Once installed with the Xbox live leaderboard (which works too in 3.8.4) You have to go to >>>
Admin panel >>> Vbulletin options >>> Style and Language settings!

Change Use Legacy (Vertical) Postbit Template to "YES". And it will work instantly!!!:up:

FREAKIN' Cool mod!:D

Daryn
09-28-2009, 07:48 PM
Is it possible to just have the avatar and gamecard displayed without a mouseover?

zombietom
09-28-2009, 09:00 PM
Yes it is...i have it that way