News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

CountryFlags

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

Previous topic - Next topic

Sabre™

My pleasure mate :)
Your code may be cleaner than mine, so Any contribution is Always appreciated.

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


bbmtalk

#561
Hi Sabre, thanks for the mod.

A member has requested to add Scotland flag. Can you help?

Found a solution.

1. Edit Sub.php and add the flag to the array.
2. upload the flag image to "flags" folder in the Default theme images folder. 

Sabre™

Congrats on sorting it out mate :)
I didnt realise the Scottish flag wasnt in there, as the package I use is different to this one, and has many other flags in it, all gifs.
I just thought I'd update the original package for whomsoever wanted it.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


mark3

Hi

I would like to put 2 flags in profile. Is this possible?

thanks.

Neverhurry

Hi, anybody know where can i find a Flag mod for smf 2.0? Thank you!
I am using SMF 2.0.1, curve themes.

bbmtalk

I have this flag mod installed and am just wondering if it is possible to display a list of countries with members who have selected their flags on a pag. It is similar to the location mod that displays the map. Unfortunately, the location mod is not compatible with later version of SMF.

Any idea?

Sabre™

Quote from: mark3 on August 16, 2009, 07:09:21 PM
Hi

I would like to put 2 flags in profile. Is this possible?

thanks.

You could try duplicating the code for the profile page and see if that works.

Quote from: neverhurry on August 22, 2009, 04:10:48 AM
Hi, anybody know where can i find a Flag mod for smf 2.0? Thank you!

Until somebody makes an official package, [This update is For SMF 1.1.x & SMF2]

Quote from: bbmtalk on September 03, 2009, 01:44:56 PM
I have this flag mod installed and am just wondering if it is possible to display a list of countries with members who have selected their flags on a pag. It is similar to the location mod that displays the map. Unfortunately, the location mod is not compatible with later version of SMF.

Any idea?

It should be possible buddy.
Good luck :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


bbmtalk

Quote from: Sabre™ on September 03, 2009, 04:31:29 PM
It should be possible buddy.
Good luck :)

Thanks. What file or mod should I look into?

Sabre™

You could probably compare both this mod and the location mod, and make the necessary edits.
I have no knowledge of the location mod, but may have a look at it when time permits.
I currently use the [Member Map] mod, so have no real need for the location mod.

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


bbmtalk

No success with displaying flags on a page like location mod.

I noticed that in the PM display, the flags are not shown as in the topic view. I tried to edit InstantMessage.template.php and copy the code from Display.template.php but the flag is not showing. Did I do something wrong?

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

Arantor

thefley also posted the modifications necessary for this mod so that it could be used on for states rather than countries - please see http://www.simplemachines.org/community/index.php?topic=337017.0

Lolafish

Quote from: bbmtalk on July 23, 2009, 09:38:22 PM
Does this package work with 1.1.10?

I haven't been able to get it too, even after making all of the modifications required for this version.  I do get flags listed in posts once the member makes a choice in their profile...but I really need it to work on registration.  I had it working on an older version and custom theme, and I've gone over every single file involved and cannot find any mistakes.  I got rid of some duplicity, but that didn't help either. 

Can someone help for a bit?  I would very much appreciate it. Thanks!

AquaPuppies - A Goldfish Community
www.aquapuppies.com

Running SMF 2.0.2 & SimplePortal 2.3.5

JBlaze

Update:

I have taken over this mod from JayBachatero. I will be updating it to work for 2.0 as well as fix some things for the 1.1.x series.
Jason Clemons
Former Team Member 2009 - 2012

JBlaze

Updated:
9/24/2009 - v1.0.3
o Taken over by JBlaze
o Added new flag images
! Fixed version error
Jason Clemons
Former Team Member 2009 - 2012

Qayyom Ashraf

But it is not visible in Posts

any working/live demo?
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

Lolafish

Quote from: qayyom on September 25, 2009, 03:36:31 AM
But it is not visible in Posts

Works for me in posts.  Just not on registration. (In v. 1.1.10)

What version are you running it in, and do you have the default or a custom theme?

AquaPuppies - A Goldfish Community
www.aquapuppies.com

Running SMF 2.0.2 & SimplePortal 2.3.5

Lolafish

Quote from: JBlaze on September 25, 2009, 12:41:47 AM
Update:

I have taken over this mod from JayBachatero. I will be updating it to work for 2.0 as well as fix some things for the 1.1.x series.

Okay. Thanks for the update.

AquaPuppies - A Goldfish Community
www.aquapuppies.com

Running SMF 2.0.2 & SimplePortal 2.3.5

Sabre™

Quote from: JBlaze on September 25, 2009, 12:41:47 AM
Update:

I have taken over this mod from JayBachatero. I will be updating it to work for 2.0 as well as fix some things for the 1.1.x series.

Good man!
Finally the mod is resurrected
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Paul_Pauline

First off, nice mod !

Two questions  ..........

1.

I see that you have flags for England, Scotland & Wales in the images folder, but they are not listed   in the dropdown menu when members sign up, would it be possible for you to add them ?

2.

It is possible to get animated versions of country flags (Blowing in the wind), if I were to grab these flags and place them in the images folder for the mod, giving them the same name as the original flags & over writing them, would they then show as animated on the board ?

Thanks, Paul.
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

Arantor

JBlaze will have to answer question 1, but with question 2, yes if you put animated versions over the top of the non animated ones (assuming the file names are the same) that would work.

Advertisement: