News:

Wondering if this will always be free?  See why free is better.

Main Menu

CountryFlags

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

Previous topic - Next topic

shadav

question, or maybe feature request?

Would there be, or how can I, show in the who's online the image of the flag and how many users are using it
does that make sense?

daveb47

Can anyone tell me how to get this working on Vakit theme please
https://daveb47.co.uk

A Slinky is like Jeremy CorbynWinehouse,Weird looking,Not really of any use to anybody.
But its really funny when it falls down the stairs!!:D:D

Kindred

you will have to manually apply the template changes to whatever templates that theme uses...

https://wiki.simplemachines.org/smf/Error_in_mod_installation
Сл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."

shadav

for some reason i'm now getting

8: Undefined variable: flags
File: /forum/Themes/SN/Profile.template.php
Line: 93

line 93
', $context['member']['location'], ' ', (!empty($context['member']['country_flag']) && $context['member']['country_flag']!= '00') ? '<img src="' . $settings['default_images_url']. '/flags/' . $context['member']['country_flag'] . '.png" alt="' . $context['member']['country_flag'] . '" title="' . $flags[$context['member']['country_flag']] . '" width="20px" />' :'N/A' . ' ';

Kindred

your code is screwed up
that code does not appear anywhere in the code for this mod...


that line is supposed to be

<img id="flags" src="', $settings['images_url'], '/', isset($context['member']['country_flag']) && !empty($context['member']['country_flag']) ? 'flags/' . $context['member']['country_flag'] . '.png': 'blank.gif', '" width="25" height="15" alt="" align="top" />'
Сл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."

shadav

Quote from: Kindred on July 07, 2020, 01:59:40 PM
your code is screwed up
that code does not appear anywhere in the code for this mod...


that line is supposed to be

<img id="flags" src="', $settings['images_url'], '/', isset($context['member']['country_flag']) && !empty($context['member']['country_flag']) ? 'flags/' . $context['member']['country_flag'] . '.png': 'blank.gif', '" width="25" height="15" alt="" align="top" />'


eh it was probably me playing around trying to get it to display next to the location....
I tried the code you posted and still getting
8: Undefined variable: flags
File: /forum/Themes/SN/Profile.template.php
Line: 93

Kindred

then you really broke something, because there is no variable or even subvariable called flags in the code that the mod uses.... nor in the code that I copied...

So, this would appear to be a problem with whatever edits you made, not with the mod code -- and we have no idea what edits you have made.
Сл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."

KittyGalore

Any chance this mod can be updated for 2.1
SMF Curve 2.0x

Shades.

Quote from: KittyGalore on March 11, 2022, 03:33:31 PMAny chance this mod can be updated for 2.1
I second that with a P-l-e-a-s-e! O:)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

landyvlad

I third it !
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Steve

I'll fourth it!
DO NOT pm me for support!

-Rock Lee-

I understand that yes that it would only take time to achieve it, although I still believe that vbgamer45 time is 32 hours a day ::). While they wait I can share mates and alfajores, time passes faster O:).
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

landyvlad

I love this mod and am really looking forward to a 2.1 version - its something I'll miss when I upgrade the forum this weekend.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Steve

DO NOT pm me for support!

landyvlad

@SMFHacks.com Team

Any progress on making this 2.1.x compatible? (or is that not planned)


My members love this mod and will miss it in our upgrade.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Shades.

Quote from: landyvlad on December 06, 2022, 01:42:32 AM@SMFHacks.com Team

Any progress on making this 2.1.x compatible? (or is that not planned)


My members love this mod and will miss it in our upgrade.
While I've been waiting for this mod to be updated also, @landyvlad I did this https://www.simplemachines.org/community/index.php?topic=578961.msg4098007#msg4098007

It's a lot of work but it did the job for now! ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

landyvlad

Ta.
I really would love to see the mod officially updated.

Is what you've done  reversible easily if the mod does get updated to work in 2.1?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Speed King

Quote from: landyvlad on December 07, 2022, 07:04:33 PMIs what you've done  reversible easily if the mod does get updated to work in 2.1?

Yes, disable related profile field :)

But with profile field enabled, you will have image flags always active, with all templates, regardless minor/large forum upgrades.

Shades.

Quote from: landyvlad on December 07, 2022, 07:04:33 PMTa.
I really would love to see the mod officially updated.

Is what you've done  reversible easily if the mod does get updated to work in 2.1?
Yes and what @Speed King said you can just disable it and/or remove it in custom profiles. But also note that it won't work with the mod once/if the mod is updated and enabled. In other words, you can only use one or the other. If you decide later to use the mod, everyone will have to update their country.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

vbgamer45

Updated for SMF 2.1.x!
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

Advertisement: