Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
GamerCards Block in Profile Sidebar and Postbit Details »
GamerCards Block in Profile Sidebar and Postbit
Mod Version: 3.1.1, by BaziCenter (Coder) BaziCenter is offline
Developer Last Online: Jun 2017 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (81 votes - 4.73 average) Installs: 739
Released: 03 Jan 2010 Last Update: 20 Dec 2012 Downloads: 4084
Not Supported Uses Plugins Auto-Template Additional Files Re-usable Code Translations External Content  

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.

Download Now

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

Screenshots

Click image for larger version

Name:	gamercards_1.png
Views:	5780
Size:	70.1 KB
ID:	108944   Click image for larger version

Name:	gamercards_2.png
Views:	4260
Size:	7.9 KB
ID:	108945   Click image for larger version

Name:	gamercards_3.jpg
Views:	3289
Size:	48.3 KB
ID:	109056   Click image for larger version

Name:	gamercards_vbsettings.png
Views:	1984
Size:	212.8 KB
ID:	109246  

Click image for larger version

Name:	gamercards_4.png
Views:	5683
Size:	133.0 KB
ID:	109412  

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
Forum Display Enhancements Xbox Gamercards [NXE enabled] GamingFusion vBulletin 3.7 Template Modifications 26 11 Jun 2009 14:20

  #481  
Old 15 Jan 2014, 01:48
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Real name: JJ Smith
Originally Posted by yjeanrenaud View Post
Isn't it the same live.xbox.com as for 360?
It should be, but doesn't show the games I have played now.
Reply With Quote
  #482  
Old 18 Jan 2014, 02:23
KDawg08's Avatar
KDawg08 KDawg08 is offline
 
Join Date: Nov 2008
Real name: Kevin
For some reason, the images don't show up in my postbit on the left side under my usernames in the thread post and replies, but it showed up in my profiles perfectly.

It just shows a rectangle with a dead image icon, Any idea why that would be? I haven't modified any of the coding and followed the instructions to a Tee. I had this installed in my old website but this time it didn't like me lol.
Reply With Quote
  #483  
Old 18 Jan 2014, 03:36
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
You have to install the gamericons folder in your style misc folder..
__________________

Last edited by CoZmicShReddeR; 18 Jan 2014 at 04:14.
Reply With Quote
  #484  
Old 18 Jan 2014, 06:12
KDawg08's Avatar
KDawg08 KDawg08 is offline
 
Join Date: Nov 2008
Real name: Kevin
Originally Posted by CoZmicShReddeR View Post
You have to install the gamericons folder in your style misc folder..
I just double checked, all those files are already uploaded in the misc area.
Reply With Quote
  #485  
Old 18 Jan 2014, 15:10
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
They need to be uploaded to your custom theme not the default theme!
__________________
Reply With Quote
  #486  
Old 18 Jan 2014, 17:50
KDawg08's Avatar
KDawg08 KDawg08 is offline
 
Join Date: Nov 2008
Real name: Kevin
Originally Posted by CoZmicShReddeR View Post
They need to be uploaded to your custom theme not the default theme!
Ah, Thank you, I'm a dumbass haha.
Reply With Quote
  #487  
Old 18 Jan 2014, 22:10
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
Originally Posted by KDawg08 View Post
Ah, Thank you, I'm a dumbass haha.
It's ok I did the same thing about 3 years ago!
__________________
Reply With Quote
  #488  
Old 19 Jan 2014, 04:14
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Originally Posted by IGOTASTi View Post
It should be, but doesn't show the games I have played now.
Xbox.com has actually yet to be updated to reflect any Xbox One activity.

Last edited by OUTL4W; 19 Jan 2014 at 04:25.
Reply With Quote
  #489  
Old 16 May 2014, 18:41
Natea's Avatar
Natea Natea is offline
 
Join Date: Jan 2005
Steamcard don't work now :/

card image don't shown
__________________
MundoWarcraft - Servidor de Rol WoW Mists of Pandaria y Comunidad de Lore World of Warcraft (Spanish)
Reply With Quote
  #490  
Old 18 May 2014, 03:17
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
Originally Posted by Natea View Post
Steamcard don't work now :/

card image don't shown
Just so you know only works if you use all lowercase of a name you created for your steam account it does not work with steam ID or your steam id number and SteamCard is unreliable.
__________________
Reply With Quote
  #491  
