vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Moderate New Registrations Based On IP Geographical Origin (https://vborg.vbsupport.ru/showthread.php?t=231315)

The_Hawk 05-26-2010 09:13 PM

Quote:

Originally Posted by Marv (Post 2036183)
I see the developer wasn?t responding here for quite a while. Can anyone confirm
  • what The_Hawk mentioned above ?
  • that this mod works with 4.0.3 ?

Not so much. With 4.0.3 PL1 it still seems to prevent anyone from registering at all. After filling in the registration details and hitting submit I just get a white page here: http://www.vwwatercooled.org.au/regi...p?do=addmember and nothing happens.

I'm still working my way through the other mods I have installed to see if there is a conflict, although nothing has come up yet.

VBSEO is updated to 3.5.0 Gold, and I have tried re-installing again today, still no dice. Does anyone have this working with 4.0.3 PL1?


EDIT: To confirm, I have now been through ALL of my mods and disabled everything and it still doesn't work so I'm not sure what's up here.

Jafo232 05-27-2010 10:34 AM

I am using it on 4.0.3 with no issues, so I cannot speak to what is happening to "The Hawks" server. A blank screen is useless information. You have to look in your server log to find out WHAT the error is. It could be something as simple as not uploading the files properly.

Short answer, yes, it works for 4.0.3...

The_Hawk 05-30-2010 05:04 AM

Quote:

Originally Posted by Jafo232 (Post 2044022)
You have to look in your server log to find out WHAT the error is.

No problems, been getting round to doing a little more digging, really should have just started in the logs, but then I'm very much still learning as I move along.

It seems it might just be as simple as an out of memory error:

[Thu May 27 09:58:58 2010] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 88 bytes) in /var/www/vhosts/vwwatercooled.org.au/httpdocs/plugins/whois.php on line 35, referer: http://www.vwwatercooled.org.au/register.php

We absolutely have to move to a bigger better server VERY soon anyway, so hopefully that will fix this problem too.

Jafo232 05-30-2010 03:52 PM

Your memory_limit setting in your php.ini file is rather low (32 Megabytes). If you bump that up and restart apache, the issue will most likely go away. I would try 64M.

The_Hawk 05-31-2010 04:25 AM

Quote:

Originally Posted by Jafo232 (Post 2045599)
Your memory_limit setting in your php.ini file is rather low (32 Megabytes). If you bump that up and restart apache, the issue will most likely go away. I would try 64M.

Many thanks, that did the trick and it all seems to be working under 4.0.3 PL1 here now :D

Nickbe 07-11-2010 11:46 PM

Wouldn't it be much better to have a field for countries we want to moderate as opposed to a field for countries we don't? (or have both?)

I mean I would like to moderate Russia and China only. So I am not going to spend 3 hours listing the country code for the other 200 countries I want to let through.

I know I can't do a better job and that I shouldn't complain about free stuff but I think it is logical.

Basically we have two fields....

Field 1 : Countries to let through without moderation
Field 2 : Countries to moderate

You leave field 1 blank let through without moderation all countries aside from the ones in field 2.

Jafo232 07-12-2010 11:51 AM

There are modifications that do this, read the entire thread..

Nickbe 07-12-2010 05:27 PM

I did read the whole thread and I read it again cannot see anything related to what I suggested.

Jafo232 07-12-2010 05:32 PM

It makes no sense to have the two fields you suggest. If you have a field to let users through without moderation that is the same as creating a white list. The second list does the same exact thing.

I guess you did not look hard tho:

https://vborg.vbsupport.ru/showpost....1&postcount=24

Nickbe 07-12-2010 05:38 PM

I am not talking about a whitelist. I am talking about a black list.

There are roughly 200 countries in the world. I want to black list 2 of those countries..... Russia and China. Under the current system that requires me to manually whitelist 198 countries. If instead there was was blacklist field I would simply have to blacklist 2 countries.

Jafo232 07-12-2010 05:43 PM

Code:

if (!in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); }
To:

Code:

if (in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); }
There, you now have a blacklist..

Nickbe 07-12-2010 06:16 PM

Ok i amde the change and it worked perfectly. Thanks for that.

pjcnlv 07-23-2010 04:07 PM

I am seeing exactly the same with no info why in the logs.

Mod is disabled for now.

Quote:

Originally Posted by The_Hawk (Post 2019383)
Seems new registrations aren't happening anymore with users getting a blank screen on this page after filling in all the registration info and hitting OK:

http://www.vwwatercooled.org.au/regi...p?do=addmember

I'm sure this mod WAS working fine with 4.0.2 PL4 but has since given up the ghost.

As first I thought it was a vBulletin problem so I upgraded to 4.0.3, still no working. I then through it was the vbSEO I installed last week (3.0.5 RC3) so I uninstalled that, still no dice. Then I turned off the country mod and BAM, users can register again.

Re-installed vbSEO, still working.
Uninstalled Country Mod (rather than just disabled) - still working.
Re Installed Country Mod - Not working.
I have re-uploaded the zone files, I have re-uploaded the mod files - still not working
Disabled country mod - working again.

Is there a common fault here or is it just something I have done wrong?

(on a side note all of this DID happen on or about when I install vbSEO so I'm still thinking that's the problem, although technically by completely uninstalling it should have solved the problem... but it didn't)


Nickbe 07-23-2010 05:08 PM

Mine works fine on 4.0.3

The_Hawk 07-23-2010 09:17 PM

Quote:

Originally Posted by pjcnlv (Post 2073423)
I am seeing exactly the same with no info why in the logs.

Mod is disabled for now.

As below, my problem was showing in the logs and was a memory out issue, still seems to be going well, no issues since more RAM was allocated :)

Quote:

Originally Posted by Jafo232 (Post 2045599)
Your memory_limit setting in your php.ini file is rather low (32 Megabytes). If you bump that up and restart apache, the issue will most likely go away. I would try 64M.

Quote:

Originally Posted by The_Hawk (Post 2045846)
Many thanks, that did the trick and it all seems to be working under 4.0.3 PL1 here now :D


amorosso 11-09-2010 03:45 PM

While uploading I was watching someone from China trying to register. Not anymore, Thank you very much.. Installed and working on 4.0.8

PSimmo 11-11-2010 04:37 AM

doesnt work for me on 4.08.
Uploaded the all the zone files into plugins/zones and it still says I need to download the zone files.

RichieBoy67 12-22-2010 07:30 AM

Will this work in 4.1?

Thanks

The_Hawk 12-22-2010 06:21 PM

I'm running 4.1.0 PL2 and it's ticking along fine.

deschutes 12-24-2010 05:10 PM

This mod is exactly what I have been looking for. I made the change shown in post #51 to make it more of a blacklist (CN,RU,PK). If you do any further development it would be cool to provide a switch in the options to make it either a whitelist or blacklist. It appears to work just fine with VB 4.0.8. Hopefully this will eliminate the flood of spam registrations I have been getting from Pakistan lately.

Thanks!

deschutes 12-24-2010 05:12 PM

Quote:

Originally Posted by PSimmo (Post 2120451)
doesnt work for me on 4.08.
Uploaded the all the zone files into plugins/zones and it still says I need to download the zone files.

Are you sure it isn't working? I think it always says you need to install the zone files, but says you will see an error below if they aren't.

RustyAU 01-10-2011 05:45 AM

I love this mod and have recommended it to other vBB forum admins I know!

Strangely, they ALSO love this mod!

One thing I would like to see though...

I'd like it to auto accept IP's on the whitelist [which it presently does], REFUSE IP's on the black list and moderate everything else... :)

This would allow me to crack the whatsits with Russia and the Ukraine, but still moderate everything else.

But again - love the mod - tis excellent :)

12OZmouse 02-01-2011 11:49 PM

Hi, I'm currently running 4.0.7

I have the plugins/zones folder (with all .zone files added) set in my vbulletin root folder. I get the error message saying I didn't upload the zone files. I have read the readme and followed the directions to a T. Does this version not work on 4.0.7?

sulasno 03-05-2011 03:00 PM

installed in 4.1.2 and see the same error

Zone Files
You need to download zone files

BirdOPrey5 06-19-2011 01:28 PM

Tested this on 4.0.8 and my test registration was moderated despite me being on a major USA based ISP... and US was white listed.

tomkooij 11-07-2011 12:06 PM

Same at 4.1.7. Test registration from different IPs were all moderated despite being on IPs in whitelisted zones.

Jafo232 11-07-2011 12:16 PM

That's because this doesn't work with 4.x.

The_Hawk 11-07-2011 08:06 PM

Quote:

Originally Posted by Jafo232 (Post 2265315)
That's because this doesn't work with 4.x.


Really?

I have been running this since vB4 was released and haven't noticed any issues, even on 4.1.7 PL2 I'm running now.

I have already cleaned the queue today, but a very quick flick through the logs and the usernames all look to be what I expect. I'll keep an eye on it, but it all looks good for me.

I have just updated the zones list today so will see if that makes any difference. It's a great mod, something I couldn't do without anymore!

Doctor Death 01-25-2012 10:16 PM

I guess this mod is non-functional in 4.1.10. Too bad.

The_Hawk 01-25-2012 10:40 PM

Quote:

Originally Posted by Doctor Death (Post 2292415)
I guess this mod is non-functional in 4.1.10. Too bad.

Was it working for you before? I'm yet to update from 4.1.9 (where it's still working perfectly), although should get a chance in the next few days and hoping it keeps working :S

pportuese 01-29-2012 10:46 PM

So do you have to moderate each new member or if they are on the white list it does it automatically?

bigtree 01-29-2012 10:58 PM

What an ingenious mod! I cannot believe this isn't part of vbulletin from the get go. Brilliant!
Now just waiting for this to be confirmed working on vb4 "" ?

pportuese 01-29-2012 11:28 PM

Got it up on 4.1.10 and I think it's working. No real way to test it though.
Nominated!

rotor 01-31-2012 10:33 PM

Is this mod going to be upgraded to work on 4.1.**? I hope so .....

The daily grind :)

Every day I have to delete delete delete and all from the same regions!
I ban IP's but still have trouble!
Even gone to the extent of moderating ALL new users .... frustrating for me and genuine users!

Sound familiar?

bigtree 02-09-2012 02:39 AM

Quote:

Originally Posted by rotor (Post 2294784)
Is this mod going to be upgraded to work on 4.1.**? I hope so .....

The daily grind :)

Every day I have to delete delete delete and all from the same regions!
I ban IP's but still have trouble!
Even gone to the extent of moderating ALL new users .... frustrating for me and genuine users!

Sound familiar?

This mod is excellent. I have it running on 4.1.7 fine. I used to upgrade my vb4 everytime a new version was released but no more. Wait some time in between the versions.

I also ask questions only my industry will know at registration time. This filters 99% of all BS users and spam. It keeps your forum clean and level of content high. The bots figure my questions out eventually (about a week) and then I change my question/answer.

TombstoneWarrior 02-09-2012 08:07 AM

do you put the whois.php into the zones folder or leave it in the plugin folder???? 5 stars and voted 4 motm someone please awnser this question asap!!!

TheDevil666Damo 03-10-2012 10:38 AM

This used to be a fantastic little plugin stopping ALL spam by restricting certain country IP's, however, just re-installed it since our upgrade to 4.1.10 and it no longer seems to be working properly, or at least causing registration problems...

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/xxxxxxx/public_html/plugins/whois.php on line 33

...when's its disabled registrations work again, anyone got any ideas?

BirdOPrey5 03-10-2012 01:55 PM

It's probably that the data file containing the geographic data for all the ip addresses has gotten bigger and now you don't have enough memory in php to open it.

What is the PHP Memory Limit as reported on the main page of your Admin CP?

If it's low you should try upping it to at least 64 MB or more.

TheDevil666Damo 03-11-2012 09:06 AM

Increased to 128m and all working again, many thanks.

Tearstone 03-12-2012 03:33 PM

I've been doing this manually, thank you for this mod makes my life so much easier :)


All times are GMT. The time now is 07:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01320 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete