vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - XBOX gamercard and NXE avatar in postbit (https://vborg.vbsupport.ru/showthread.php?t=196840)

JAnders 11-20-2008 10:00 PM

XBOX gamercard and NXE avatar in postbit
 
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]
add below:
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>

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..
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">
&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

Code:

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:
Quote:

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


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


x YNWA x 12-18-2008 07:05 PM

hack works fine but the avatar dosnt show over mouseover? any ideas?


All times are GMT. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01187 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete