Location Field
#1
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
Reply
#2
You don't need a plugin for this, I guess...
You can use "Custom Profile Fields".
ACP > Configuration > Custom Profile Fields
Reply
#3
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.
Reply
#4
(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)
Reply
#5
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]
Reply
#6
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.


Attached Files
.zip   Country Flag_#5_stable.zip (Size: 241.76 KB / Downloads: 17)
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)