Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Nintendo Wii Friend Code in Profile & Postbit Details »»
Nintendo Wii Friend Code in Profile & Postbit
Version: 1.00, by Sim9 Sim9 is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 12-02-2006 Last Update: Never Installs: 29
Template Edits
Additional Files  
No support by the author.

A quick guide on adding a Nintendo Wii Friend Code profile field and postbit icon. Example here 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:

HTML Code:
<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:

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

HTML Code:
<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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-19-2006, 09:34 PM
Smooth Adam Smooth Adam is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #13  
Old 12-20-2006, 12:57 AM
SkippySkippy's Avatar
SkippySkippy SkippySkippy is offline
 
Join Date: Sep 2006
Location: Behind You.
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice addon, my forum has been looking for something like this!

-Skip
Reply With Quote
  #14  
Old 12-21-2006, 12:24 AM
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks all, glad to hear you found it useful

Quote:
Originally Posted by Necrosaro420 View Post
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!
Quote:
Originally Posted by Canis Firebrand View Post
If you just cut and pasted this part,

Code:
<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

Quote:
Originally Posted by Smooth Adam View Post
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
Reply With Quote
  #15  
Old 03-20-2007, 03:24 PM
Reinhart Reinhart is offline
 
Join Date: Mar 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check out http://www.wiipals.net
Ive got it set up there. (In the Forum)
Friend Codes Galore.
Reply With Quote
  #16  
Old 03-26-2007, 07:29 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks........
Reply With Quote
  #17  
Old 02-23-2008, 07:19 AM
Xray12345 Xray12345 is offline
 
Join Date: Jan 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 02-23-2008, 04:10 PM
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Double check your $post[YOUR_WII_FIELD_NAME_HERE] corresponds to the field name you created in step 1?
Reply With Quote
  #19  
Old 02-24-2008, 07:04 AM
Xray12345 Xray12345 is offline
 
Join Date: Jan 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 02-24-2008, 07:42 PM
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's a private link - can you open up permission to guests or post a guest login so we can admire it?
Reply With Quote
  #21  
Old 02-28-2008, 02:28 AM
Xray12345 Xray12345 is offline
 
Join Date: Jan 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:


Heres how it should look when you click on the game to add your friendcode to it:


Heres how it should look in the profile:


Heres how it should look with your mouse hovered over it in profile:


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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:41 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14988 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete