vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do you Show Xbox Gamercard in Memberlist (https://vborg.vbsupport.ru/showthread.php?t=266274)

GameOverViper 07-04-2011 08:26 PM

How do you Show Xbox Gamercard in Memberlist
 
I want the Xbox Gamercard to show in my memberlist. Right now I have a user profile field created that members can enter there gamertag and in the memberlist it shows up as text.

I used this guide to add the gamercard to my postbit, but I can't figure out how to add it to the memberlist.

I have searched the site and found another thread asking how to do this, but no one responded to it with an answer.

Chris

Edit -

Here's an example of how I want it to show up in the memberlist. This forum is 3.8.6, but I'm sure you can do it on 4.1.4 still.

GameOverViper 07-05-2011 10:00 PM

Anyone know how to do this?

Badshah93 07-06-2011 05:25 AM

open memberlist template

Find:

Code:

<vb:if condition="$show['usergroup']"><th class="blocksubhead"><input name="allbox" type="checkbox" value="Check All" title="{vb:rawphrase check_uncheck_all}" onclick="checkall(this.form);" /></th></vb:if>
ADD AFTER THAT

Code:

<th class="blocksubhead">Gamecard
</th>



open memberlist_resultsbit template

Find:

Code:

<vb:if condition="$show['usergroup'] AND exec_switch_bg()"><td class="{vb:raw bgclass} usergroup"><vb:if condition="$show['hideleader']">&nbsp;<vb:else /><input type="checkbox" name="deletebox[{vb:raw userinfo.userid}]" value="yes" tabindex="1" /></vb:if></td></vb:if>
ADD AFTER THAT

Code:

<td class="{vb:raw bgclass} profilepic">                <iframe src="http://gamercard.xbox.com/{vb:raw userinfo.fieldX}.card" scrolling="no" frameBorder="0" height="140" width="204">{vb:raw userinfo.fieldX}</iframe>
</td>


Replace X with your field name of gamertag and open the field of gamertag in user profile fieldmanager and uncheck "show in memberlist" (else double column will be shown).

GameOverViper 07-08-2011 12:33 AM

Thank You! It worked =)

Demo

GameOverViper 06-16-2012 12:56 PM

I don't believe the method above works anymore. Could someone share with me how I can do this on 4.2.0? Thanks.

GameOverViper 07-07-2012 03:18 PM

No help with this? I'm just looking to see how the code should be displayed. The information to display it is already available in this post. The xbox site information is still the same, seeing as the gamercards still show for other stuff I use.

GameOverViper 02-27-2013 04:50 PM

On 4.2.0 I've found out that the below code shows the gamercard on memberlist when you paste it in the Memberlist template.

I have mine after the Avatar. And you must change the field# to match your gamercard profilefield.

Code:

<td class="{vb:raw bgclass} profilepic">                <iframe src="http://gamercard.xbox.com/{vb:raw userinfo.field#}.card" scrolling="no" frameBorder="0" height="140" width="204">{vb:raw userinfo.field#}</iframe>
</td>


FTG LIQUID CL 03-14-2013 12:22 AM

I would like to have this!But this does not seem to work with 4.1.12


All times are GMT. The time now is 03:28 PM.

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.01425 seconds
  • Memory Usage 1,726KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete