vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Xbox.com gamercard for all users (https://vborg.vbsupport.ru/showthread.php?t=99867)

john1744 11-02-2005 07:37 PM

Quote:

Originally Posted by stonyarc
To add it to the profile it should be easy enough

http://www.xboxusersgroup.com/forums/member.php?u=25035

Just drop me a line if you need help with it

Just add a custom field in the sameway and add in the applicable template for your members

I would be interested in going that route as well.

stonyarc 11-02-2005 07:51 PM

Quote:

Originally Posted by john1744
I would be interested in going that route as well.

Well instead of editing the postbit (or legacy) template just edit the MEMBERINFO template and drop it next to the avatar. If the gamertag field is empty it won't display.

So the rest of the code is exactly the same.

Should I make a new modification or can you handle it ?

Cyricx 11-02-2005 08:29 PM

Nice snipe stony..

For a dhtml popup window, check here

https://vborg.vbsupport.ru/showthread.php?t=99769

stonyarc 11-03-2005 06:35 PM

Quote:

Originally Posted by Cyricx
Nice snipe stony..
For a dhtml popup window, check here
https://vborg.vbsupport.ru/showthread.php?t=99769

Thanks,

Seems that there is a lot of discussion about the dhtml window. :speechless:

ggiersdorf 11-04-2005 04:52 PM

Ok this kinda psses me off First off I posted this as a request here

https://vborg.vbsupport.ru/showthrea...highlight=XBOX

Im not saying you took someone elses work, but this hack existed prior to your post and I think others should get some credit for this, and by the way I have it running over at my site in the postbit which works MUCH better as a pop-up beacuse it will GROW larger and could mess your forum structure up.

ALSO who cares what TeamXBOX thinks they didnt invent it! M$ put the code up for everyone to use in websites..

stonyarc 11-04-2005 09:02 PM

Quote:

Originally Posted by ggiersdorf
Ok this kinda psses me off First off I posted this as a request here

https://vborg.vbsupport.ru/showthrea...highlight=XBOX

Im not saying you took someone elses work, but this hack existed prior to your post and I think others should get some credit for this, and by the way I have it running over at my site in the postbit which works MUCH better as a pop-up beacuse it will GROW larger and could mess your forum structure up.

ALSO who cares what TeamXBOX thinks they didnt invent it! M$ put the code up for everyone to use in websites..

You are right. We already had the gamertag integration for a very long time. This made the gamercard code very easy to integrate in our forum.

We released the how to very fast on xbox.com and our forum as a service. Afterwards I posted it here. I didn't want to cancel out any other threads that are in here.

Moreover just look at want an MVP has to say about the teamxbox claim
http://msmvps.com/glach/archive/2005/10/30/73546.aspx

Funny stuff :smoke:

wattieuk 11-05-2005 07:28 PM

Can anyone tell me how to do an "if" they have a gamertag, use the XBox link ELSE show the avatar? I want it to show one or the other. Thanks.

stonyarc 11-06-2005 09:35 AM

Quote:

Originally Posted by wattieuk
Can anyone tell me how to do an "if" they have a gamertag, use the XBox link ELSE show the avatar? I want it to show one or the other. Thanks.

You can replace the avatar code by

FieldXX is the name of your gamertag field (see the first post)

Code:

<if condition="$post['fieldXX']">
<div class="smallfont" align="center">
<iframe src="http://gamercard.xbox.com/$post[fieldXX].card" target="_blank" scrolling="no" frameBorder="0" height="140" width="204">$post[fieldXX]</iframe>
</div>
<else>
<div class="smallfont">
<center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></center>
</div>
</if>

Don't forget to remove the other codes.

Hope this helps

PTO 11-08-2005 04:34 PM

Hey stonyarc.

Love the code. However, I'm much more interested in the entire card scheme style you have (avatar...username..etc etc with the gamercard underneath). Any chance of you releasing that?

wattieuk 11-10-2005 10:10 PM

Quote:

Originally Posted by stonyarc
You can replace the avatar code by

FieldXX is the name of your gamertag field (see the first post)

Code:

<if condition="$post['fieldXX']">
<div class="smallfont" align="center">
<iframe src="http://gamercard.xbox.com/$post[fieldXX].card" target="_blank" scrolling="no" frameBorder="0" height="140" width="204">$post[fieldXX]</iframe>
</div>
<else>
<div class="smallfont">
<center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></center>
</div>
</if>

Don't forget to remove the other codes.

Hope this helps

thanks - much appreciated


All times are GMT. The time now is 04:17 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.01186 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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