Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Xbox Live Gamercard - PSN - Wii in Profile Field; Show off your Gamer info!
Topic Started: Feb 26 2008, 12:15 AM (6,404 Views)
McKee91
FX Designer
[ * ]
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. (I don't have a Wii or PS3 so the images in the preview are fake, but this code works, I've tested it.)

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 code is on a single line, problems will 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!

If you have any problems with these codes, post your problems below. Include your board url so that I can take a look at your code. Thanks.

McKee


Edited by McKee91, Jul 29 2008, 01:58 PM.
Offline Profile Quote Post Goto Top
 
.Koda
Member Avatar
Livin' The Life
[ *  * ]
Okay. For me, every profile field shows up... we have multiple so multiple gamertag things show.

Is there a way to get it to just show for a specific titled one?
Offline Profile Quote Post Goto Top
 
McKee91
FX Designer
[ * ]
I know very little about coding and javascript in particular.

As of now on my board. I only have 1 profile field cause I was getting the same problem as you.

So, until someone with experience can look at this and fix it, if you want the gamercard your going to just going to have 1 profile field.
Offline Profile Quote Post Goto Top
 
RyuraGS
Member Avatar
Member
[ *  *  * ]
Code:
 

<script type="text/javascript">
//<![CDATA[
$(function () {
var ddcalled = "Gamertag";
$("dl.user_profile > dt:contains("+ddcalled+") + dd").each(function () {
var item = $(this).text();
$(this).html('<img src="http://card.mygamercard.net/mini/'+item+'.jpg" class="gamercard" />');
});
});
//]]>
</script>

Change Gamertag in this line:
var ddcalled = "Gamertag";

to what your profile field is called.
Edited by RyuraGS, Feb 27 2008, 10:17 AM.
Offline Profile Quote Post Goto Top
 
McKee91
FX Designer
[ * ]
I couldn't get the code above to work.
Offline Profile Quote Post Goto Top
 
RyuraGS
Member Avatar
Member
[ *  *  * ]
Link me to your forum where you couldn't get it to work (with the code on it) and I'll see if its an error on my part or yours.
Offline Profile Quote Post Goto Top
 
McKee91
FX Designer
[ * ]
Thanks for giving me so much support so far, I really appreciate it.

HERE's MY BOARD
Edited by McKee91, Feb 27 2008, 02:22 PM.
Offline Profile Quote Post Goto Top
 
McKee91
FX Designer
[ * ]
Thanks for taking the time to visit my board and fix the problem, GenerationStudio, I greatly appreciate it!!

So in conclusion,

The code below allows you to have multiple profile fields and still have the Xbox Live Gamercard display.

Here's the code:
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('<img src="http://www.glop.org/gamercard/card/'+item+'-large.png" class="gamercard" />'); });});
//]]>
</script>
Offline Profile Quote Post Goto Top
 
yellowdartx
Member Avatar
Zombie!!!
[ *  * ]
Using the code and it working good for my clan forum. Thanks man!
Offline Profile Quote Post Goto Top
 
Mc_Champion
Member
[ * ]
i cant get mine to work properly its there but it cuts half the image off help?

link: http://360elements.hacksource.org
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply