Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Xbox Live Gamercard - PSN - Wii - in Profile Field; Let users show their gamer info!
Topic Started: Nov 22 2008, 01:16 AM (3,334 Views)
McKee91
Member Avatar
Member
[ *  * ]
I made several little JavaScripts that allow users to display their Xbox Live gamercard and/or PlayStation Network ID and/or Wii Friend Code in their profile field.

Preview
Posted Image

First, go to your admin control panel.
Then, on the left side select Profile Fields
Now, for new field, select 1 line text and hit Submit
At the next screen, use the following settings:

Settings
Spoiler: click to toggle


Now, from the left side of your admin control panel, select Board Templates
Put the following code(s) in JavaScripts

JavaScript
Spoiler: click to toggle


IMPORTANT!!! //<![CDATA[ and /]]> must be on their own line!!!! If the entire code is on a single line, problems may occur.


Then click Edit Board Template located at the bottom.

CSS
Spoiler: click to toggle


Click the Edit CSS button at the bottom and your done!

Remember: Capitalization and spacing matter!!

Also note: User just need to enter their username, no special characters like %20 or anything like that. They do not need to enter any code tags in the profile field.

If you have any problems with these codes, post your problems below or PM me. Include your board URL so that I can take a look at your code.
Edited by McKee91, Feb 20 2009, 06:39 PM.
Offline Profile Quote Post Goto Top
 
Xagnam
Member Avatar
Member
[ * ]
Not working for me.

First, I increased the length of the input fields, because the length wasn't large enough to post the whole ID link.

Second, do we need to put [img] tags? With or without them, it still doesn't work.

Please help: http://s6.zetaboards.com/KingdomHeartsMedia/index/
Offline Profile Quote Post Goto Top
 
EdgeMirror
Member
[ *  *  * ]
This is such a great code, I'm using them now but the PlayStation Network IDs are not showing up for some reason.

http://s15.zetaboards.com/SkyDreamers/
Edited by EdgeMirror, Jan 9 2009, 01:12 PM.
Offline Profile Quote Post Goto Top
 
Xagnam
Member Avatar
Member
[ * ]
I'm having the same problem.
Offline Profile Quote Post Goto Top
 
McKee91
Member Avatar
Member
[ *  * ]
skydreams
Nov 23 2008, 08:37 AM
This is such a great code, I'm using them now but the PlayStation Network IDs are not showing up for some reason.

http://s15.zetaboards.com/SkyDreamers/
I just signed up on your site and your PSN code does work.

But I would recommend that you update your XBL gamertag code. It needs to be updated since the new xbox experience update was released.

Look at the javascript.
It should be
Code:
 

<script type="text/javascript">
//<![CDATA[
$(function () { var ddcalled = "Xbox Live Gamertag"; $("dl.user_profile > dt:contains("+ddcalled+") + dd").each(function () { var item = $(this).text(); $(this).html('<iframe src="http://gamercard.xbox.com/'+item+'.card" scrolling="no" frameBorder="0" height="140" width="204">'+item+'</iframe>');});});
//]]>
</script>


If you have any other problems let me know.
Offline Profile Quote Post Goto Top
 
McKee91
Member Avatar
Member
[ *  * ]
Xagnam
Nov 22 2008, 10:43 AM
Not working for me.

First, I increased the length of the input fields, because the length wasn't large enough to post the whole ID link.

Second, do we need to put [img] tags? With or without them, it still doesn't work.

Please help: http://s6.zetaboards.com/KingdomHeartsMedia/index/


I'm pretty sure I know you the problem is, simple mis typing of the profile field titles.

Capitalization and spacing matter!

For example
Your have: XBox Live Gamertag
Should be: Xbox Live Gamertag


Remember: If you want your profile field titles to be changed, make sure you edit the javascript too.
Below in green is what you would want to edit.

<script type="text/javascript">
//<![CDATA[
$(function () { var ddcalled = "Xbox Live Gamertag"; $("dl.user_profile > dt:contains("+ddcalled+") + dd").each(function () { var item = $(this).text(); $(this).html('<iframe src="http://gamercard.xbox.com/'+item+'.card" scrolling="no" frameBorder="0" height="140" width="204">'+item+'</iframe>');});});
//]]>
</script>



If that didn't fix it, let me know and I'll continue to examine your code.
Edited by McKee91, Nov 24 2008, 12:13 PM.
Offline Profile Quote Post Goto Top
 
Xagnam
Member Avatar
Member
[ * ]
Well, the Xbox Live Gamertag and the Wii Friend Code show, but the PlayStation Network ID continues not to display on my forum.

Please focus your attention on that please. Again, thanks for all the support!
Offline Profile Quote Post Goto Top
 
McKee91
Member Avatar
Member
[ *  * ]
Xagnam
Nov 24 2008, 10:07 PM
Well, the Xbox Live Gamertag and the Wii Friend Code show, but the PlayStation Network ID continues not to display on my forum.

Please focus your attention on that please. Again, thanks for all the support!
I'm glad to help.

You still have problems with your code though.
For your PlayStation code, the title needs to match exactly as it is in the code.
Pay attention to the "s" in playstation

For example:

You have:
<script type="text/javascript">
//<![CDATA[
$(function () { var ddcalled = "Playstation Network ID"; $("dl.user_profile > dt:contains("+ddcalled+") + dd").each(function () { var item = $(this).text(); $(this).html('<img width="204" border="0" src="http://pid.us.playstation.com/user/'+item+'.jpg" class="psntag" />');});});
//]]>
</script>

It should be:
<script type="text/javascript">
//<![CDATA[
$(function () { var ddcalled = "PlayStation Network ID"; $("dl.user_profile > dt:contains("+ddcalled+") + dd").each(function () { var item = $(this).text(); $(this).html('<img width="204" border="0" src="http://pid.us.playstation.com/user/'+item+'.jpg" class="psntag" />');});});
//]]>
</script>
Edited by McKee91, Nov 25 2008, 02:56 AM.
Offline Profile Quote Post Goto Top
 
Xagnam
Member Avatar
Member
[ * ]
McKee91
Nov 25 2008, 02:48 AM
Xagnam
Nov 24 2008, 10:07 PM
Well, the Xbox Live Gamertag and the Wii Friend Code show, but the PlayStation Network ID continues not to display on my forum.

Please focus your attention on that please. Again, thanks for all the support!
I'm glad to help.

You still have problems with your code though.
For your PlayStation code, the title needs to match exactly as it is in the code.
Pay attention to the "s" in playstation

For example:

You have:
<script type="text/javascript">
//<![CDATA[
$(function () { var ddcalled = "Playstation Network ID"; $("dl.user_profile > dt:contains("+ddcalled+") + dd").each(function () { var item = $(this).text(); $(this).html('<img width="204" border="0" src="http://pid.us.playstation.com/user/'+item+'.jpg" class="psntag" />');});});
//]]>
</script>

It should be:
<script type="text/javascript">
//<![CDATA[
$(function () { var ddcalled = "PlayStation Network ID"; $("dl.user_profile > dt:contains("+ddcalled+") + dd").each(function () { var item = $(this).text(); $(this).html('<img width="204" border="0" src="http://pid.us.playstation.com/user/'+item+'.jpg" class="psntag" />');});});
//]]>
</script>
Thanks, it worked! But I suggest that you increase the space allotted to each profile field (20 is not enough, you need about 200+) in your instructions.

Unfortunately the space given isn't enough for each image to display fully in your profile field. Help?

AGAIN, thanks for the support, you are very helpful to those who use your codes!
Offline Profile Quote Post Goto Top
 
McKee91
Member Avatar
Member
[ *  * ]
Quote:
 
Thanks, it worked! But I suggest that you increase the space allotted to each profile field (20 is not enough, you need about 200+) in your instructions.

Unfortunately the space given isn't enough for each image to display fully in your profile field. Help?

AGAIN, thanks for the support, you are very helpful to those who use your codes!


Um, the code works fine for me. I entered in your username for the test, hope you don't mind. Click here for a Preview

I think you may have typed to much info when you entered your PSN tag name, double check it.

Remember, you only have to enter your name. No image tags or any other code.

If that doesn't work, message me back and I'll think of other solutions.



Offline Profile Quote Post Goto Top
 
Xagnam
Member Avatar
Member
[ * ]
McKee91
Nov 25 2008, 06:15 PM
Quote:
 
Thanks, it worked! But I suggest that you increase the space allotted to each profile field (20 is not enough, you need about 200+) in your instructions.

Unfortunately the space given isn't enough for each image to display fully in your profile field. Help?

AGAIN, thanks for the support, you are very helpful to those who use your codes!


Um, the code works fine for me. I entered in your username for the test, hope you don't mind. Click here for a Preview

I think you may have typed to much info when you entered your PSN tag name, double check it.

Remember, you only have to enter your name. No image tags or any other code.

If that doesn't work, message me back and I'll think of other solutions.



It works now! Thanks for all the help! Sorry for all the trouble.

I hadn't realized that you only needed to put your username in the profile field! Perhaps you should say that in your instructions! (because I was using the code that PlayStation provided for the image)
Offline Profile Quote Post Goto Top
 
McKee91
Member Avatar
Member
[ *  * ]
Quote:
 
It works now! Thanks for all the help! Sorry for all the trouble.

I hadn't realized that you only needed to put your username in the profile field! Perhaps you should say that in your instructions! (because I was using the code that PlayStation provided for the image)


I'm glad to help! Thanks for the instruction advice too.
Offline Profile Quote Post Goto Top
 
EdgeMirror
Member
[ *  *  * ]
EDIT: Solved. :r
Edited by EdgeMirror, Jan 9 2009, 01:16 PM.
Offline Profile Quote Post Goto Top
 
tebroc
Member
[ * ]
great code :)

is there a way to get the new playstation cards up or not? (by new i mean the eu portable ID's)
Offline Profile Quote Post Goto Top
 
McKee91
Member Avatar
Member
[ *  * ]
tebroc
Dec 6 2008, 10:25 AM
great code :)

is there a way to get the new playstation cards up or not? (by new i mean the eu portable ID's)
Yes, there is a way to use the EU Portable ID image. But first, make sure you (or whoever) registers on the PlayStation webite Register Here

Now, for the code. Just change the present PlayStation Javascript. So it should look like this. . .

JavaScript
Spoiler: click to toggle


The code above works with United Kingdom profiles and does not work for United States profiles!
Edited by McKee91, Jan 28 2009, 12:35 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code & Modification Database · Next Topic »
Add Reply