vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Profile Enhancements - GamerCards Block in Profile Sidebar and Postbit (https://vborg.vbsupport.ru/showthread.php?t=250964)

BaziCenter 09-21-2010 09:00 PM

GamerCards Block in Profile Sidebar and Postbit
 
1 Attachment(s)
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.com
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 - 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 10: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 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.

Blueracer66 10-02-2010 06: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

Quote:

Originally Posted by ripley (Post 2128725)
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:
Code:

<a href="#" onclick="openWindow('gamercard.php?do=xboxlive&amp;u=$post[userid]',456,375); return false;">
Replace with:
Code:

<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

Quote:

Originally Posted by PokerVillain (Post 2148457)
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:
Code:

$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


All times are GMT. The time now is 11:17 PM.

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.01692 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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