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)
-   -   Profile Enhancements - PSN Portable ID in Postbit (https://vborg.vbsupport.ru/showthread.php?t=225519)

smokin1337 10-18-2009 10:00 PM

PSN Portable ID in Postbit
 
1 Attachment(s)
This will display your PSN Portable ID in postbit. You have to add 1 profile field and 1 template mod.

Example:
http://fp.profiles.us.playstation.co..._m_o_k_i_n.png

EU Example:
https://vborg.vbsupport.ru/external/2009/10/13.png

Add profile field:

Single-line textbox

Name: PSN ID

Description: Enter your PSN ID

Rest leave default

Go to postbit or postbit_legacy and find:

Code:

$template_hook[postbit_user_popup]
Add above:

Code:

<!--- / PSN Portable ID --->

<if condition="$post['fieldX']"><tr><td class="vbmenu_option">
<a href="http://profiles.us.playstation.com/playstation/psn/profiles/$post[fieldX]"><img src="http://fp.profiles.us.playstation.com/playstation/psn/pid/$post[fieldX].png" border="0" height="140" width="204" /></a></td></tr></if>

<!--- / End PSN Portable ID --->

If you are in EU use this one.

EU ONLY ADD:

You may have to play around with the EU version as far as size goes to make it look right. It's wider than the US version.

Code:

<!--- / PSN Portable ID EU --->

<if condition="$post['fieldX']"><tr><td class="vbmenu_option">
<a href="http://eu.playstation.com/psn/profile/$post[fieldX]"><img src="http://mypsn.eu.playstation.com/psn/profile/$post[fieldX].png" border="0" height="140" width="204" /></a></td></tr></if>

<!--- / End PSN Portable ID EU --->

As an alternate since the EU image is so much bigger you can use it under the users signature. Follow this to use for a sig.

In postbit or postbit legacy find:
Code:

$template_hook[postbit_signature_end]
Add above:
Code:

<!--- / PSN Portable ID EU Sig --->
<a href="http://eu.playstation.com/psn/profile/$post[fieldX]"><img src="http://mypsn.eu.playstation.com/psn/profile/$post[fieldX].png" align="center" border="0" /></a>
<!--- / End PSN Portable ID EU Sig --->

Just replace the red X's with the id of the profile field you created.

That's it, please mark installed if you use it. :D

betts02 10-19-2009 05:32 AM

removed as it messed my template up.
wll wait for someone with the knowlage as im new to this vbulletin but installed it like you said.

smokin1337 10-19-2009 04:18 PM

Quote:

Originally Posted by betts02 (Post 1901938)
removed as it messed my template up.
wll wait for someone with the knowlage as im new to this vbulletin but installed it like you said.

Should work now use the EU code instead.

marwolf 10-20-2009 02:04 PM

Doesn't work.

smokin1337 10-20-2009 02:37 PM

It does work, some themes are different. You have to know how to edit templates, also i'm thinking the person using it has to make a portable id on playstation.com. I didn't make one though and it showed mine. But EU i think you have to go make one.

betts02 10-20-2009 06:17 PM

will wait like i said for someone to maybe get it slimmer as the uk 1 is way too wide for the profile.
if i knew ho to i waould but just learning vb.lol

smokin1337 10-20-2009 07:05 PM

Quote:

Originally Posted by betts02 (Post 1902759)
will wait like i said for someone to maybe get it slimmer as the uk 1 is way too wide for the profile.
if i knew ho to i waould but just learning vb.lol

Yea it is kinda big thats why i added this:

As an alternate since the EU image is so much bigger you can use it under the users signature. Follow this to use for a sig.

In postbit or postbit legacy find:
Code:

$template_hook[postbit_signature_end]
Add above:
Code:

<!--- / PSN Portable ID EU Sig --->
<a href="http://eu.playstation.com/psn/profile/$post[fieldX]"><img src="http://mypsn.eu.playstation.com/psn/profile/$post[fieldX].png" align="center" border="0" /></a>
<!--- / End PSN Portable ID EU Sig --->

Just replace the red X's with the id of the profile field you created.

betts02 10-20-2009 07:16 PM

seen that mate but want it in profile,some members have xox 360,some ps3 an some both so would be great to get it to show in profile

zombietom 10-20-2009 07:16 PM

I made this for myself a few months back and to get any card to show you will need to go to us.playstation or eu.playstation.com and login to your PSN accoutn using your current email and password...then click on portable id and it will show up.
I just use the US version as the Eu people can still login over at us.playstation.com and the card will show.
Check it out here
http://www.tzaclan.net/forum/showthread.php?t=12925

I have user from all over .
That is how it works with the one i made.

thanks

zombietom 10-20-2009 07:18 PM

I have mine in profile
http://www.tzaclan.net/forum/member.php?u=25


All times are GMT. The time now is 05:13 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.04620 seconds
  • Memory Usage 1,740KB
  • 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
  • (7)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