vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Xbox Live Gamercard Block in Profile (https://vborg.vbsupport.ru/showthread.php?t=171157)

AK47 Nemesis 02-21-2008 10:00 PM

Xbox Live Gamercard Block in Profile
 
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:

Code:

$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]:

Code:

$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 for his YouTube Mod 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 if you use this!

Karnal Sinn 02-22-2008 08:14 AM

Nice one *installed*

safakuygur 02-22-2008 08:40 AM

thanks gooddd :)

projectego 02-22-2008 09:50 AM

[high]* projectego clicks install :)[/high]

rb290 03-05-2008 05:43 AM

hi, nice hack

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

AK47 Nemesis 03-05-2008 05:49 AM

Quote:

Originally Posted by rb290 (Post 1457287)
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 03-05-2008 04:34 PM

Hi could someone tell me if they are using this hack on beta 5? I can't find
Quote:

$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 03-06-2008 02:11 PM

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.
Code:

<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 03-06-2008 05:09 PM

Quote:

Originally Posted by madotds (Post 1457772)
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 03-06-2008 06:48 PM

Quote:

Originally Posted by Fatsobob (Post 1458510)
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.
Code:

<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:
Code:

<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:

Code:

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


All times are GMT. The time now is 11:51 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.01271 seconds
  • Memory Usage 1,744KB
  • 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
  • (6)bbcode_code_printable
  • (4)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