vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - PS3 Gamercard in Postbit Legacy (https://vborg.vbsupport.ru/showthread.php?t=225641)

zombietom 10-19-2009 10:00 PM

PS3 Gamercard in Postbit Legacy
 
1 Attachment(s)
This is a mod i made several Months ago it should work on any version on VB.
The Good part about my code is that if a person don't enter their PS3 info nothing will show up.

Special note: To Get this mod to work and show the ps3 gamercard, your users will have to go to www.us.playstation.com and login with their PSN info, which is their email address and password. Once they do this they will just need to click on "Portable Id" and this will make the PS3 gamercard show on your forums. Even forum members from the UK will still need to go to the US playstation site.. no need to go to the EU playstation site.

There is a few options to consider with adding this ps3 gamercard mod.

If you don't have a Field ID that allows user to add in the PS3 gamertag you will need to create one.

Heres how:
Create a new profile Field (remember the field id number)
Directions:
1. In adminCP go to user profile fields
2. Click on add new profile field
3. add The following
Title - PS 3 ID
Description -Type in PS3 GamerTag.
Default Value -leave blank
Max length of allowed user input - set to whatever you want
Field Length- Set to whatever you want
Profile Field Type -Single-Line Text Box
Field Required - yes or no ..up to you..i set mine to no
Field Editable by User - YES
Private Field - NO
Field Searchable on Members List - Yes or No ..up to you
Show on Members List -yes or no ..up to you
Regular Expression - Left mine blank
Which page displays this option - select "edit your details" from the menu
Finish - Click save and remember you fieldID number

Here is the Code, Add it to your Postbit Legacy.
Look for this
PHP Code:

$post[musername]
</if>
</
div

Add this code under it and replace the X in fieldx with the field id you just created.
PHP Code:

<if condition="$post[field5]">
<
img src="http://fp.profiles.us.playstation.com/playstation/psn/pid/$post[fieldX].png" scrolling="no" frameBorder="0" height="140" width="204">
</if> 

Now here is another option.
If you have the Gamefields Icons mod installed you will use the following code.
Gamefields mod is here
https://vborg.vbsupport.ru/showthread.php?t=196587

So if you have the above mod installed use this code in your postbit legacy.

Look for this
PHP Code:

$post[musername]
</if>
</
div

Add this code under it.
PHP Code:

<if condition="$post[gf_playstation]">
<
img src="http://fp.profiles.us.playstation.com/playstation/psn/pid/$post[gf_playstation].png" scrolling="no" frameBorder="0" height="140" width="204">
</if> 


Also if you want to install Xbox Live Gamercard Block in Profile
Found here
https://vborg.vbsupport.ru/showthread.php?t=171157

You can add the code to show up in your profile under the xbox card.
You just need to edit the memberinfo_block_gamercard ..If anyone needs help with this just let me know.

Here is a demo of this mod in action
Postbit view
http://www.tzaclan.net/forum/showthread.php?t=12925

Profile view
http://www.tzaclan.net/forum/member.php?u=25

This works very well with UK and USA members.

betts02 10-20-2009 11:23 PM

installed and works reat.many thanks mate

Dr.osamA 10-21-2009 11:49 AM

thx man

brb
________
Explosive Cumshot

zombietom 10-21-2009 01:16 PM

No problem Guys. I made this months ago for my own use ..didn't really think anyone would want or need it so i never posted it up.
I also made a clan tag in postbit mod as well you might want to use it.

https://vborg.vbsupport.ru/showthread.php?t=223221

thanks

Kottonmouth801 11-28-2009 10:06 PM

Shows blank square?

saadessa 11-29-2009 01:22 PM

very nice mod thank you

zombietom 11-29-2009 03:03 PM

Quote:

Originally Posted by Kottonmouth801 (Post 1922220)
Shows blank square?

Special note: To Get this mod to work and show the ps3 gamercard, your users will have to go to www.us.playstation.com and login with their PSN info, which is their email address and password. Once they do this they will just need to click on "Portable Id" and this will make the PS3 gamercard show on your forums. Even forum members from the UK will still need to go to the US playstation site.. no need to go to the EU playstation site.

If you need some help let me know.

zombietom 11-29-2009 03:03 PM

Quote:

Originally Posted by saadessa (Post 1922477)
very nice mod thank you

Thanks and please click installed.:)

BostWick-x 11-29-2009 03:28 PM

Installed, thanks. It might be a good idea to note that the PSN ID that the user puts into their profile is case sensitive. So for example, if they put their ID in as "username" when it was really "Username", the card would not show up.

A lot of my members were wondering why theirs weren't showing up, and I figured out that it needs to be exactly how it shows up when they sign online.

Sorry if you said that somewhere, I may have missed it. Great mod, though.

betts02 11-30-2009 08:54 PM

Quote:

Originally Posted by BostWick-x (Post 1922540)
Installed, thanks. It might be a good idea to note that the PSN ID that the user puts into their profile is case sensitive. So for example, if they put their ID in as "username" when it was really "Username", the card would not show up.

A lot of my members were wondering why theirs weren't showing up, and I figured out that it needs to be exactly how it shows up when they sign online.

Sorry if you said that somewhere, I may have missed it. Great mod, though.

self explanatory really, no offence but its the same as if you log in to a site.etc it has to be the exact same

would be great if this could work with the UK version but works this way great

tommyturnage 12-12-2009 11:10 PM

whats the code to add the psn to the memberinfo_block_gamercard template?

zombietom 12-13-2009 02:59 AM

The info is included in the download, i'm pretty sure.
if not just let me know

thanks

tommyturnage 12-22-2009 02:43 AM

can you post exactly what your memberinfo_block_gamercard template looks like?

thanks

zombietom 12-22-2009 02:13 PM

Quote:

Originally Posted by tommyturnage (Post 1935117)
can you post exactly what your memberinfo_block_gamercard template looks like?

thanks

I PMed you some details

Queball_Beast 01-04-2010 10:30 PM

Hi Thanks for the Mod,

Any idea why the PSN ID wont update ? my users are are saying it wont updated because they have gotten more trophies than what it displays.

Thanks again

zombietom 01-05-2010 03:01 PM

You can login to the PSN (us.playstation.com) site a couple times a month and click portable id and then it will update.

Queball_Beast 01-05-2010 09:35 PM

Thanks I`ll inform them.

Gamelobby 02-28-2010 06:52 PM

Quote:

Originally Posted by zombietom (Post 1929693)
The info is included in the download, i'm pretty sure.
if not just let me know

For the Profile, it is not included in the download. :)



This does not exist in MEMBERINFO Template (or memberinfo_block_gamercard)
Quote:

Look for this
PHP Code:

$post[musername
</if> 
</
div


So we cant add this under it. :)
Quote:

PHP Code:

<if condition="$post[gf_playstation]"
<
img src="http://fp.profiles.us.playstation.com/playstation/psn/pid/$post[gf_playstation].png" scrolling="no" frameBorder="0" height="140" width="204"
</if> 
</if> 



zombietom 03-01-2010 12:44 AM

You need to install this first and add the ps3 code to it
Xbox Live Gamercard Block in Profile
Found here
https://vborg.vbsupport.ru/showthread.php?t=171157

Thanks

Gamelobby 03-02-2010 05:35 PM

Dont you think directions on how to do it without having to install the Xbox mod would be a good idea.?
I know there are lots of people out there that dont use Xbox..

Although i do use Xbox & have the other mod installed already. :) (but this still didn't work)

zombietom 03-03-2010 02:23 AM

well thats a easy mod to install and it looks nice.
Thanks and if you need more help ..just let me know

BadNewsAllen 04-05-2010 04:30 PM

easy to install and works great with the Gamefields Icons mod

zombietom 11-15-2010 11:40 AM

Thanks badnewsallen!

FTG LIQUID CL 12-07-2013 03:43 PM

anyone know how to make this work with 4.1.12

CAG CheechDogg 03-14-2014 10:05 AM

Quote:

Originally Posted by FTG LIQUID CL (Post 2466629)
anyone know how to make this work with 4.1.12

To make this work in V4 do the following:

Code:

<div class="pbit"><vb:if condition="$post['fieldX']">
<img src="http://fp.profiles.us.playstation.com/playstation/psn/pid/{vb:raw post.fieldX}.png" scrolling="no" frameBorder="0" height="140" width="195">
</vb:if></div>

Make sure you replace the X in both fields with your own profile id.


All times are GMT. The time now is 01:09 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.01187 seconds
  • Memory Usage 1,788KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete