Hi All

Have been trying to work out how to get a website to limit new user registration to a particular country but still leave all content viewable to all visitors.

I have triad register.country and geouser modules. They just won't install.

Any other suggestions would be helpfull.

Regards

Fred

Comments

matt_harrold’s picture

I wouldn't give up too quickly with geouser, especially considering it was meant for your problem. It does work, if it isn't working for you, there must be a reason.

Others include:
http://drupal.org/project/ip2cc
http://drupal.org/project/geoip
http://drupal.org/project/hostip
http://drupal.org/project/ip2nation
http://drupal.org/project/ip2country

There is no shortage of solutions to your particular problem.

derfz’s picture

With geouser the issue is that of the GeoLiteCity.dat file. No matter where I put it the module can't find it. I did read the readme file, I googled everything I could, spent 4 hours on it, figured if I couldn't get it to work in 4 hours I wasn't going to get it to work and the module itself had issues.

I will look into your other suggestions.

Regards

Fred

derfz’s picture

I have now investigated all the options put to me.

It would seem that register.countries is the modulke that will do as I require.

Here is the message I have posted on the suppport page for the register.countries module.

I have installed register.country as per the documentation.
Everything installs without an error.
When I go to admin/settings/register_country I get the following error message.

user warning: Table 'shooter.drupal_iso3166' doesn't exist query: SELECT country_code2 AS code, country_name AS name FROM drupal_iso3166 in /var/www/sites/corpcomp/shooter.co.nz/subdomains/www/html/sites/all/modules/register_country/register_country.module on line 73.

No countries are listed at all.

I have looked at the database only to find that table drupal_iso3166 doesn't exist. Tables drupal_ip2cc and drupal_countries_api_countries do exist.

Thoughts, comments, suggestions would be most helpful.

Regards

Fred

matt_harrold’s picture

Try installing the Countries API too (http://drupal.org/project/countries_api).

derfz’s picture

The modules I installed were countries API, IP2cc and Register Country.

I installed the Countries API first.
I then copied IP2cc to the server and downloaded the data file using the fetchdb.sh as per the document, then I install the IP2cc module.
I then installed the register country module.

Regards

Fred

derfz’s picture

Have been playing with this all night now, and I am still no further ahead.

In my frustration with modules that simply don't function as expected or have a lack of support I have a single question.

How much is it going to cost me to get a functional sollution to my problem?

Solution required:
Visitors outside NZ cannot create new accounts. They can view any information on nthe site as a normal guest. Visitors within NZ can create accounts and can be assigned roles and permissions as normal.

I am extremely frustrated with this, so please do not ask me to try this or do that. I will simply not bother as I have been at this constantly since several hours before my first post.

Regards

Fred

matt_harrold’s picture

I wont "suggest" anything further ... you're clearly frustrated.

However, as a passing comment, I'd suggest your issues lie closer to home than "poorly coded modules" .. each module you mentioned works correctly for the vast majority of people.

I was only trying to "help" troubleshoot your problem. If that's too much of a burden to remain polite with .. good luck.