News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

CountryFlags

Started by SMFHacks.com Team, August 14, 2006, 01:07:43 PM

Previous topic - Next topic

Dracopaion

That worked for adding the country column unfortunately it didn't repair the problem im still seeing when you log in  :

Database Error
Field 'country' doesn't have a default value
File: C:\inetpub\wwwroot3\Sources\Subs.php
Line: 2760

and when you log out:

Database Error
Database Error Please try again. If you come back to this error screen, report the error to an administrator.

Matthew K.

That means the queries are still looking for country. Go ahead and attach your Subs.php and Load.php (both in ./Sources) and I'll try to help you out.

Dracopaion

As your request subs.php and load.php have been attached. hope this helps if not just let me know what you need.

Dracopaion

Gentlemen

Any luck on finding a solution to my problem or would it be best if I just backed up my data deleted everything and started from scratch again?

Not my first choice of actions of course but better that then flogging a dead horse if there isn't a clear solution and tying you up with it.

Dracopaion

I managed to figure out the problem. It was as I suspected a database problem not a problem with your mod. If you recall I mentioned that the sever had crashed, what looks like happened when it restarted MySQL it started it in strict mode even though the ini it's set not to. So to quick test this I ran [SET @@global.sql_mode= '';] in myphpadmin started up the web page and it works perfectly. No more errors logging in or out.

So I thank you for the time you spent looking into this for me but it looks like its fixed and also how do I mark this as solved In this forum or is that needed?

repxl


TheListener

Quote from: repxl on June 26, 2012, 11:03:12 AM
when comes out the 2.0.2 ?

The mod works on 2.0.2 already.

Look at the mod emulate link in my signature.

Diego Andrés

Quote from: Dracopaion on June 26, 2012, 12:13:57 AM
how do I mark this as solved In this forum or is that needed?

That's only when you are requesting support in your own topic.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Matthew K.

This modification is most definitely compatible with SMF 2.0.2. I just got home from working at a camp, and I was almost finished with the update. Once I catch up on some of my freelancing projects that fell behind and just pick up the pace a little bit, I'll shoot out the update quickly.

Apllicmz

Please Update linguage files Portuguese


    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Country Flag mod translate by Candidosa2
$txt['country_flag_label'] = 'Selecione seu pa&iacute;s';
$txt['country_flag_error_required'] = 'Voc&ecirc; deve selecionar o pa&iacute;s a qual nos visita';
$txt['country_flag_ask'] = 'Pe&ccedil;a bandeira do pa&iacute;s em';
$txt['country_flag_disabled'] = 'N&atilde;o mostrar (Desactivado)';
$txt['country_flag_profile'] = 'Perfil';
$txt['country_flag_registration'] = 'Registo';
$txt['country_flag_both'] = 'Ambos';
$txt['country_flag_required'] = 'Exigir um membro para selecionar um local?';
$txt['country_flag_show'] = 'Mostrar bandeiras na p&aacute;gina de exibi&ccedil;&atilde;o (Onde as mensagens s&atilde;o mostradas).';
$txt['country_flag'] = 'Pa&iacute;s';
]]></add>
        </operation>
    </file>
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Country Flag mod translate by Candidosa2
$txt['country_flag_label'] = 'Selecione seu pa&iacute;s';
$txt['country_flag_error_required'] = 'Voc&ecirc; deve selecionar o pa&iacute;s a qual nos visita';
$txt['country_flag_ask'] = 'Pe&ccedil;a bandeira do pa&iacute;s em';
$txt['country_flag_disabled'] = 'N&atilde;o mostrar (Desactivado)';
$txt['country_flag_profile'] = 'Perfil';
$txt['country_flag_registration'] = 'Registo';
$txt['country_flag_both'] = 'Ambos';
$txt['country_flag_required'] = 'Exigir um membro para selecionar um local?';
$txt['country_flag_show'] = 'Mostrar bandeiras na p&aacute;gina de exibi&ccedil;&atilde;o (Onde as mensagens s&atilde;o mostradas).';
$txt['country_flag'] = 'Pa&iacute;s';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Country Flag mod translate by Candidosa2
$txt['country_flag_label'] = 'Selecione seu pa&iacute;s';
$txt['country_flag_error_required'] = 'Voc&ecirc; deve selecionar o pa&iacute;s a qual nos visita';
$txt['country_flag_ask'] = 'Pe&ccedil;a bandeira do pa&iacute;s em';
$txt['country_flag_disabled'] = 'N&atilde;o mostrar (Desactivado)';
$txt['country_flag_profile'] = 'Perfil';
$txt['country_flag_registration'] = 'Registo';
$txt['country_flag_both'] = 'Ambos';
$txt['country_flag_required'] = 'Exigir um membro para selecionar um local?';
$txt['country_flag_show'] = 'Mostrar bandeiras na p&aacute;gina de exibi&ccedil;&atilde;o (Onde as mensagens s&atilde;o mostradas).';
$txt['country_flag'] = 'Pa&iacute;s';
]]></add>
        </operation>
    </file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Country Flag mod translate by Candidosa2
$txt['country_flag_label'] = 'Selecione seu pa&iacute;s';
$txt['country_flag_error_required'] = 'Voc&ecirc; deve selecionar o pa&iacute;s a qual nos visita';
$txt['country_flag_ask'] = 'Pe&ccedil;a bandeira do pa&iacute;s em';
$txt['country_flag_disabled'] = 'N&atilde;o mostrar (Desactivado)';
$txt['country_flag_profile'] = 'Perfil';
$txt['country_flag_registration'] = 'Registo';
$txt['country_flag_both'] = 'Ambos';
$txt['country_flag_required'] = 'Exigir um membro para selecionar um local?';
$txt['country_flag_show'] = 'Mostrar bandeiras na p&aacute;gina de exibi&ccedil;&atilde;o (Onde as mensagens s&atilde;o mostradas).';
$txt['country_flag'] = 'Pa&iacute;s';
]]></add>
        </operation>
    </file>




danialasghar

Hi

Please help needed!

I have download this mod and Installed through packages.. however it was installed successfully but I can't find the settings of it. I'm using SMF v2.0.2.

The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.

this is message i got when i install it..

Where is the setting I can't find in Features and options..!

Matthew K.

Try looking through Manual Installation of Mods and make sure all of the edits are in place.

Elizabeth II

Hello,

I'm wondering.. If I edit anything in my forum profile but don't select a country it will appear as 'Country: broken image logo' If people don't select a country how can I avoid this as I hate seeing that broken/missing image thing.

thanks!

Shambles

Quote from: danialasghar on July 22, 2012, 06:26:26 PM
I have download this mod and Installed through packages..

Where is the setting I can't find in Features and options..!

Should be in Admin > Configuration > Modification Settings > Miscellaneous


Ask for country flag on

Require a member to select a location?

Show flags on Display page (Where posts are shown).

Shambles

Quote from: Mod Mark on July 28, 2012, 12:17:51 PM
...If I edit anything in my forum profile but don't select a country it will appear as 'Country: broken image logo'...

I think I saw this when I first installed it a while back. I seem to remember creating a blank image file called 00.png and put it in the flags folder. I think.

Elizabeth II

Quote from: Shambles™ on July 28, 2012, 12:32:51 PM
Quote from: Mod Mark on July 28, 2012, 12:17:51 PM
...If I edit anything in my forum profile but don't select a country it will appear as 'Country: broken image logo'...

I think I saw this when I first installed it a while back. I seem to remember creating a blank image file called 00.png and put it in the flags folder. I think.

Yeah I tried doing that without success  :(

Matthew K.

Are you using a custom theme? If so, make sure the SMF hacks image directory exists in the themes image directory.

Mandizzy

Quote from: Dracopaion on June 22, 2012, 04:00:04 PM
That worked for adding the country column unfortunately it didn't repair the problem im still seeing when you log in  :

Database Error
Field 'country' doesn't have a default value
File: C:\inetpub\wwwroot3\Sources\Subs.php
Line: 2760

and when you log out:

Database Error
Database Error Please try again. If you come back to this error screen, report the error to an administrator.

I encountered the same problem and MySQL db was running in strict mode, have already removed that and can logon to forum. However, the mod is still having issues, specifically, the status says "The Database is not installed". I tried to install it again a few times (country & city), it kept throwing the same error:

Database Error
Field 'country' doesn't have a default value
File: C:\inetpub\wwwroot3\Sources\Subs.php
Line: 2760

After a few more tries, it started to fail with this error:

Last Update Status: The MaxMind download site did not respond

I'm guessing I reached some sort of download limit perhaps? Anyway, I can see the downloaded files in C:\inetpub\wwwroot\forum\Sources\geoIP.  Next, I tried manual database choice and it fails with database error and logs this error:

Last Update Status: Database Import Error

There's no other errors being logged in mysql log or forum log events. Any help would be appreciated and keep in mind, I'm a noob when it comes to php and mysql.

Thanks



preet0925

dear sir thats both country flags mods are not working on our 2.2 version in guest register page.
God is one

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: