Sim9
12-02-2006, 10:00 PM
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.
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.