Customizing SMF > Modifications and Packages

CountryFlags Updated for SMF 2.0

(1/232) > >>

SMFHacks.com Team:
CountryFlags v2.0


Compatibility: 1.1.x, SMF 2.0.X
Link to Mod | Comments | Donate                           

Type: Profile
Languages:


Introduction

This mod allows your members to select from a list the countries to denote where they live.  This will include a country flag in their posts.

You can select where to ask for their country.  Upon registration, profile page or both.  Also you can make it mandatory.

To enable this mod you must go to Admin > Features and Options > Last set of options.
This was a mod request by James Woodcock.

The credits for this mod go to gobalopper's Location mod.  The flags and idea were taken from his mod.

Flags by famfamfam Flag Icons




Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Simply install the package to install on the SMF Default Core Theme ONLY.

If your theme has its own versions of the language files Modifications.english.php and/or Modifications.english-utf8.php, OR if your using a language other than those supported (listed above) by the mod then you will need to copy the language strings into each custom version of those files.

Useful Links
Manual Installation Of Mods
How Do I Modify Files?


Looking to customize this modification for your needs?
I can do paid custom development for mods that I have created.
Send me a PM with the subject Customize Mod.


Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)


Changelog
Legend:
! = Bugfix
- = Removed
+ = New Feature
o = Update
> = New Language
^ = Initial/New Release


--- Code: ---12/23/2011 v2.0
!Fixed for SMF 2.0 selecting flag on registration was not saving.
!Added some alt tags for SMF 2.0 version


1/22/2010 - v1.1
Rewrite supports SMF 2.0 RC2

9/24/2009 - v1.0.3
o Taken over by JBlaze
o Added new flag images
! Fixed version error

8/29/2006 - v1.0.2
! Fixed the bug that I thought I had fixed.

8/28/2006 - v1.0.1
! Fixed error when no flag is selected

8/26/2006 - v1.0
^ Initial release.
--- End code ---

kezayah:
Very good ...
but it doesn't appear when a guest want to register ...  :(

James Woodcock:
I think he may have fixed that already if you re-download the package.  Also make sure that 'Both' is selected in the options for this mod within the Admin area.

JayBachatero:
As James said I fixed that and reuploaded the package.  Uninstall the other one delete it and install the new one.  It has the same name.

Assistance:
hmmm

what would I need to edit to not show the text beside the flag?
search

--- Quote --- {
$flags = CountryFlag();
echo '
<img src="', $settings['default_theme_url'], '/images/flags/', $message['member']['options']['country'], '.png" alt="', $flags[$message['member']['options']['country']], '<br /><br />';
}
--- End quote ---


remove
, $flags[$message['member']['options']['country']], '" /> '

Navigation

[0] Message Index

[#] Next page

Go to full version