PDA

View Full Version : Nintendo Wii Friend Code in Profile & Postbit


Sim9
03 Dec 2006, 00:38
A quick guide on adding a Nintendo Wii Friend Code profile field and postbit icon. Example here (http://forums.editingarchive.com/showthread.php?t=3735) or see attached screenshot.

Step 1: Add Profile Field

Go to your Admin CP and add a new profile field for the Wii Code. This option can be found under User Profile Fields >> Add New User Profile Field. I suggest you use Single-Line Text Box with a maximum length of 19 (that allows for 16 digits and three spaces). Name the field something like "Nintendo Wii Friend Code."

Save, and check the Profile Field Manager. Make a note of the field name. For me, it is 'field5', but your results will differ depending on what your other profile fields are.

Step 2: Create & Upload an Appropriate Image for the Postbit

Create an image that is appropriate for Nintendo Wii and will fit nicely next to the other communication icons. Since I already made an appropriate icon for Nintendo Wii news posts, I have re-used that icon on my site for Wii Friend Codes. Create an icon that works well on your site, and upload it to your images folder. Make a note of the image URL, you will need that for the next step.

Step 3: Add Postbit Icon

Now pull up the AdminCP and go to Styles & Templates >> Style Manager. Choose Edit Template for the template your site is using (repeat this step for each unique root-level tempate your site uses). Open the Postbit Templates section and choose either Postbit or Postbit_Legacy depending on which type of postbit your site uses (vertical or horizontal).

Edit the template to include an image after your communication icons are listed.

The code template to display the image is below:

<if condition="$post[YOUR_WII_FIELD_NAME_HERE]"><img src="YOUR_WII_IMAGE_PATH_HERE" alt="Wii Friend Code: $post[YOUR_WII_FIELD_NAME_HERE]"></if>For instance, here is my communication icon line before and after edits:

Before:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
</div>After:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
<if condition="$post[field5]"><img src="http://forums.editingarchive.com/images/newsposticons2/wii.jpg" alt="Wii Friend Code: $post[field5]"></if>
</div>Step 4: Test it Out & Notify Your Users

Go to your User CP, and update your profile with your Wii Code (or make one up if you don't have a Wii :P). That number should show up on your profile and as an icon in your postbit. If everything works, annouce it to your community and encourage them to add their Wii numbers.

Devil Woman
03 Dec 2006, 01:49
Thanks for this, and in advance aswell befoe it's due out in shops.

*installed*

PabloAM
07 Dec 2006, 12:13
Thanks ;)

Saulie
07 Dec 2006, 12:23
This could be really useful if it picks up.
Im just going to wait a while for the wii to come out and see if people on my forum use it and if it does definatelly a great hack!

Thanks

GamerJunk.net
09 Dec 2006, 00:53
Annoying thing is, Nintendo Friend Code is different for each game

Sim9
09 Dec 2006, 23:47
Thanks for the support, guys :)

GamerJunk.net - The Nintendo DS friend code is indeed per-game. The Nintendo Wii code is per-system. :)

GamerJunk.net
12 Dec 2006, 00:26
Ahh didn't read the Wii part

pastapiggy
16 Dec 2006, 05:29
Installed,thanks my users wanted something like this:rolleyes:

Necrosaro420
18 Dec 2006, 20:52
Ok, when I input the wii code itself while editing the profile, I can put in the # etc etc. When it shows on my postbit, itll display the image, but will not display the number? Any ideas? Thanks!

Canis Firebrand
19 Dec 2006, 18:40
If you just cut and pasted this part,

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
<if condition="$post[field5]"><img src="http://forums.editingarchive.com/images/newsposticons2/wii.jpg" alt="Wii Friend Code: $post[field5]"></if>
</div>

You need to look at the field number for your Wii code field. If it isn't field5, nothing will show when you over over the Wii image.

You'll have to see what the field number is in your profile fields manager and edit the template again to change it from field5 to whatever field number it is.

Smooth Adam
19 Dec 2006, 22:34
Thanks for this I'm using it for Wii and XBox Live GamerTag

I have a question... how can I get this to work with check boxes. I have 6 check boxes to tell which games people have in my forum. I get how the code would work I just need to know how the forum would if its checked or not?

SkippySkippy
20 Dec 2006, 01:57
Nice addon, my forum has been looking for something like this!

-Skip

Sim9
21 Dec 2006, 01:24
Thanks all, glad to hear you found it useful :)

