Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Gamercard in Profiles Details »
Gamercard in Profiles
Mod Version: 2.0, by TheInsaneManiac (Coder/Designer) TheInsaneManiac is offline
Developer Last Online: Aug 2018 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 11
Released: 15 Oct 2009 Last Update: 03 Nov 2009 Downloads: 78
Supported Uses Plugins Auto-Template  

Display your gamercard in your profiles with ease. Gamercards will display under the about tab in profiles.

Installation:
1.) In the AdminCP go to User Profile Fields -> Add New User Profile Field.

2.) Select Single-Line Text Box.

3.) Apply the following settings:
Title:
Gamertag
Description:
Put your Xbox Live Gamertag here.
Max length of allowed user input:
16
Field Required:
No
Private Field:
No
Field Searchable on Members List:
Yes
Show on Members List:
No

4.) After saving take note of what the ID is of the field.

5.) In the AdminCP under Gamertag Profile put the ID in there.
Ex: field123


Optional:
You can now view gamercards in posts by hovering over their gamertag. See screenshot for better explanation.

To do this go into your headinclude template and find:
<!-- / CSS Stylesheet -->

Below add:
$gamercardinpostbit

In postbit find:
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

Add the following code after, be sure to change XX to your gamertag field ID:
<if condition="$post['fieldXX']"><div">$vbphrase[gamertag]: <a href="http://profile.mygamercard.net/$post[fieldXX]" target="_blank" onmouseover="return overlibImage('', 'http://card.mygamercard.net/$post[fieldXX].png');" onmouseout="return overlibMouseout();">$post[fieldXX]</a></div></if>


FAQ:
Question: I get a "Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING" error.
Answer: You did not fill in your profile field correctly or at all.


Known Issues:
Gamercard will not display if gamertags have spaces. -Fix being worked on


Upgrading:
Import the product and select Allow Overwrite.


Changelog:
2.0 - Fixed a bug which prevented the gamercard script from running in the postbit.
1.8 - Fixed a bug that prevented gamercards to show in profiles.
1.5 - Added the ability to see the gamercard via posts.
1.0 - Release

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Gamercard.jpg
Views:	392
Size:	57.8 KB
ID:	105362   Click image for larger version

Name:	Postbit.jpg
Views:	295
Size:	81.7 KB
ID:	105814  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Profile Enhancements Add XBOX Gamertag to IM List WNxWakko vBulletin 3.6 Add-ons 10 26 Oct 2009 03:04
Popup XBOX 360 gamertag EyeCrave vBulletin 3.6 Template Modifications 20 05 Jun 2008 18:13

Comments
  #2  
Old 28 Oct 2009, 17:50
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
-Reserved-
Reply With Quote
  #3  
Old 28 Oct 2009, 22:51
inspiration100 inspiration100 is offline
 
Join Date: Apr 2005
Nice!! I could really use this, however I am doing a PS3 site. Any way to work that in?
Reply With Quote
  #4  
Old 30 Oct 2009, 02:46
dnelsalty dnelsalty is offline
 
Join Date: Sep 2009
doesnt let me save the profile field i need to put something in the options
Reply With Quote
  #5  
Old 30 Oct 2009, 18:24
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Originally Posted by inspiration100 View Post
Nice!! I could really use this, however I am doing a PS3 site. Any way to work that in?
I was planning on making a separate modification for this. No ETA though.

Originally Posted by dnelsalty View Post
doesnt let me save the profile field i need to put something in the options
You set the profile field up incorrectly then.
Reply With Quote
  #6  
Old 31 Oct 2009, 13:26
msken msken is offline
 
Join Date: Jan 2007
Real name: Ken Beard
Originally Posted by TheInsaneManiac View Post
You set the profile field up incorrectly then.
No you gave incomplete/incorrect directions. With Single-Selection Menu you HAVE to put something in the options field in order to save it. I think you meant to put Single-Line Text Box. Please complete/fix your directions. Thanks.
Reply With Quote
  #7  
Old 31 Oct 2009, 21:38
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Originally Posted by msken View Post
No you gave incomplete/incorrect directions. With Single-Selection Menu you HAVE to put something in the options field in order to save it. I think you meant to put Single-Line Text Box. Please complete/fix your directions. Thanks.
Ahh my mistake. I copied directions from a previous modification, as I was about to go to work and was in a hurry, so I must have forgotten to change them.
Reply With Quote
  #8  
Old 01 Nov 2009, 10:29
msken msken is offline
 
Join Date: Jan 2007
Real name: Ken Beard
Mistakes happen . Also on line 60 of product-gamercardprofile.xml you have an error. You are pointing to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and it should be:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

http://gamercardprofile.xbox.com isn't an active URL. Other then that, great mod. I haven't been able to get the hover mod to work just yet but I have a custom theme, so that is most likely my issue. Once I figure it out I will post a solution so everyone will know what to do. Thank you for this mod, it really is nice!
Reply With Quote
  #9  
Old 02 Nov 2009, 17:53
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Originally Posted by msken View Post
Mistakes happen . Also on line 60 of product-gamercardprofile.xml you have an error. You are pointing to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and it should be:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

http://gamercardprofile.xbox.com isn't an active URL. Other then that, great mod. I haven't been able to get the hover mod to work just yet but I have a custom theme, so that is most likely my issue. Once I figure it out I will post a solution so everyone will know what to do. Thank you for this mod, it really is nice!
Hmm that's strange. Both of those URLs work for me lol. Anyway since it isn't working for you I will fix that in my upcoming update.

In the upcoming update it will fix the issue with the hover not working for people who have spaces in their gamertags. MyGamerCard.net seems to have issues with spaces so they use +... I believe a simple fix in the profile field itself should make things proper.

No ETA at the moment.
Reply With Quote
  #10  
Old 12 Feb 2010, 20:51
KasparP KasparP is offline
 
Join Date: Feb 2010
Hmm, it wont appear in the postbit even after I added the hover edit.

Any idea why? The gamercard is perfect in the profile however.
Reply With Quote
  #11  
Old 12 Feb 2010, 21:05
KasparP KasparP is offline
 
Join Date: Feb 2010
When I hover over it, it just says "loading image" and it won't load. Any ideas?

Last edited by KasparP; 12 Feb 2010 at 21:16.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 23:31.

Layout Options | Width: Wide Color: