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

[OG]Anirudh

[quote author=[OG]Anirudh link=topic=106060.msg3670067#msg3670067 date=1392535600]
How to show the country flags at post box eg

[/quote]
Bump

vbgamer45

You would need to edit the display.template.php
Community Suite for SMF - Take your forum to the next level built for 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

GamePersia

i uninstalled this mod,..
but in Miscellaneous section,..traces has been left out !!...
i am sure that this traces are of this mod !!....because when i installed it again,...traces were not there !!
http://i.imgur.com/P3xj1iB.jpg
A solution is needed,...if you want managesettings.php file for fixing this error,..i have attached it..

TheListener

Have you considered using the mods parser?

GamePersia

Quote from: Old Fossil on February 26, 2014, 09:33:19 PM
Have you considered using the mods parser?
oop's...
you are correct..
ok,..i am checking by that !!

GamePersia

Quote from: Old Fossil on February 26, 2014, 09:33:19 PM
Have you considered using the mods parser?
problem solved,..thanks for giving idea !! :P

FemR

Thanks for such a neat mod!

I noticed how many here have posted about a bug / situation when a forum user later decides to deselect/remove his flag from his profile, the line 'Country: ' along with the missing flag image icon still shows.

Yes, you can upload empty transparent 00.png to at least get rid of the broken file/image thing. But the line 'Country: ' still shows even when country is no longer selected in profile.

To get rid of it, edit your display.template.php like this:

Code (Find) Select
if (isset($message['member']['country_flag']) && !empty($modSettings['country_flag_show']) && !empty($message['member']['country_flag']))

Code (Replace it with) Select
if (isset($message['member']['country_flag']) && !empty($modSettings['country_flag_show']) && !empty($message['member']['country_flag']) && $message['member']['country_flag']!='00')


Starz0r

Is there a edit available where the flag is automatically chosen by GeoIP other than the users choosing it themselves?

Ninja ZX-10RR

Hi everyone.

Is there a way to show the country on the summary of the profile view? Which file do I need to edit and how?

Thanks in advance.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Chris B.

I'm working on figuring out were three countries are appearing under a user's name right now. I cleared out all the files that are associated with the mod but that didn't do much of any good. Going to try the mod parser next.

Looks like I was able to fix it. Took a few hours to figure it out.

Ninja ZX-10RR

Quote from: Chris B. on August 15, 2014, 01:53:22 AM
I'm working on figuring out were three countries are appearing under a user's name right now. I cleared out all the files that are associated with the mod but that didn't do much of any good. Going to try the mod parser next.

Looks like I was able to fix it. Took a few hours to figure it out.
If you experience troubles with something it would be useful to tell everyone else your solution so that if they are experiencing the same issues you are having troubles with they can try to solve it the same way :)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Rain Forest

Quote from: ♦ Ninja ZX-10RR ♦ on June 28, 2014, 12:28:07 PM
Hi everyone.

Is there a way to show the country on the summary of the profile view? Which file do I need to edit and how?

Thanks in advance.

Like this?


Ninja ZX-10RR

Yes, damn exactly. May I ask you how you did that sir?
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Rain Forest

Quote from: ♦ Ninja ZX-10RR ♦ on November 04, 2014, 12:55:20 PM
Yes, damn exactly. May I ask you how you did that sir?

Sure, sir :P

I did this:

in Profile.template.php find:

if (!isset($context['disabled_fields']['location']) && !empty($context['member']['location']))
echo '
<dt>', $txt['location'], ':</dt>
<dd>', $context['member']['location'], '</dd>




after add:

// Space for countryflags
if(!empty($modSettings['country_flag_show']) && $modSettings['country_flag_show'] == 1)
$flags = CountryFlag();
echo '

<dt>', $txt['country_flag'], ':</dt>

<dd>', (!empty($context['member']['country_flag']) && $context['member']['country_flag']!= '00') ? '<img src="' . $settings['images_url']. '/flags/' . $context['member']['country_flag'] . '.png" alt="' . $context['member']['country_flag'] . '" title="' . $flags[$context['member']['country_flag']] . '" />' :'N/A' . '</dd>';
// Space for countryflags end

Ninja ZX-10RR

Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE


coltp45

Great mods.
How to display  only the flag, no "country:"  ?

Dwarp

i didnt see da flag ??? in someone post

Steve

#1238
Quote from: Dwarp on April 19, 2015, 04:43:59 AM
i didnt see da flag ??? in someone post

They have to select a country in their profile.


Has this been answered somewhere? I'd like to remove it too.

Quote from: coltp45 on December 28, 2014, 08:49:54 PMHow to display  only the flag, no "country:"  ?
DO NOT pm me for support!

aselmani

Hi,
is there a way to add the flag of Kosovo to this mod.

Thanks in advance,

Advertisement: