Back to vBulletin 3.8 Template Modifications

PSN Portable ID in Postbit
Mod Version: 1.00, by smokin1337

vB Version: 3.8.x Rating: (1 vote - 4.00 average) Installs: 6
Released: 19 Oct 2009 Last Update: Never Downloads: 1
Not Supported Template Edits External Content  

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

Example:


EU Example:


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.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024