vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=232033

GamerCards Block in Profile Sidebar and Postbit
by BaziCenter
03 Jan 2010 14:57

7 Attachment(s)
This hack is for vBulletin v4.x.x so it's NOT working with vB3.x.

-----------
vB3.8.x compatible version:
http://www.vbulletin.org/forum/showthread.php?t=250964
-----------


Info:
This hack will add a new block in your user profile sidebar which contains user GamerCards and GamerIDs.
Also GamerCards show up on the postbit too. (pop-up pages)

Features:
-Global enable/disable system.
-Ability to change the block location in profile sidebar.
-Can choose to show only GamerIDs and not GamerCards.
-Ability to disable certain platform(s).
-Can show GamerCards with relevant icons in the postbit.
-This mod currently support the following platforms:
  • XBOX Live Gamertag
  • PlayStation Network ID (both US & EU versions)
  • Wii Friend Code (wii doesn't have a gamercard)
  • XFIRE Username
  • Steam Community ID
  • Raptr.com (Added in v3.0)
Install:
1) Navigate to AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product] -> Import XML product.
2) Upload the "gamericons" folder to your forum_dir/images/misc folder.*
3) Upload the "gamercard.php" to your forum's root folder.
4) You should create a "Single-Line Text Box" User Profile Field for each platform (if you don't have). (Help!)
5) Enter the field ID of each platform in vB Options -> "GamerCards Block Options" settings.

* If you have a custom style, you have to copy the gamericons folder in the misc folder of each style!

Upgrade:
1) Navigate to AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product] -> Import XML product.
When you want to import the XML, set Allow Overwrite to 'Yes'.
2) Upload the "gamericons" folder to your forum_dir/images/misc folder.
3) Upload the "gamercard.php" to your forum's root folder.

Notes:
1) For showing the PSN GamerCard, users must do the following:
US: Login to us.playstation.com -> My Profile -> Portable ID -> Generate Portable ID.
EU: Login to eu.playstation.com -> My Account -> My Portable ID -> Generate Portable ID.

2) For showing the Steam GamerCard, users must do the following:
Login to steamcommunity.com -> Edit my Profile -> Copy the text from the "Custom URL" box into the Steam ID field.
* Steam GamerCard is not official and generates from steamcard.com and steamprofile.com.
Note: Steam postbit pop-up page now support real Steam ID which is: STEAM_X:X:XXXXX.

3) XFIRE mini profile & EU PSN images will be resized with mouse hover.

4) You can use these optional Regular Expressions (regex) for the fields:
  • XBOX Live Gamertag: ^([A-Za-z0-9 ]+)?$
  • PlayStation Network ID: ^([A-Za-z0-9-_]+)?$
  • Wii Friend Code: ^([0-9]{4}[- ][0-9]{4}[- ][0-9]{4}[- ][0-9]{4})?$
  • XFIRE Username: ^([a-z0-9]+)?$
  • Steam ID: ^([A-Za-z0-9-_]+)?$ (this regex is for Custom URL only)
  • Raptr.com ID: ^([A-Za-z0-9-_]+)?$
Versions:
v1.0 - Initial version (3rd January 2010)
v1.1 - Added feature: new sidebar on right location (4th January 2010)
v2.0 - GamerCards added to the postbit too! (6th January 2010)
v2.5 - Better pop-ups with more options, added EU psn version, minor fix (7th January 2010)
v2.6 - Added WOL display, fixed the EU PSN compatibility with right sidebar, minor bugs fixed (13th January 2010)
v2.6.1 - W3C Validation fixed, better code (14th January 2010)

v2.6.2 - Syntax error fixed (only gamercard.php changed) (18th January 2010)
v2.6.3 - Now compatible with vB4.0.4 (23rd June 2010)
v3.0 - Added Raptr.com support, Steam pop-up page updated, some codes changed (22nd September 2010)
v3.0.1 - xbox.com links updated (31st October 2010)
v3.0.2 - Steam pop-up links fixed (5th January 2011)
v3.1 - Added user psn portable id selection menu, CSS data moved in to the <head>, Steam pop-up links fixed (15th May 2011)

v3.1.1 - Xbox.com links were fixed, bug fixes (20th December 2012)

Q: Why there are two versions for download?
A: 'bc-gamercards-vb4-v3.0.2.zip' works only on vB4.0.7 and lower! (I do not support these vB versions anymore).
'bc-gamercards-vb4.1-v3.1.zip' works on vB4.1.x.


NOTE: If you want to upgrade to v3.1 you MUST uninstall your current product first and then install it again because of new added DB codes.


Please Mark As Installed if you use this modification.

By the way this is my first hack, so I hope you like it.:)

sailfindragon 03 Jan 2010 15:06

Works great. Installed.

DaninMS 03 Jan 2010 15:28

I was waiting for a mod like this. Installing now.

cTak 03 Jan 2010 15:35

How do you step 2?

"2) You should create a "Single-Line Text Box" User Profile Field for each platform (if you don't have)."

BaziCenter 03 Jan 2010 15:55

Quote:

Originally Posted by cTak (Post 1946001)
How do you step 2?

"2) You should create a "Single-Line Text Box" User Profile Field for each platform (if you don't have)."

To create User Profile Field Go to:
AdminCP -> User Profile Fields -> Add New User Profile Field -> Single-Line Text Box.
example info for XBOX Live Gamertag field:
  • Title: XBOX Live Gamertag
  • Description: Enter your XBOX Live Gamertag.
  • Max length of allowed user input: 25
  • Field Length: 25
  • Private Field: No
  • Field Searchable on Members List: Your choice!
  • Show on Members List: Your choice!
  • Regular Expression: ^([A-Za-z0-9 ]+)?$
  • Which page displays this option? Edit Profile
then go to the "User Profile Field Manager" and see your created field ID in Name Column. (fieldx: x is field ID)

repeat this steps for other platforms as well.

sailfindragon 03 Jan 2010 15:56

Quote:

Originally Posted by cTak (Post 1946001)
How do you step 2?

"2) You should create a "Single-Line Text Box" User Profile Field for each platform (if you don't have)."

Sorry didn't realise there was a solution already posted.

Big-Pete 03 Jan 2010 18:41

Very nice! Only problem is the PSN portable ID, Do we need to enter all of this?


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

If so then the field length needs to go upto around 320

BaziCenter 03 Jan 2010 19:03

Quote:

Originally Posted by Big-Pete (Post 1946169)
Very nice! Only problem is the PSN portable ID, Do we need to enter all of this?


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

If so then the field length needs to go upto around 320

Nope!

You should only enter your PSN username in the field. no HTML needed.

unfortunately all PSN users should generating their portable id manually for a first time. I don't know why PlayStation Team decided to force users to do this and portable ids don't generate automatically for all users.

Big-Pete 03 Jan 2010 19:41

Quote:

Originally Posted by BaziCenter (Post 1946189)
Nope!

You should only enter your PSN username in the field. no HTML needed.

unfortunately all PSN users should generating their portable id manually for a first time. I don't know why PlayStation Team decided to force users to do this and portable ids don't generate automatically for all users.

Thanks for that :) Installed and voted as Excellent
:up:

CFodder 03 Jan 2010 20:49

Great mod Bazi, marked as installed and given 5 stars :).

ZiG 03 Jan 2010 20:51

awesome, can we enable them somehow in the postbit as well?

ddaybofb 03 Jan 2010 21:22

Quote:

Originally Posted by ZiG (Post 1946305)
awesome, can we enable them somehow in the postbit as well?

Was wondering the samething

Bouncer222 03 Jan 2010 22:31

BaziCenter could you PLEASE do a gamecard like the one found here: http://www.noobsticks.com/members/8088/

The admin won't release the code/files for it.

Notice how it says on the bottom of the card:
"8088 is a member of the Noobsticks Steam Group"
Which is used to show everyone if that member is part of their steam community group.

Could you possibly make something like that?

ShawnV 04 Jan 2010 02:01

Nice MOD, thanks. It would be brilliant if there was a right profile sidebar, this would go there nicely and not make the default left bar so long.

BaziCenter 04 Jan 2010 07:06

Quote:

Originally Posted by ZiG (Post 1946305)
awesome, can we enable them somehow in the postbit as well?

Not yet. but I can work on it for a next version.
for now you can use this manual code to shows the GamerID in the postbit:

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

replace X with your field ID.


All times are GMT. The time now is 19:15.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.