PDA

View Full Version : Profile Enhancements - Xbox Live Gamercard Block in Profile


AK47 Nemesis
22 Feb 2008, 07:23
Demo: http://www.qualitygaming.eu/qg/member.php?u=3

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

Step 2: Import the attached Product.

Step 3: Modify 2 templates.

1. Admin CP -> Styles & Templates -> Member Info Templates ->
memberinfo_block_gamercard.

Find $userinfo[fieldg] (4 Times!) and change the g to the Gamercard field number.

2. Admin CP -> Styles & Templates -> Member Info Templates -> MEMBERINFO

Look for:

$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]


Put $blocks[gamercard] somewhere in between. Best option will be right after $blocks[friends_mini]:

$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[gamercard]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]


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

Thanks: Big thanks to stangger5 (http://www.vbulletin.org/forum/member.php?u=100434) for his YouTube Mod (http://www.vbulletin.org/forum/showthread.php?t=169824) which explained how i had to do this. This is my first hack by the way, so i hope you will like it.

Please click Install (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=171157) if you use this!

Karnal Sinn
22 Feb 2008, 09:14
Nice one *installed*

safakuygur
22 Feb 2008, 09:40
thanks gooddd :)

projectego
22 Feb 2008, 10:50
/me clicks install :)

rb290
05 Mar 2008, 06:43
hi, nice hack

but could you also tell me what hack is that conversation one and the friends one

AK47 Nemesis
05 Mar 2008, 06:49
hi, nice hack

but could you also tell me what hack is that conversation one and the friends one

Those hacks are included in vBulletin 3.7.0 Beta 5.

madotds
05 Mar 2008, 17:34
Hi could someone tell me if they are using this hack on beta 5? I can't find
$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]

Anywhere in my memberinfo template ! what am I missing :(

Fatsobob
06 Mar 2008, 15:11
I really like this mod and i would love to see it expand a little further so I will lend my opinion.
I think that you should use mygamercard.net instead of the official one. My problem with the official one is the fact it uses iframes and the mygamercard.net flash version is MUCH more feature rich than the other one and it serves the same function.
If I am not mistaken, you could just modify the product.xml to reflect the different gamercard.

<embed src="http://card.mygamercard.net/$userinfo[fieldg]" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" width="198" height="135">
</embed>

Karnal Sinn
06 Mar 2008, 18:09
Hi could someone tell me if they are using this hack on beta 5? I can't find


Anywhere in my memberinfo template ! what am I missing :(


Use the SEARCH in template option and input one of the listed lines ie $blocks[stats_mini] and it will take you to that line.

AK47 Nemesis
06 Mar 2008, 19:48
I really like this mod and i would love to see it expand a little further so I will lend my opinion.
I think that you should use mygamercard.net instead of the official one. My problem with the official one is the fact it uses iframes and the mygamercard.net flash version is MUCH more feature rich than the other one and it serves the same function.
If I am not mistaken, you could just modify the product.xml to reflect the different gamercard.

<embed src="http://card.mygamercard.net/$userinfo[fieldg]" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" width="198" height="135">
</embed>


Yep, that is possible. For people who don't know how:

Go to Admin CP -> Style Manager -> Edit Templates: memberinfo_block_gamercard

In there look for:
<iframe src="http://gamercard.xbox.com/$userinfo[fieldg].card" frameborder="0" height="140" scrolling="no" width="204">$userinfo[fieldg]</iframe>

Change that to the HTML code from MyGamerCard.Net and replace the part where you have to enter you gamertag with:

$userinfo[fieldg]

(g being the ID to your gamertag Profile Field.)

I will try to make a product containing the GamerScrore Chart service once it's stable again.

NeverBored
07 Mar 2008, 05:47
Any idea why the gamercard is aligned to right in my profiles? Doesn't make sense since there is nothing that I can see aligning it to the right.

madotds
07 Mar 2008, 10:25
Use the SEARCH in template option and input one of the listed lines ie $blocks[stats_mini] and it will take you to that line.

Hi cheers I I evntually got this working :) After upgrading to 3.7 beta 5 I never reverted my templates so I didn't even have the new user profile!!

But now I have and all is well again :)

Thank you

Bradley_Wint
09 Mar 2008, 20:47
This is a great mod if you ask me, especially for gaming forums. What I would like to see is a Xbox button in posts where you usually see like MSN, Yahoo, ICQ, etc as well so when users click the little icon, they see a pop up iframes with the Xbox 360 Gamer tag. Any ideas how to add this feature as well?

Are you intending on making a PS3 gamer tag as well?

EcoCav
10 Mar 2008, 04:13
How can I center the gamertag? Mine (just like the guy above) is set to the right.

https://www.vbulletin.org/forum/external/2008/04/17.png

jack bro
10 Mar 2008, 17:00
Thanks this will work so well on my Xbox fourm.

Jack.

FleaBag
10 Mar 2008, 20:45
Just got this installed! Thank you! My score is pitiful, maybe I should reconsider installing. LOL just kidding!

NeverBored
11 Mar 2008, 21:16
How can I center the gamertag? Mine (just like the guy above) is set to the right.

https://www.vbulletin.org/forum/external/2008/04/17.png

Obviously there's something going on, this is two people with it aligned to the right. I've looked and see nothing aligning it that way personally... Minor problem but it'd be nice to have it centered.... I tried centering it but it wouldn't. Bump...

Fatsobob
13 Mar 2008, 23:23
Another bump for aligned to the right.

diola
01 Apr 2008, 02:33
alignet to ther right here too. :)

NeuroLancer
08 Apr 2008, 16:06
to fix the right alignment:

find:
<div class="alt2 block_row block_footer">

replace:
<div class="alt2" align="center">

NeverBored
08 Apr 2008, 21:32
to fix the right alignment:

find:
<div class="alt2 block_row block_footer">

replace:
<div class="alt2" align="center">

thanks :up:

AK47 Nemesis
09 Apr 2008, 18:38
to fix the right alignment:

find:
<div class="alt2 block_row block_footer">

replace:
<div class="alt2" align="center">

Thanks for fixing mate, updated the product.

Bradley_Wint
11 Apr 2008, 19:57
Any possibility of this being added to the postbit pages as well so when users click on the icon, they can get a pop up of the gamertag?

brendanc
03 May 2008, 03:51
Working great on my forums. Thanks!

Robbed
04 May 2008, 05:53
Can you fix the uncached template.

Uncached templates: memberinfo_block_gamercard (1)

Thanks

leginag
09 May 2008, 00:03
Nice little add-in =)

tggbrokenwings
19 May 2008, 18:10
installed! Awesome mod thank you SO much!!!!!

|Jordan|
20 May 2008, 02:06
When i enable this mod i get the error: Parse error: syntax error, unexpected T_VARIABLE in /home/xxxx/public_html/forums/member.php(462) : eval()'d code(1) : eval()'d code on line 3

When i disable it, that error goes away ...

eddy315west
21 May 2008, 17:22
i installed this mods works great but for some reason i see my gamercard now twice and every box in the right side of the profile twice. what did i do wrong ?

My mini statistics show twice ,gamercard,friends,albums , group memberships,and recent visitors

eddy315west
21 May 2008, 18:00
fixed the problem sorry ! i should pasted the code twice

|Jordan|
27 May 2008, 04:08
fixed the problem sorry ! i should pasted the code twice

It works for me now. Thanks!

The360Place
09 Jun 2008, 02:48
Well I did all the steps, but I dont see the gamercard in my profile.....?

xzibit
18 Nov 2008, 09:26
hello !

can you change this add-on too the new xbox experienc gamercard from maygamercard.net ?

this here

https://www.vbulletin.org/forum/external/2008/11/13.png

and you can make a new add on ?

with the news avatar ?

a avatar box ? with this

https://www.vbulletin.org/forum/

thanks

and soory for my bad english

devoslack
21 Nov 2008, 23:48
hello !

can you change this add-on too the new xbox experienc gamercard from maygamercard.net ?

