MyBB Community Forums

Full Version: Location Field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
Im new to these forums and my own   Blush

But im wondering if it is possible to install a mod/plugin that allows you to:-

1) Pick the location you are from (for example UK, China, America, Slovenia etc) and when you do it puts a "field" that says something like:-
Location: England [Image: england.gif]

2) This is then displayed in Members profile AND under their profile field next to a post they make.

3) Make it a field when people Register (that admin can make it a field you HAVE to fill in or not... up to the admin?)

4) Also make it a drop down menu ( and default would be "Bot" or "lazy" or what ever someone wants to put in)

Now this might already be avaliable, but when i search myBB Location mod.... so much unrelated stuff pops up lol

Thanks for any help Smile
You don't need a plugin for this, I guess...
You can use "Custom Profile Fields".
ACP > Configuration > Custom Profile Fields
see Country Flag plugin

Quote:4] ... default would be "Bot" or "lazy" or what ever someone wants to put in
this needs to be added - might not be a difficult task for a coder.
(2020-04-21, 03:43 PM).m. Wrote: [ -> ]see Country Flag plugin

Quote:4] ... default would be "Bot" or "lazy" or what ever someone wants to put in
this needs to be added - might not be a difficult task for a coder.
Thanks Im using that now....

I would like it to show Name of Country as well instead of Just a flag...

ANy way of knowing how to do that?

also an easy way of editing to add countries like England ( i find it strange thats not included by default lol)
displaying name of country :
forum admin panel >> Templates & Style >> Templates >> Global Templates

in global_country & postbit_country named templates
you can add {$country['name']} at the end of the code
[add brackets if required - eg. ({$country['name']})]

adding/removing country & flag :
forum admin panel >> configuration >> countries (at left column menu)

[MyBB Templates System]
You need to add into plugin file.

Actually it uses United Kingdom but it is for that country, so you can use england by adding it manually

And into templates.

postbit_country

<br />{$lang->country}: <img src="{$country['flag']}" alt="{$country['name']}" title="{$country['name']}" />

Add it like:

<br />{$lang->country}: <img src="{$country['flag']}" alt="{$country['name']}" title="{$country['name']}" /> {$country['name']}

And done...


Or more easy use this plugin file that have all the changes you need to uninstall and install again.