Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
GamerCards Block in Profile Sidebar and Postbit Details »»
GamerCards Block in Profile Sidebar and Postbit
Version: 1.0.2, by BaziCenter BaziCenter is offline
Developer Last Online: Jun 2017 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.x Rating:
Released: 09-21-2010 Last Update: 01-04-2011 Installs: 38
Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

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.

Download Now

File Type: zip bc-gamercards-vb3-v1.0.2.zip (23.1 KB, 214 views)

Screenshots

File Type: jpg gamercads_profile.jpg (60.4 KB, 0 views)
File Type: jpg gamercards_postbit.jpg (92.7 KB, 0 views)
File Type: png gamercards_vbsettings.png (212.8 KB, 0 views)
File Type: jpg gamercads_profile2.jpg (23.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-22-2010, 11:46 AM
BaziCenter's Avatar
BaziCenter BaziCenter is offline
 
Join Date: Sep 2005
Location: Montreal, QC
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 10-02-2010, 07:31 AM
Blueracer66's Avatar
Blueracer66 Blueracer66 is offline
 
Join Date: Sep 2008
Location: San Jose, California
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this mod! I'll give it a try and report back!
Reply With Quote
  #4  
Old 11-07-2010, 06:27 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a such thing as a Wii Gamer card?
Reply With Quote
  #5  
Old 12-03-2010, 07:04 AM
ripley ripley is offline
 
Join Date: Nov 2010
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-04-2010, 05:45 PM
BaziCenter's Avatar
BaziCenter BaziCenter is offline
 
Join Date: Sep 2005
Location: Montreal, QC
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ripley View Post
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)
Reply With Quote
  #7  
Old 01-13-2011, 01:38 PM
PokerVillain PokerVillain is offline
 
Join Date: Jul 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod!

Is there a way to remove the text "Gamer IDs:" and simply show the images? For example on a thread display.
Reply With Quote
  #8  
Old 01-13-2011, 05:19 PM
BaziCenter's Avatar
BaziCenter BaziCenter is offline
 
Join Date: Sep 2005
Location: Montreal, QC
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PokerVillain View Post
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]:
Reply With Quote
  #9  
Old 01-13-2011, 06:10 PM
PokerVillain PokerVillain is offline
 
Join Date: Jul 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, thanks for the quick response!
Reply With Quote
  #10  
Old 03-13-2011, 06:58 PM
NextGenUpdateFR NextGenUpdateFR is offline
 
Join Date: Feb 2011
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 11:22 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.04336 seconds
  • Memory Usage 2,328KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete