e107help.org Q&A
0 like 0 dislike
Hi all,

normally i would use

SC_BEGIN USER_COUNTRY
global $user;
return $user['user_country'];

SC_END

With the combination {USER_COUNTRY} in the template.

To show the country entered by a member of a e107 site but now i am getting the nl instead of Netherlands,

what do i have to use to get the whole countryname?

Please help!

Alex
e107 version e107 github very recent
closed
in Plugins by (16 points) 1 4
closed by

1 Answer

0 like 0 dislike
Best answer

There were some fixes in last time. Check closed github issues with word country.

I think you should call this: (change variable).  But there is already shortcode for this I think. 

e107::getForm()->getCountry($opp_country);

by (1.7k points) 12 37 50
selected by
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
858 questions
1,254 answers
2,177 comments
5,895 users