vb.org Archive

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

BaziCenter 01-02-2010 10:00 PM

GamerCards Block in Profile Sidebar and Postbit
 
1 Attachment(s)
This hack is for vBulletin v4.x.x so it's NOT working with vB3.x.

-----------
vB3.8.x compatible version:
https://vborg.vbsupport.ru/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 01-03-2010 02:06 PM

Works great. Installed.

DaninMS 01-03-2010 02:28 PM

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

cTak 01-03-2010 02:35 PM

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 01-03-2010 02:55 PM

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 01-03-2010 02:56 PM

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 01-03-2010 05:41 PM

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

HTML Code:

<a href="http://profiles.us.playstation.com/playstation/psn/visit/profiles/xxx-xxxxx"><img src="http://fp.profiles.us.playstation.com/playstation/psn/pid/xxx-xxxxxx.png" width="230" height="155" border="0" /></a><br/><a href="http://www.us.playstation.com/PSN/SignUp">Get your Portable ID!</a>
If so then the field length needs to go upto around 320

BaziCenter 01-03-2010 06:03 PM

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?

HTML Code:

<a href="http://profiles.us.playstation.com/playstation/psn/visit/profiles/xxx-xxxxx"><img src="http://fp.profiles.us.playstation.com/playstation/psn/pid/xxx-xxxxxx.png" width="230" height="155" border="0" /></a><br/><a href="http://www.us.playstation.com/PSN/SignUp">Get your Portable ID!</a>
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 01-03-2010 06:41 PM

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 01-03-2010 07:49 PM

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

ZiG 01-03-2010 07:51 PM

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

ddaybofb 01-03-2010 08:22 PM

Quote:

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

Was wondering the samething

Bouncer222 01-03-2010 09:31 PM

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 01-04-2010 01:01 AM

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 01-04-2010 06:06 AM

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:
Code:

<vb:if condition="$post['fieldX']">
{vb:raw post.fieldX}
</vb:if>

replace X with your field ID.

BaziCenter 01-04-2010 06:20 AM

Quote:

Originally Posted by Bouncer222 (Post 1946412)
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?

This is a custom coding and generates form the same site. all of the gamercards in my mod using the external resource.
also user group name showing in the SteamCard too:

this is an another Steam related mod which I think this can help you more: (you can customize it for your Steam IDs)
https://vborg.vbsupport.ru/showthrea...ighlight=STEAM
Quote:

Originally Posted by ShawnV (Post 1946520)
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.

Nice idea. I will working on it.

JVCode 01-04-2010 07:56 AM

Excellent mod! thanks alot, Rated 5 stars.

Would be great to have an Xbox API released, which will show all our recently played games, achievements unlocked, gamerpics downloaded, and all other types of info right on our own community forums.

Big-Pete 01-04-2010 08:44 AM

Quote:

Originally Posted by JVCode (Post 1946707)
Excellent mod! thanks alot, Rated 5 stars.

Would be great to have an Xbox API released, which will show all our recently played games, achievements unlocked, gamerpics downloaded, and all other types of info right on our own community forums.

I've applied for an API for XboxLive, If i get approved I dont mind sharing it with a coder to do something similar to what your after :)

LouisB 01-04-2010 11:07 AM

Works perfect, thanks.

ShawnV 01-04-2010 03:29 PM

Quote:

Originally Posted by BaziCenter (Post 1946670)
Nice idea. I will working on it.

Perfect, thanks..

Big-Pete 01-04-2010 06:18 PM

1 Attachment(s)
Updated and looks better on the right side, Im getting a problem though, worked ok prior to update, now getting a connection error with the Xboxlive gamercard

Thanks for the update

Big-Pete 01-04-2010 06:19 PM

Duplicate of post above, due to server connection error

Bouncer222 01-04-2010 07:34 PM

Ok so just so I understand you correctly, your mod shows what steam group the player is a part of?

If yes, what if they are part of multiple steam groups? because that is usually the case, how do you set to check if they are part of a CERTAIN steam group, like our clan's steam group?

LouisB 01-04-2010 07:49 PM

Good work. Looks much better on the right.

InsomniacP 01-04-2010 09:22 PM

Great job I am using it on my site, would be nice to see if you can add a mod with the relivent icons in the postbit with a scroll over reviling the gamer cards, seen something similar for 3.8 version but nothing for 4.0 rated 5 stars good job!

ZiG 01-04-2010 09:27 PM

Quote:

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

<vb:if condition="$post['fieldX']">
{vb:raw post.fieldX}
</vb:if>

replace X with your field ID.

thank you, this would be a great addition!

BaziCenter 01-05-2010 06:24 AM

Quote:

Originally Posted by Bouncer222 (Post 1947167)
Ok so just so I understand you correctly, your mod shows what steam group the player is a part of?

If yes, what if they are part of multiple steam groups? because that is usually the case, how do you set to check if they are part of a CERTAIN steam group, like our clan's steam group?

I don't have any control on gamercard contents. this mod just fetch the cards from their servers and displays them.
I think the steam gamercard shows the last group a user joined.

External Content tag added to the mod!

Big-Pete 01-05-2010 10:16 AM

Quote:

Originally Posted by BaziCenter (Post 1947617)
I don't have any control on gamercard contents. this mod just fetch the cards from their servers and displays them.
I think the steam gamercard shows the last group a user joined.

External Content tag added to the mod!

Hi Bazicenter, That error was due to a server error with steam not xboxlive, the card was showing as normal a couple of minutes later.. Thanks again for a great mod!!

BaziCenter 01-05-2010 08:21 PM

Quote:

Originally Posted by ZiG (Post 1947267)
thank you, this would be a great addition!

GamerCards added to the postbit.

struff 01-05-2010 08:50 PM

I'm not getting anything in the postbit

CrosseyedGamer 01-05-2010 09:15 PM

Just upgraded and well, seems the entire thing went bye bye. I am guessing I need to go check the readme file for some important details???

ShawnV 01-05-2010 09:41 PM

Quote:

Originally Posted by BaziCenter (Post 1948191)
GamerCards added to the postbit.

Very nice addition to the MOD, however the pop-ups from the postbit gamer ID icons need to either take you to the users profile or to the actual game profile as do the ones in the profile block.

Note: Also there needs to be an <if> statement for the postbit so if they have no gamer Ids the Gamer IDs: text doesn't show up.

JonoE 01-05-2010 09:54 PM

Quote:

Originally Posted by ShawnV (Post 1948256)
Very nice addition to the MOD, however the pop-ups from the postbit gamer ID icons need to either take you to the users profile or to the actual game profile as do the ones in the profile block.

Note: Also there needs to be an <if> statement for the postbit so if they have no gamer Ids the Gamer IDs: text doesn't show up.

I second both above.

CrosseyedGamer 01-05-2010 11:15 PM

For the few that upgraded and didn't have anything showing, here is probably why -
**All phrases in v2.0 are changed, so after upgrade you should enter the field ID of each platform again!!**

Mine is working just fine once I added in the proper field IDs.
thanks!

BaziCenter 01-06-2010 07:24 AM

Quote:

Originally Posted by struff (Post 1948215)
I'm not getting anything in the postbit

Did you upload the gamericons to your forum/images/misc folder?
Quote:

Originally Posted by ShawnV (Post 1948256)
Very nice addition to the MOD, however the pop-ups from the postbit gamer ID icons need to either take you to the users profile or to the actual game profile as do the ones in the profile block.

Note: Also there needs to be an <if> statement for the postbit so if they have no gamer Ids the Gamer IDs: text doesn't show up.

Each Pop-up only open one new link right now, so it can't open a new window and take you to the gamer profile page at the same time.
however I will work on it for better pop-up and more options.
-------------------------------
Will fix the Gamer IDs: phrase in the next version.

XShava 01-06-2010 07:44 AM

1 Attachment(s)
Gread Mod, thank!

Can you made next version drop down option to choice EU or USA in AdminCP.

I mean


Code:

<!-- PSN ID -->
                <div class="gamerid" align="left">
                        {vb:rawphrase profile_sidebar_gamercards_psnid}&nbsp;<a href="http://eu.playstation.com/psn/profile/{vb:raw gamerid.psnid}" target="_blank">{vb:raw gamerid.psnid}</a>
                </div>
                <vb:if condition="$show_gamercard">
                <div class="gamercard" align="center"><a href="http://eu.playstation.com/psn/profile/{vb:raw gamerid.psnid}" target="_blank"><img src="http://mypsn.eu.playstation.com/psn/profile/{vb:raw gamerid.psnid}.png" width="215" border="0" /></a></div>
                </vb:if>               
                <div class="gamerid-separator"></div>

Its not so good that USA, but USA not work for us. So that EU is best for us in EU.

Lightwizzard 01-06-2010 10:20 AM

Ty for this nice Add-on and Ty 4 the update

ShawnV 01-06-2010 04:37 PM

Quote:

Originally Posted by BaziCenter (Post 1948529)
Did you upload the gamericons to your forum/images/misc folder?

Each Pop-up only open one new link right now, so it can't open a new window and take you to the gamer profile page at the same time.
however I will work on it for better pop-up and more options.
-------------------------------
Will fix the Gamer IDs: phrase in the next version.


I agree, so would it not be better if the postbit icon just took you to the actual profile, rather then doing a pop up of the badge info, The only reason I'd click on someones gamer ID in a postbit would be to add them as a friend or check out their stats or groups on the steam community page for example. Anyways just a suggestion, great MOD, thanks for the work on it.

Ranger187 01-06-2010 09:34 PM

Am I missing something? I installed this, images are there, did all in the instructions and all I see is: "Gamer IDs"

raistlinthewiz 01-06-2010 10:19 PM

Adding a raptr.com support will be also very good.


All times are GMT. The time now is 06:28 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.02583 seconds
  • Memory Usage 1,859KB
  • 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_html_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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