News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

PlayStation Network ID

Started by KiLLuMiNaTi-7-, June 07, 2008, 04:10:18 PM

Previous topic - Next topic

KiLLuMiNaTi-7-

Link to Mod

An updated version of this mod for 2.0 can be found here: http://custom.simplemachines.org/mods/index.php?mod=2769



PlayStation Network ID
By UTM-MaKaVeLi | Support



Introduction
This mod adds a PlayStation Network ID field to user profiles.

It also displays when user's post. You can adjust in the admin panel how it looks

Credit for userbar SonyPG.com

Compatibility:
1.1.X. It will NOT work on 2.0 beta.

Installation
Install the package to install on the default core theme/Babylon and any another theme that does NOT have a custom Profile.template.php or a custom Display.template.php or if you have copied it over from the theme it is based on, or the default theme.

Features
- Display in posts     
- Display in private message's    
- Display as a userbar (image)    
- Display as plain text
(Ex PSN ID: Name)
- Display as a PSN icon
(When you hover over. It will popup with a userbar with the users name on it.)

Custom Themes
Theme's that have a custom Profile.template.php or a custom Display.template.php. Or if you have copied Profile.template.php or/and custom Display.template.php or/and custom PersonalMessage.template.php over from the theme it is based on, or the default theme. Will require a manual edits.

All themes will require this edit.

Code (Find) Select
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
Code (Add after) Select
<script type="text/javascript" src="pxbgt/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>

Copy the included image in the package to your custom theme image directory

Run the installer first and if you can't see the PSN ID field in your profile do a manual edit. Only if you have custom template files i.e If you have copied them from the default theme

Change Log
1.0
- Initial release.
1.1
- Added to PM.
- Some code clean up.
1.2
- Added features. In the admin panel
- Portuguese & Brazilian language added. (Thanks to joomlamz!)

mattz83

Thanks, this mod will work great for my site.

However, is there any chance that there will ever be a version of this mod that simply inserts a small PS logo into your profile next to the AIM, Yahoo, and MSN icons? Then maybe when you scrolled over it a little hover window would be the one that pulled the tag info from sonypg.com [nofollow], kind of like the Xbox Gamertag mod.

Either way, nice work, and thanks!

KiLLuMiNaTi-7-

Quote from: mattz83 on July 07, 2008, 04:06:41 PM
Thanks, this mod will work great for my site.

However, is there any chance that there will ever be a version of this mod that simply inserts a small PS logo into your profile next to the AIM, Yahoo, and MSN icons? Then maybe when you scrolled over it a little hover window would be the one that pulled the tag info from sonypg.com, kind of like the Xbox Gamertag mod.

Either way, nice work, and thanks!

Yes that would be interesting. Ill look into doing that in the next version.

Thanks for the feedback  ;)

MoreBloodWine

#3
I'm getting ready to install this but since my website is geared towards the PS3 and stuff of the like it would be kinda cool if my signups could enter their PSN on registration. So could you maybe add a feature where people are given the option to enter their PSN on the registration page assuming they want to.

Edit: How do I get rid of the image part on the profile, al I wnat is the text displayed. Also, I think you could maybe do without the ID also being displayed where the buttons are since its already displayed on the post page. But ya I would kinda like a text only version of this mod without all the fancy imaging. So like for the post page below your name and stuff it would just be PSN ID: ?

Hope this all made sense...
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


KiLLuMiNaTi-7-

When im finished ill release the new version. It will have the features you asked for ;)

Apllicmz

Nice Mod update translate portuguese and brazilian

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<!-- Add string to Modifications.english.php for psnid description -->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[$txt['psnid_txt'] = 'Este &eacute; o seu PlayStation Network ID.';
$txt['psnid_txt2'] = 'PSN ID:';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<!-- Add string to Modifications.english.php for psnid description -->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[$txt['psnid_txt'] = 'Este &eacute; o seu PlayStation Network ID.';
$txt['psnid_txt2'] = 'PSN ID:';
]]></add>
</operation>
</file>



KiLLuMiNaTi-7-

Thanks a lot mate. Yes i'll put this in the update

KiLLuMiNaTi-7-

Quote from: mattz83 on July 07, 2008, 04:06:41 PM
Thanks, this mod will work great for my site.

However, is there any chance that there will ever be a version of this mod that simply inserts a small PS logo into your profile next to the AIM, Yahoo, and MSN icons? Then maybe when you scrolled over it a little hover window would be the one that pulled the tag info from sonypg.com, kind of like the Xbox Gamertag mod.

Either way, nice work, and thanks!

UPDATED

The new version has this now.

J-Rad14

Nice!

I'm installing this, will come in handy.  :D

mattz83

Quote from: UTM-MaKaVeLi on July 20, 2008, 05:39:00 PM
Quote from: mattz83 on July 07, 2008, 04:06:41 PM
Thanks, this mod will work great for my site.

However, is there any chance that there will ever be a version of this mod that simply inserts a small PS logo into your profile next to the AIM, Yahoo, and MSN icons? Then maybe when you scrolled over it a little hover window would be the one that pulled the tag info from sonypg.com [nofollow], kind of like the Xbox Gamertag mod.

Either way, nice work, and thanks!

UPDATED

The new version has this now.

Very nice, you are the man. Thanks!!

KiLLuMiNaTi-7-


MoreBloodWine

What needs to be changed to get rid of the SonyPG.com image in the profile and just have it show the PSN id in text like everything else in the profile ?
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


KiLLuMiNaTi-7-

Quote from: MoreBloodWine on August 12, 2008, 09:11:13 PM
What needs to be changed to get rid of the SonyPG.com image in the profile and just have it show the PSN id in text like everything else in the profile ?

FIND:
</td></tr><tr><td><b>'.$txt['psnid_txt2'].'</b></td> <td>', !empty($context['member']['options']['psnid']) ? '<img src="http://www.sonypg.com/sigimages/image.php?text='.$context['member']['options']['psnid'].'" alt="" />' . '' : '', '</a></td>

REPLACE
</td></tr><tr><td><b>'.$txt['psnid_txt2'].'</b></td> <td>', !empty($context['member']['options']['psnid']) ? ' '.$context['member']['options']['psnid'].' ' . '' : '', '</td>

MoreBloodWine

#13
Worked like a charm, Ty ;-)

Edit: Some of my users found it a tad hard to read someones PSN id fro mthe profile with the image attached, thats why I asked.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


terminacion

Here I leave translation into Spanish by if he needs someone

Translated by me.


Saludos ;)

jamesg

#15
hi this is a great package i have also seen that you have made a mod for xbox live gamecard :) this is really great. isnt it more kewl if both are in only 1 mod i mean xbox and psn game card module plus nintendo (do they have a gaming card or id?) :) we will be glad if this will be made thanks :)

jamesg

hello everyone i have tested this and it works fine in Firefox but seems it is not working smoothly in IE... the popup sometimes displays and sometimes not in on hover... how can this be fixed....

KiLLuMiNaTi-7-

Quote from: terminacion on August 22, 2008, 08:36:03 PM
Here I leave translation into Spanish by if he needs someone

Translated by me.


Saludos ;)

Thanks a lot mate. When i get around to it ill put it in the next version.

Quote from: jamesg on August 25, 2008, 07:52:28 AM
hello everyone i have tested this and it works fine in Firefox but seems it is not working smoothly in IE... the popup sometimes displays and sometimes not in on hover... how can this be fixed....

Thanks for your suggestion. I've tested it in IE6 and it works fine. Try reinstalling the mod maybe. Or just use the simple text.

jamesg

it happened because i used the xbox live together with psn id... i think the issue is on the xbox live gamertag that is not displaying at all times when hovered... looks like it is loading evertime i hover the xbox icon... does installing them both affects it?...

KiLLuMiNaTi-7-

Quote from: jamesg on August 25, 2008, 10:49:43 PM
it happened because i used the xbox live together with psn id... i think the issue is on the xbox live gamertag that is not displaying at all times when hovered... looks like it is loading evertime i hover the xbox icon... does installing them both affects it?...

If that is the case try installing the psnid mod. Then try manually installing xbox live gamertag mod. But miss out the edits in index.template.php.

Advertisement: