The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
XBOX gamercard and NXE avatar in postbit Details »» | |||||||||||||||||||||||||
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 requires it to be installed. TO INSTALL: Go the admin panel. Select Styles and templates --- Style Manager. Find postbit_legacy Find the following: Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] Code:
<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> Demo: www.fifamexico.net/foros Update: v.1.1 fixed missing fieldset closing tag. Show Your Support
|
Comments |
#2
|
||||
|
||||
I'm using the "Excellent Postbit Legacy" Mod...
https://vborg.vbsupport.ru/showthread.php?t=189186 I got this Error.. Code:
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.. Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> </div> Would it go in here.. Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]Here</div> </div> Here is that whole section.. Code:
<!-- ##### /EDIT AVATAR FIELDS ##### --> <div class="smallfont"> <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 ##### --> Thanks for the help in advance. |
#3
|
|||
|
|||
Code:
FIELDS ##### --> <div class="smallfont"> <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 ##### --> 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... |
#4
|
|||
|
|||
hi !
can you take the new nxe gamecard ?? |
#5
|
|||
|
|||
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.
|
#6
|
||||
|
||||
Nope.. now i get this error code:
Quote:
|
#7
|
|||
|
|||
I've not seen the error before.... do you have gxbox live installed on your vb?
|
#8
|
||||
|
||||
The Leaderboard..?
Yup.. www.gamelobby.com/Forum/gxboxlive.php |
#9
|
|||
|
|||
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 Code:
<if condition="in_array($forum[forumid], array(#))"> Code:
<!-- 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 --> |
#10
|
|||
|
|||
hack works fine but the avatar dosnt show over mouseover? any ideas?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|