Ok, when I input the wii code itself while editing the profile, I can put in the # etc etc. When it shows on my postbit, itll display the image, but will not display the number? Any ideas? Thanks!

If you just cut and pasted this part,

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
<if condition="$post[field5]"><img src="http://forums.editingarchive.com/images/newsposticons2/wii.jpg" alt="Wii Friend Code: $post[field5]"></if>
</div>

You need to look at the field number for your Wii code field. If it isn't field5, nothing will show when you over over the Wii image.

You'll have to see what the field number is in your profile fields manager and edit the template again to change it from field5 to whatever field number it is.

Correct, you will need to edit that code appropriately. Also please be sure to change the image URL to an image on your own server :)

Thanks for this I'm using it for Wii and XBox Live GamerTag

I have a question... how can I get this to work with check boxes. I have 6 check boxes to tell which games people have in my forum. I get how the code would work I just need to know how the forum would if its checked or not?

I must be missing something... I don't think you could represent a Wii Number with checkboxes... at least not efficiently. In binary representation, the Wii Code would need fifty-some checkboxes... and I doubt anyone would decode that :P

Reinhart
20 Mar 2007, 16:24
Check out http://www.wiipals.net
Ive got it set up there. (In the Forum)
Friend Codes Galore.

Atakan KOC
26 Mar 2007, 08:29
Thanks........

Xray12345
23 Feb 2008, 08:19
This wont work for me, it says
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/content/n/i/k/nike2132/html/forum/includes/adminfunctions_template.php(3596) : eval()'d code on line 70

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Sim9
23 Feb 2008, 17:10
Double check your $post[YOUR_WII_FIELD_NAME_HERE] corresponds to the field name you created in step 1?

Xray12345
24 Feb 2008, 08:04
I figured it out, also i installed some other products now it looks nice in the profiles, it shows friendcodes:

http://www.nintendostars.com/forum/member.php?u=1

Sim9
24 Feb 2008, 20:42
That's a private link - can you open up permission to guests or post a guest login so we can admire it? :)

Xray12345
28 Feb 2008, 03:28
Do you have any idea how to do this?

Hello, I really need someone to code this plugin! its for users to post there friendcodes for profiles.

Heres how it should look in the user cp:
https://www.vbulletin.org/forum/external/2008/03/19.jpg

Heres how it should look when you click on the game to add your friendcode to it:
https://www.vbulletin.org/forum/external/2008/03/20.jpg

Heres how it should look in the profile:
https://www.vbulletin.org/forum/external/2008/03/21.jpg

Heres how it should look with your mouse hovered over it in profile:
https://www.vbulletin.org/forum/external/2008/03/22.jpg

There should be an Area in the Admin Control Panel where you can add games and images for the games, also it should only display the image in the profile if the user added that friendcode via user cp. Im sure im not the only person needing this, so please can someone do it? :(

sp0okz
06 Mar 2008, 12:13
How can we get it like wii pals if they wont mind sharing it, thanks for the edit anyways ...

sp0okz
06 Mar 2008, 19:55
I cant get this mod to work i done it right 2 but nothing is showing extra for me :(

Xray12345
08 Mar 2008, 23:29
It simple to get it like wiipals, send me a pm if you want to know how..

poromenos
25 Mar 2008, 11:21
Do you have any idea how to do this?

Hello, I really need someone to code this plugin! its for users to post there friendcodes for profiles.

Heres how it should look in the user cp:
https://www.vbulletin.org/forum/external/2008/03/19.jpg

Heres how it should look when you click on the game to add your friendcode to it:
https://www.vbulletin.org/forum/external/2008/03/20.jpg

Heres how it should look in the profile:
https://www.vbulletin.org/forum/external/2008/03/21.jpg

Heres how it should look with your mouse hovered over it in profile:
https://www.vbulletin.org/forum/external/2008/03/22.jpg

There should be an Area in the Admin Control Panel where you can add games and images for the games, also it should only display the image in the profile if the user added that friendcode via user cp. Im sure im not the only person needing this, so please can someone do it? :(

if you find how to do that please inform us!:D

gorentals
15 Aug 2008, 15:30
I'm looking for this exact same thing. Please let me know.

Chris11987
21 Aug 2008, 10:44
Does anyone know how to add that whole Friend Code section like in the screen above?

gorentals
06 May 2009, 21:08
Anyone know how to do the above like in the screenshot? I'm willing to pay.

Feanor_87
08 Jul 2009, 22:23
^ That

Anybody figure it out? :)