Customizing SMF > Modifications and Packages

CountryFlags Updated for SMF 2.0

<< < (3/232) > >>

JayBachatero:
Parijs add this to the /Themes/wow/languages/Modifications.engligh.php

--- Code: ---// 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';

--- End code ---

zigzag it seems like you installed the first package that I released.  What you have to do is uninstall that mod.  Delete it and redownload the package that I have there now.  That should fixed the issues that you are having.

zigzag:
Hi, I've tried that and it's the same, I tried also installing it without the modifications I made to the countries just in case it was something I'd done but I still get the same error and it doesn't show up on the Register.template.php even though the code is there:


--- Code: ---// If flags is set for registration show it.
if (!empty($modSettings['country_flag']) && $modSettings['country_flag'] == 2 || $modSettings['country_flag'] == 3)
{
// Call the function that has all the flag info
$flags = CountryFlag();

echo '
<script language="JavaScript" type="text/javascript">
function showflags()
{
document.images.flags.src = document.forms.creator.country.options[document.forms.creator.country.selectedIndex].value != \'\' ? \'' . $settings['default_theme_url'] . '/images/flags/\' + document.forms.creator.country.options[document.forms.creator.country.selectedIndex].value + \'.png\' : \'' . $settings['default_theme_url'] . '/images/flags/blank.gif\';
}
</script>
<tr>
<td width="40%" align="top">
<b>', $txt['country_flag_label'], ':</b>
</td>
<td>
<select name="country" onchange="showflags()">
<option value=""></option>';

// Loop and show the drop down.
foreach ($flags as $key => $name)
echo '
<option value="', $key, '">', $name, '</option>';

echo '
</select>
<img id="flags" src="', $settings['default_theme_url'], '/images/blank.gif" width="25" height="15" align="top" />
</td>
</tr>';
--- End code ---

Parijs:
Awesome Jay, thanks that worked...but is there something else I must modify in my wow dk theme files in order for this to show up in peoples profile menues and also on the register page?  cause I got all the settings correct in my Admin Panel but its not showing up.

Parijs

JayBachatero:
Paris that should be correct.  zigzag I'll look into it when I get home form work tonight.  In the mean time try this file.

Parijs:
Jay.....can I ask for u to take a look at my admin panel to make sure i got this done correctly?  I can PM u the link to my forum and I will give u admin access.  I hope u dont think I am being forward.  But this Mod would be rockin on my forum as my members are loving all the mods I am adding from u guys.  Pretty please?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version