this here

https://www.vbulletin.org/forum/external/2008/11/13.png

and you can make a new add on ?

with the news avatar ?

a avatar box ? with this

http://avatar.xboxlive.com/avatar/Cologne360/avatar-body.png

thanks

and soory for my bad english

To achieve this, Go to Edit Templates and go to memberinfo_block_gamercard.

In the template you'll see the following code:

<iframe src="http://gamercard.xbox.com/$userinfo[field10].card" frameborder="0" height="X" scrolling="no" width="X">$userinfo[field10]</iframe>

Your field numbers may be different, and I X'd out height and width because I had customized mine.

Just simply change the code to this:

<iframe src="http://card.mygamercard.net/nxe/$userinfo[field10].png" frameborder="0" scrolling="no" height="120" width="245">$userinfo[field10]</iframe>

Just make sure to change the height and width to match your theme and you're good to go!

Want to see a working example? http://www.yourlifebar.com/members/devo

Goomzee
27 Nov 2008, 10:21
thankx but i am admin and idon;t have gamertag then how could i get gametag

Goomzee
28 Nov 2008, 05:06
thankx but i am admin and idon;t have gamertag then how could i get gametag
plz reply my above post

SSC streezer
08 Jan 2009, 12:14
the mod works just in the user profile - not in the post view (postbits - like in the preview picture).

is there a installation step missing in the tutorial or what is wrong?

zombietom
06 Mar 2009, 17:24
I fix this mod to also work with PSN network and xbox live at the same time and i have it working with the Gamerfield icon mod (http://www.vbulletin.org/forum/showthread.php?t=196587)

to see an example click here http://www.tzaclan.net/forum/member.php?u=25

anyone interested just email me blacktom@kih.net or post here --

DNG
11 Jun 2009, 13:55
zombietom, i am running vb 3.8.2 does your mod works with my version?

hoping it does ;)

thanks in advance

zombietom
12 Jun 2009, 15:52
yes, it should work

betts02
23 Jun 2009, 19:46
sorry to be a pain but i am new to v bulletin,anyway i have done as the instructions say to do but i am using v3.8.3 and i do not see an option for "memberinfo_block_gamercard",
can anybody hep with this please ?

zombietom
23 Jun 2009, 21:09
Did you get your field id set up? check it and make sure you have the right ID in the code

betts02
23 Jun 2009, 22:18
added new profile field - done - as it is a new site the number was 5.
Import the attached Product - done
1. Admin CP -> Styles & Templates -> Member Info Templates ->
memberinfo_block_gamercard. - there is no memberinfo_block_gamercard.so i can not edit it.
2. Admin CP -> Styles & Templates -> Member Info Templates -> MEMBERINFO - done

as i said i am new to all this and have checked everything that has been posted up and done it all apart from i do not have an "memberinfo_block_gamercard" option to edit.

Chrisg20
25 Jun 2009, 05:10
works great, thanks

KoV Animal KL
21 Oct 2009, 00:22
Won't show up for me.

egclive
22 Jan 2010, 20:28
is this going to be available for vb 4x

Slam Da Brakes
10 Apr 2010, 12:01
Nice one and super easy to install!

It's Damn Real!
26 Apr 2011, 19:22
Will this work for 4.1.2?

Gamelobby
21 May 2011, 02:15
I have an issue that might have something to do with this..
I had this installed, but now have upgraded to vB4.0 (4.1.3) & i still have a gamercard or id showing up in the blocks, even though i dont have this mod installed anymore. Even if i delete the "memberinfo_block_gamercard" template.

Any ideas.?
Thanks

FTG LIQUID CL
18 Dec 2012, 16:32
wonder if this would work for vb4

FTG LIQUID CL
18 Dec 2012, 16:58
I got it to work with vb4

Gamelobby
28 Dec 2012, 19:22
I got it to work with vb4
It used to work, but now it has stopped.?

I recently upgraded to vB4.2 & i swore it was working for a few days, but now it only shows an xbox.com error page instead..