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

jen2swt

Does anyone have any thoughts?


Hunnenkoenig

#482
Really cool mod! Thanks!

I run an MMORPG portal in hungarian language and I modified this mod, so I can let people chose, what game they are playing actually.

Now I would like to give this option to the member list too, so the icons for the games appear also in the member list and people can rearrange the list by clicking on the column "Game".

I tried to do this, but I am not pro in php, so i couldn't finish the task. As I understood, the data should be written in the MySQL table, to be able to show it in the member list and make it possible to rearrange the list by the game icons, but the mod doesn't write anything into the SQL database.

Could somebody tell me, how can I do this?

Thanks in advance!

Sabre™

Maybe start your own thread, as this drifts from the actual function of this mod.
You will possibly receive the assistance you require, if asked in the appropriate board.
Try the "SMF Coding Discussion" board.
Good luck :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Hunnenkoenig


qubbah

My user ask me how them can search user by country/flag or location?
Any suggestion...

Powerbob

It has been asked before, but I will ask here again.
Will this mod be updated for smf 2.0 any time soon? Thanks.



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

Powerbob




My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

AlenNS

That would be great if someone make it compatible...

CraigPal

Quote from: Powerbob on October 20, 2008, 07:16:29 AM
It has been asked before, but I will ask here again.
Will this mod be updated for smf 2.0 any time soon? Thanks.

I've been wondering this too. My members don't want to upgrade to 2.0 if they can't have their flags. We're a very international community.

_________________
Raw Paleo Diet

FragaCampos

For all those who want to add a column with flags in the memberlist, i leave you with the code provided by [SiNaN], here.

8)

Sabre™

Nice share Fraga!!
Cheers mate, will definitely give it a whirl :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


FragaCampos

I found a bug in this mod.
When i make it mandatory for new users to choose a country, an error message appears.
But the message should be from $txt['country_flag_error_required'] and what it shows is from $txt['country_flag_required']

I solved this making the two equal, since one of them appears on the admin panel.
But it woul be nice to correct this :P

Sabre™

Nice find bro!!
So for others that may want to fix this, look in your  Register.php  template located in your  sources  dir/file

Find this
// Check if it's required to select location
if (!empty($modSettings['country_flag_required']) && empty($_POST['default_options']['country']))
fatal_lang_error('country_flag_required', false);
}


And replace with this
// Check if it's required to select location
if (!empty($modSettings['country_flag_required']) && empty($_POST['default_options']['country']))
fatal_lang_error('country_flag_error_required', false);
}


Good work fraga  :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


FragaCampos

No problem, thank you for solving this ;)

nay27uk

hi im using the country flags mod.
I have reworked the profile pages so they look nicer. however i need to center alighn somthing and dont know how, i keep getting template parse errors, can some one in the know help me please.

this is the code im strugling with



// Did they select a flag?
if(isset($context['member']['options']['country']) && !empty($context['member']['options']['country']))
{
  $flags = CountryFlag();
  echo
       $flags[$context['member']['options']['country']] . ' <img src="', $settings['default_theme_url'], '/images/flags/', $context['member']['options']['country'], '.png" alt="Country"/>';
}


and this is the part i wish to be centered

$flags[$context['member']['options']['country']] . ' <img src="', $settings['default_theme_url'], '/images/flags/', $context['member']['options']['country'], '.png" alt="Country"/>';

Does anyone know how i do it please

nay27uk

Quote from: Papa on July 31, 2008, 09:48:08 PM
Anyone have this mod packaged up and working for 1.1.5?

Thanks for replys.

working on 1.1.7

AlenNS

1.1.7?
WTF?

Can someone make this mod for SMF 2.x?

Sabre™

Maybe someone will take over when smf 2 is stable, but converting from 1.x.x to 2 isnt as easy as mixing up a few codes.
It takes time and relearning as the structure is different.

If someone decides to make it compatible for smf 2, it will be announced
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


AlenNS


Advertisement: