zombietom
10-19-2009, 10:00 PM
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
$post[musername]
</if>
</div>
Add this code under it and replace the X in fieldx with the field id you just created.
<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
$post[musername]
</if>
</div>
Add this code under it
<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.Just make sure all your forum members go to www.us.playstation.com even if they live out of the USA.
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
$post[musername]
</if>
</div>
Add this code under it and replace the X in fieldx with the field id you just created.
<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
$post[musername]
</if>
</div>
Add this code under it
<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.Just make sure all your forum members go to www.us.playstation.com even if they live out of the USA.