Customizing SMF > Modifications and Packages

CountryFlags Updated for SMF 2.0

<< < (2/232) > >>

JayBachatero:
Replace that with this.

--- Code: --- // Did they select a flag?
if(isset($message['member']['options']['country']) && !empty($modSettings['country_flag_show']))
{
$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 code ---

Assistance:
whats the difference?

JayBachatero:
You removed the closing > for img tag.

Parijs:
Im using the wow dk theme for my smf 1.1 rc2 and I installed this mod and when I go to the Admin, Features & Options section, this is all I see at the bottom.   I cant read anything.  How can I fix this?

zigzag:
Hello,
Really nice Mod :D and it works well  except I'm getting this error in my error log whenever someone goes to the registration page, I've tried all the settings on the mod but still get the same error :


--- Code: ---8: Undefined index: country_flag
File: me\smf\Themes\default\Register.template.php (before sub template - eval?)
Line: 90

--- End code ---
This is line 90:


--- Code: ---// If flags is set for registration show it.
if (!empty($modSettings['country_flag']) && $modSettings['country_flag'] == 2 || $modSettings['country_flag'] == 3)
--- End code ---


I've modified the mod ever so slightly so that it shows regions rather than countries but I don't think that's causing it, any ideas on how to fix it? I'm using the default smf theme

<EDIT> I too have the problem where it doesn't show up on the Register page if I use that setting - but I'm not really worried as I only want it to show up under profile.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version