News:

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

Main Menu

Country flag field 2.1

Started by Ritsu, September 14, 2021, 05:22:48 PM

Previous topic - Next topic

Ritsu

Hi there, basically I want to create a field where one can select its country (name) and the flag would appear on one's profile and post.

Basically the Country Flags mod but for 2.1 but since there's none, all I did was come up with what I did on the attachment lol

I don't want to annoy someone with a perfect answer but where should I be looking at to create such field?

Steve

Are you on 2.1 or 2.0.x?

Wouldn't this mod accomplish what you want? https://custom.simplemachines.org/index.php?mod=417
DO NOT pm me for support!

Shades.

Quote from: Steve on September 14, 2021, 08:21:36 PMAre you on 2.1 or 2.0.x?

Wouldn't this mod accomplish what you want? https://custom.simplemachines.org/index.php?mod=417

Ehh?

Quote from: Ritsu on September 14, 2021, 05:22:48 PMBasically the Country Flags mod but for 2.1 but since there's none, all I did was come up with what I did on the attachment lol

I don't want to annoy someone with a perfect answer but where should I be looking at to create such field?

I'd say he's on 2.1 but wants the mod updated! ;)  :P
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

Steve

I'm thinking so too but wanted to make sure before I moved this to the correct support board. :)
DO NOT pm me for support!

Speed King

I made custom profile field on my forum, with this code:

<img src="https://bg-nacionalisti.org/BNF/images/{INPUT}.png" alt="{INPUT}" /> {INPUT}
Set field type to 'Select box', you need to add image flag files for all countries you want; these images must have same names as related countries (and without accented characters).
Be sure that URL to image files is typed correctly in the code.

Steve

DO NOT pm me for support!

Kindred

basically, most custom field stuff can be duplicated in 2.1 without a mod - by using the custom profile fields, as speed king has noted.
Сл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."

Arantor

The only downside is porting over old fields to new ones but that's often not *that* hard to do with a very careful INSERT INTO ... SELECT FROM query.

Shades.

Quote from: Speed King on September 14, 2021, 10:42:28 PMI made custom profile field on my forum, with this code:

<img src="https://bg-nacionalisti.org/BNF/images/{INPUT}.png" alt="{INPUT}" /> {INPUT}
Set field type to 'Select box', you need to add image flag files for all countries you want; these images must have same names as related countries (and without accented characters).
Be sure that URL to image files is typed correctly in the code.
Phew! That was a lot of countries to add but thanks for that! ;)  8)
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

Advertisement: