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)
-   -   Forum Display Enhancements - Xbox Gamercards [NXE enabled] (https://vborg.vbsupport.ru/showthread.php?t=196144)

GamingFusion 11-12-2008 10:00 PM

Xbox Gamercards [NXE enabled]
 
About: I made this modification (with help from MyGamercard.net) so that we could have the new gamercard layout done for the New Xbox Experience!

This mod does work with 3.8.x as well!

Demo: Look at the post and see on the left the new gamercard. If you are unable to see the DEMO, please register an account and you should be able to see the updated code.

Step 1: Add a new Profile Field with the following options:

* Single-Line Text Box
* Title: Gamertag
* Description: Enter your Xbox Live Gamertag here.
* Max length of allowed user input: 15
* Field Length: 25
* Private Field: No
* Field Searchable on Members List: Yes
* Show on Members List: Your choice
* Which page displays this option? Edit Your Details


Remember the Field ID.

Step 2A *required*: Modify the Postbit_legacy in your template:

1. Admin CP -> Styles & Templates -> Postbit Templates ->
postbit_legacy

Find

Code:

$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

After this add:

Code:

<if condition="$post['field#']">
<div id="gamertagmenu_$post[postid]"><a href="#"><b>Xbox LIVE</a>&nbsp;<img src="http://YOURSITEHERE/images/misc/menu_open.gif"></b>
<script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://card.mygamercard.net/nxe/$post[field#].png" scrolling="no" frameBorder="0">$post[field#]</iframe> </div>
</if>

Replace the $post[field#] with your field ID you used for your gamertag! Change "YOURSITEHERE" with your URL to this location!

Step 2B: Thanks to Distance! Do you wanna restrict this code to certain usergroups only? You can... just put this before the <if condition> code:

Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)"><if condition="$post['field#']">
<div id="gamertagmenu_$post[postid]"><a href="#"><b>Xbox LIVE</a>&nbsp;<img src="http://YOURSITEHERE/images/misc/menu_open.gif"></b>
<script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://card.mygamercard.net/nxe/$post[field#].png" scrolling="no" frameBorder="0">$post[field#]</iframe> </div>
</if></if>

Replace the $post[field#] with your field ID you used for your gamertag! Change "YOURSITEHERE" with your URL to this location! Also, replace X, Y, Z with the Usergroup IDs (can be found in Usergroup Manager in your AdminCP)

Step 3: Go to Edit Your Details to add your gamertag to your profile.

Step 4: You're done! Your gamercard will work now and mini avatar faces will start working when you get the New Xbox Experience on your dashboard!

FAQ

How do I know if the Avatar System is actually working? It's only showing a silhouette.

If other users are having the avatar working for them, it means it's working correctly. You just don't have the new dashboard -OR- your privacy settings are enabled on Xbox LIVE.

Enjoy the MOD!
Any questions? Leave them here or ask me on Gaming Fusion!

Forum Lover 11-13-2008 09:52 AM

Great thing. Is there any way to restrict over user group? Lets say for example usegroup called "senior members" will be allowed to put their gamecards?

FleaBag 11-19-2008 06:14 PM

I would love to take a look at this in action, but your demo link requires registration. ;)

Saint Dean 11-20-2008 12:07 PM

Installed Thanks!

you can see it in action here www.uwclan.co.uk/forums

Only bad thing about this is, is its scaled down so some of my members who have small visual impairments cant properly view it.

Im checking mygamercard.net for an updated one for NXE which is slimmer to fit within 204px without scaling.

G-man561 11-20-2008 10:24 PM

Awesome, thanks a lot man.
*Clicks Installed*

Vicros 11-23-2008 12:27 AM

works perfectly..

untitled65 11-28-2008 05:12 AM

thanks works great

MotMann 11-30-2008 10:59 AM

No, thanks. That is from Camercard and NOT a Microsoft Live Service ;)

Live original is better...

GamingFusion 12-01-2008 08:18 AM

Quote:

Originally Posted by MotMann (Post 1675691)
No, thanks. That is from Camercard and NOT a Microsoft Live Service ;)

Live original is better...


Actually MyGamerCard.net is run by some of the same people running Xbox LIVE... lol

MotMann 12-03-2008 07:09 AM

I say, that the original Card from Microsoft better is. No one need Gamercard.net.

LoL


All times are GMT. The time now is 06:42 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.01151 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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