Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: omgwtfbbqhax - tammikuu 10, 2008, 03:37:23 AP

Otsikko: [MOD Update] CountryFlags
Kirjoitti: omgwtfbbqhax - tammikuu 10, 2008, 03:37:23 AP
Looking for a updated version of CountryFlags - http://custom.simplemachines.org/mods/index.php?mod=417

Currently getting the following error using the latest version that is out CountryFlags.tar.gz (166KB) [3063]


8: Undefined index: country_flag_ask
File: C:\xampp\htdocs\aga2\forums\Themes\default\Profile.template.php (forumProfile sub template - eval?)
Line: 1425


If someone could look into this, and possibly update it / provide a fix :) I would be greatful :D

Thanks :)
Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: ディン1031 - tammikuu 10, 2008, 03:58:17 AP
If oyu use a other Language than it is possible that the translation for you language is missing ;).

Bye
DIN1031
Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: omgwtfbbqhax - tammikuu 10, 2008, 04:01:34 AP
The Default Language on the forums is English :)
Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: omgwtfbbqhax - tammikuu 10, 2008, 08:52:30 IP
bump
Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: karlbenson - tammikuu 10, 2008, 09:07:37 IP
I use that exact mod on my forums without any errors.

Its either
your using a theme other than SMF Core Default theme (which has its own Modifications.english.php)

Or your using english-utf8
In which case your missing the language strings from Modifications.english-utf8.php

When you find out where your missing the language strings, add into that file

// Country Flag mod
$txt['country_flag_label'] = 'Please select your country';
$txt['country_flag_error_required'] = 'You must select the country that you visit us from';
$txt['country_flag_ask'] = 'Ask for country flag on';
$txt['country_flag_disabled'] = 'Don\'t show (Disabled)';
$txt['country_flag_profile'] = 'Profile';
$txt['country_flag_registration'] = 'Registration';
$txt['country_flag_both'] = 'Both';
$txt['country_flag_required'] = 'Require a member to select a location?';
$txt['country_flag_show'] = 'Show flags on Display page (Where posts are shown).';
$txt['country_flag'] = 'Country';
Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: TheWrath! - tammikuu 10, 2008, 10:07:59 IP
work with 1.1.4?
Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: vbgamer45 - tammikuu 10, 2008, 10:15:26 IP
Yes it does since it works fine for 1.1.2 and no majors happened in the minor updates.
Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: omgwtfbbqhax - tammikuu 10, 2008, 10:38:44 IP
Lainaus käyttäjältä: karlbenson - tammikuu 10, 2008, 09:07:37 IP
I use that exact mod on my forums without any errors.

Its either
your using a theme other than SMF Core Default theme (which has its own Modifications.english.php)

Or your using english-utf8
In which case your missing the language strings from Modifications.english-utf8.php

When you find out where your missing the language strings, add into that file

// Country Flag mod
$txt['country_flag_label'] = 'Please select your country';
$txt['country_flag_error_required'] = 'You must select the country that you visit us from';
$txt['country_flag_ask'] = 'Ask for country flag on';
$txt['country_flag_disabled'] = 'Don\'t show (Disabled)';
$txt['country_flag_profile'] = 'Profile';
$txt['country_flag_registration'] = 'Registration';
$txt['country_flag_both'] = 'Both';
$txt['country_flag_required'] = 'Require a member to select a location?';
$txt['country_flag_show'] = 'Show flags on Display page (Where posts are shown).';
$txt['country_flag'] = 'Country';


I don't quite understand what you mean there... can you explain it for me again :) thanks!

*EDIT* I understand the second part (the $txt part)

but that's already inside my modifications.english.php file...

<?php
// Version: 1.1; Modifications
$txt['mlist_search_location'] = 'Search by location';
// Country Flag mod
$txt['country_flag_label'] = 'Please select your country';
$txt['country_flag_error_required'] = 'You must select the country that you visit us from';
$txt['country_flag_ask'] = 'Ask for country flag on';
$txt['country_flag_disabled'] = 'Don\'t show (Disabled)';
$txt['country_flag_profile'] = 'Profile';
$txt['country_flag_registration'] = 'Registration';
$txt['country_flag_both'] = 'Both';
$txt['country_flag_required'] = 'Require a member to select a location?';
$txt['country_flag_show'] = 'Show flags on Display page (Where posts are shown).';
$txt['country_flag'] = 'Country';
?>

Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: dxyy - tammikuu 11, 2008, 04:19:52 AP
I also use this mod without problems. (SMF 1.1.4)

I think you should provide a link to your forum so that others might better be able to assist you.

Another thing you can try (haha, and I readily admit I'm no expert) is to use one of the parsers (http://www.smfhacks.com/packageparser/package.php) and check to ensure everything was installed properly. ;)

Hope that helps. :)
Otsikko: Re: [MOD Update] CountryFlags
Kirjoitti: karlbenson - tammikuu 11, 2008, 07:48:51 AP
The mod only automatically installs the language strings into
Themes/default/languages/Modifications.english.php

If your using utf8 character set, you will need to copy those strings into
Themes/default/languages/Modifications.english-utf8.php

If your using a different theme which has its own Modifications.english.php and/or Modifications.english-utf8.php
eg Themes/CustomTheme/languages/Modifications.english.php
then you will need to copy those language strings into that file.