PDA

View Full Version : Profile Enhancements - GamerCards Block in Profile Sidebar and Postbit


BaziCenter
09-21-2010, 10:00 PM
This hack is for vBulletin v3.8.x and hasn't been tested with earlier versions.

-----------
vB4 compatible version:
https://vborg.vbsupport.ru/showthread.php?t=232033
-----------

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.comInstall:
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! (https://vborg.vbsupport.ru/showpost.php?p=2101799&postcount=2))
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 (http://www.us.playstation.com/) -> My Profile -> Portable ID -> Generate Portable ID.
EU: Login to eu.playstation.com (http://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 (http://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 (http://steamcard.com/) and steamprofile.com (http://www.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 - Ported for vB3.8.x (22th September 2010)
v1.0.1 - xbox.com links updated (31st October 2010)
v1.0.2 - Steam pop-up links fixed (5th January 2011)


Please Mark As Installed if you use this modification.

BaziCenter
09-22-2010, 11:46 AM
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 Profilethen 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.

Blueracer66
10-02-2010, 07:31 AM
Thanks for this mod! I'll give it a try and report back! :)

FreshFroot
11-07-2010, 06:27 AM
Is there a such thing as a Wii Gamer card?

ripley
12-03-2010, 07:04 AM
The gamercard new window that opens looks wonky depending on which browser is used. Example: Under IE you can't see the "Send message" and other links without resizing the window.

I initially thought it was my theme, but it does it under default as well.

BaziCenter
12-04-2010, 05:45 PM
The gamercard new window that opens looks wonky depending on which browser is used. Example: Under IE you can't see the "Send message" and other links without resizing the window.

I initially thought it was my theme, but it does it under default as well.
Open the "product-bc-gamercards-vb3-v1.0.1.xml" and find this around line 134:
<a href="#" onclick="openWindow('gamercard.php?do=xboxlive&amp;u=$post[userid]',456,375); return false;">
Replace with:
<a href="#" onclick="openWindow('gamercard.php?do=xboxlive&amp;u=$post[userid]',470,375); return false;">
Reupload the XML file. (set Allow Overwrite to Yes)

PokerVillain
01-13-2011, 01:38 PM
Great mod!

Is there a way to remove the text "Gamer IDs:" and simply show the images? For example on a thread display.

BaziCenter
01-13-2011, 05:19 PM
Great mod!

Is there a way to remove the text "Gamer IDs:" and simply show the images? For example on a thread display.
Go to your style templates and find the "postbit_gamercards" template.
Find and remove this:
$vbphrase[bc_gamercards_title]:

PokerVillain
01-13-2011, 06:10 PM
Excellent, thanks for the quick response! :)

NextGenUpdateFR
03-13-2011, 06:58 PM
Great mod mate, it works fine ! Btw on vb 4.1.2 there is nothing in the postbit. Any way to fix that ? Thanks so much for the mod btw <3

Vcize
06-02-2011, 01:50 AM
I'm having all kinds of bizarro issues with this, particularly with displaying the gamer icons in the postbit. It causes all kinds of weird errors, but the really odd part is that these change depending on who's logged in. For example...

User A has an XBL gamertag
User B has an XBL and PSN gamertag

When user A is logged in, they can see their own XBL gamer icon in the postbit, as well as both the XBL and PSN one for User B. However, User B's forum user name has disappeared from the postbit.

When user B is logged in, they can't see the XBL gamer icon for either user, but can see the PSN gamer icon in their own postbit. Also, they can see both user's forum names in the postbit just fine.

Any ideas?

Note: This is being tested on a local server.

Blackheart_72
08-02-2011, 11:29 AM
Have installed this but members are having problems with the PSN card not showing, even after they sign into the playstation site and click update.

DarkGizmo
08-08-2011, 11:29 PM
Awesome mod, thanks! :)

Blueracer66
08-22-2012, 02:51 AM
Has anyone tested this on vBulletin? v3.8.7 Patch Level 3? This really look like what I need. :)

Edit:
Okay, so far it is working on 3.8.7. Thanks!

Goomzee
04-27-2015, 06:22 AM
There is no PSn leader board

XotelHotel
02-25-2017, 06:49 PM
Also why is the steam ID not working when i copy my ID on to the forum cause it says You did not enter the correct format for the Steam ID field. Please read the field description for the expected format.

EGNDRAGON
03-09-2017, 01:08 AM
How do i get this to show in a post

Dr.CustUmz
03-09-2017, 09:01 PM
How do i get this to show in a post

there are many ways to achieve this, but a simple addon that allows you to do this can be found HERE (https://vborg.vbsupport.ru/showthread.php?t=176386)