Old 06 Jun 2014, 19:57
Bestrafung Bestrafung is offline
 
Join Date: Aug 2009
I'm trying to add the Steam card (it's the only part of this mod we use on our site) to the free agent page in our tournaments. I have a working plugin that shows the currently logged in user's steam card instead of the user whose page you're on. If anyone could give me an idea on how to do this I'd greatly appreciate it. Here's what I have at the moment:

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

Then I use something like:

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

in the free agent template. What I need is a way to load the profile field by userid of the page you're on. I found somewhere that you can use

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

to find the profile field but before I can even try to dig into that I have to find a way to pass the userid value. Does anyone have any ideas?
Reply With Quote
  #492  
Old 07 Jun 2014, 16:36
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
Question

Originally Posted by Bestrafung View Post
I'm trying to add the Steam card (it's the only part of this mod we use on our site) to the free agent page in our tournaments. I have a working plugin that shows the currently logged in user's steam card instead of the user whose page you're on. If anyone could give me an idea on how to do this I'd greatly appreciate it. Here's what I have at the moment:

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

Then I use something like:

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

in the free agent template. What I need is a way to load the profile field by userid of the page you're on. I found somewhere that you can use

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

to find the profile field but before I can even try to dig into that I have to find a way to pass the userid value. Does anyone have any ideas?
First off Steam Card is horrible... I hate how it requires all lower case and names not numbers... Ideally we would want something where user adds their Steam account to the website and the website draws a custom card much like the mini card.

I was looking at your info was just wondering if the fictional name was supposed to be the same as the output name? Like vb:raw steamid_mycard was wondering why isn't the name reflective of the steamid_facard name??
__________________
Reply With Quote
  #493  
Old 07 Jun 2014, 23:34
Bestrafung Bestrafung is offline
 
Join Date: Aug 2009
Originally Posted by CoZmicShReddeR View Post
First off Steam Card is horrible... I hate how it requires all lower case and names not numbers... Ideally we would want something where user adds their Steam account to the website and the website draws a custom card much like the mini card.

I was looking at your info was just wondering if the fictional name was supposed to be the same as the output name? Like vb:raw steamid_mycard was wondering why isn't the name reflective of the steamid_facard name??
Yeah, I've heard a lot of bad things about Steam Card but I don't know enough about coding to put something custom together. Ideally we would just connect directly to Steam's API if possible and draw a custom card as you suggested. There is a mod that allows you to use the Steam OpenID or w/e it's called to login with your Steam account but I don't know how to work off of that.

Regarding the difference between facard and mycard it was just a copy/paste issue. When I first started a made a plugin that only loaded the currently logged in user, hence the mycard. Then I switched to facard for "free agent card". All of the code in the plugin itself is now facard.

All I need is to get the userid for the agent's page. With my limited experience the only way I know to proceed at the moment is to grab the agent number from the URL and try to use that to find the userid from the database but I'm sure there must be an easier way.
Reply With Quote
  #494  
Old 08 Jun 2014, 03:41
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
Well I am sure we have decent coders who look through these pages but getting their attention could take eons or maybe if they consider Steam is one of the top most widely used gaming platforms in the world they might re-consider but I doubt it... ;(
__________________
Reply With Quote
  #495  
Old 18 Jul 2014, 22:47
Bestrafung Bestrafung is offline
 
Join Date: Aug 2009
I'm still trying to get the gamercards to load in a location other than postbit or user profile. I'm not a VB coder and barely get by with PHP so if anyone can help I'd be immensely grateful. You would think it would be as simple as just copying the profile block to another page somehow. I had hoped the developer would be willing to help but it's not looking good at the moment.


EDIT: Just in case anyone else is after this I finally figured it out after taking a crash refresher course in working with databases in PHP and including PHP in vb templates.

Create a plugin at global_start, execution order 5, with the following code:

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

Then edit the tmnt_freeagent template and add {vb:raw mycode} wherever you want it to show up.

Then create and upload freeagent_steamcard.php to the same directory as your teams.php and other tournament files (usually the forum root) with the following code:

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

I'm not a good coder by any means but this gets the job done. If improvements can be made please let me know.

Last edited by Bestrafung; 22 Jul 2014 at 23:39.
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


New To Site? Need Help?

All times are GMT. The time now is 04:12.

Layout Options | Width: Wide Color: