News:

Join the Facebook Fan Page.

Main Menu

Country Problem

Started by erased, February 27, 2015, 02:40:32 PM

Previous topic - Next topic

erased

Hello, I have a problem with the Country's and don't know how to fix it. Under my profile shows 3 flags instead of 1.

Proof :

Mortissimov

Go you use a custom profile field or a mod for showing this?

erased

I use http://custom.simplemachines.org/mods/index.php?mod=417 , but it was bugged.. maybe only in my site.. i don't know, so i delete , but still country's r there, as you see in the picture, which i showed you.. they are 3 and it's annoying. Tell me how to fix it, please. :-\

Mortissimov

Open your theme's Display.template.php and search for:

// Show the country they hail from!
if (isset($message['member']['country_flag']) && !empty($modSettings['country_flag_show']) && !empty($message['member']['country_flag']))
{
$flags = CountryFlag();
echo '
<li class="gender">', $txt['country_flag'], ': <img src="', $settings['images_url'], '/flags/', $message['member']['country_flag'], '.png" alt="', $message['member']['country_flag'], '" title="', $flags[$message['member']['country_flag']], '" /></li>';
}


If it is there more than one time in code, then delete it.

erased

I reviewed this twice , but didn't saw such thing..?

Kindred

Looks like you installed the mod three times...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

erased

Thats true.. because mod has bugs.. if you know, tell me how to fix it.

Kindred

Because the mod has bugs, you installed multiple times?   Sorry, but that does not make a whole lot of sense...


Additionally, for issues or questions with a mod, you should be asking in the support topic dedicated to supporting that specific mod...

Finally....   Thinly way to fix the issue of to MANUALLY go through the  code that the mod applied and remove the duplicated code in all places... Because, if you installed multiple times, it is likely that there are more sections that were duplicated
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

erased

I rather working with SMF site( I'm not very in hour with things ) and i would be thankful is you navigate me a bit to the territory of the folder.. where can be these files to delete them.

Kindred

yu won't be deleting FILES...   you need to remove (or alter) CODE lines IN the standard forum files...

the mods EDIT the forum files....

this is why you should be asking for help in the thread dedicated to supporting that mod.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: