• Welcome to Simple Machines Community Forum. Please login or sign up.
December 07, 2021, 05:16:42 AM

News:

Follow SMF on Twitter.


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
Please 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
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. :)
Please 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

Please 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.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"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.
No good deed goes unpunished
All helpful urges should be circumvented

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
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: