ScotchBonnet
Scotchsour's Place for Layouts, Codes, Icons, Mood Themes...
 
Commenting To 
 
7th-Dec-2007 08:39 am - Efiction Mod: Country of Origin with Flags
I don't really consider this my mod since I just created it from the Hogwarts Hat mod. However I like the fact I wrote it. :) I didn't implement all the flags just the ones I wanted and so here it is:



or






Images used: FamFamFam Silk and Flag Icons

Flag Image Page Download

Instead of downloading the silk package here are the extra two I used for Everywhere and Nowhere:
|
*please don't hotlink, just "save image as" to your computer.*

Download -> Extract -> Upload the flags folder to your site and if using add these two famfamfam "silk images" as well.




Note: If you don't want to use Nowhere and Everywhere, simply remove these:

Custom Form Code



and

Custom Profile Code



But remember in the last line for my Custom Profile Code remove the last {else} in the code or it won't function properly.




Log into your efiction and then:

Admin -> Profile Information -> Add New Profile

In the text boxes:
Name: flag
Title: Country
check the box for field enabled

Drop Down Menu choose:
Custom Code

In the Custom Form Code add this:



In the Custom Profile Code add this:



Go to your skin's profile.tpl and find a place to add this: Country of Origin: {flag}
Remember to change the URL in the Custom Profile Code.
Hit Save.

At Last:

Once finished, go to your Member Account Info -> Edit Bio

On the list there should be Country and drop-down list.
Choose: Country of Origin or pick from the two extras: Everywhere/Nowhere
Hit Submit.


If you wish to add more flags look at the Country Codes listed, it will correspond to the names that are in the famfamfam icons folder.

Hope this is one less thing for people to deal with modding. Thank you and Enjoy.

chipper
Comment Form 
From:
( )Anonymous- this user has disabled anonymous posting.
( )OpenID
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
  
Message:
 
Notice! This user has turned on the option that logs your IP address when posting.
Code by masterslacker. Fiddled by userinfoscotchsour. This page was loaded on Apr 23rd 2024, 8:50 pm GMT.