vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Prevent Certain Timezone Registration (https://vborg.vbsupport.ru/showthread.php?t=141554)

trilogy33 05-06-2008 05:04 PM

Installed. Thank you.

logastro 05-31-2008 02:01 PM

Is it working with vB v3.7?

Dismounted 06-01-2008 12:01 PM

I don't know. It should work though.

jkcerda 10-01-2008 07:01 PM

Quote:

Originally Posted by logastro (Post 1537056)
Is it working with vB v3.7?

+2 I hope it works

TMH63 10-02-2008 01:25 AM

I just installed the timezone hack. And I want to lock my forums down GOOD! I could care less about any timezone outside the US or Canada, so my question is....... Will entering these as you see them work fine? All the example gives in the software is,
Quote:

Example: 1,3,-2
-12, -11, -4:30, -3, 12, -1, +1, +2, +3, +3:30, +4, +4:30, +5, +5:30, +5:45, +6, +6:30, +7, +8, +9, +9:30, +10, +11, +12



Thanks!

Dismounted 10-03-2008 01:51 AM

I didn't seem to handle half hour zones correctly. For a fix, in the file, find and remove:
PHP Code:

foreach (explode(','$data) AS $timezone)
{
    if (
intval($timezone) == 0)
    {
        return 
false;
    }


And use -12.5, -4.5, etc.

Ohiosweetheart 10-03-2008 04:46 PM

I'm going to give this a try on one of my sites.

Ohiosweetheart 10-03-2008 05:10 PM

Dismounted, is this how I would list the unwanted timezones in that space?
Quote:

-12,-11,-10,-9,-4,-3,-2,-1,+1,+2,+3,+4,+5,+6,+7,+8,+9,+10,+11,+12
Also, I don't know how to list that Western Europe Time, London, Lisbon, Casablanca.

noppid 10-03-2008 06:01 PM

Do you really think this will have any effect? A quick scrap of the forums will give the time zone and they can supply the correct time zone.

Then what about real users that don't want the time zone you limit them too?

This is a new members nightmare. This is worse than making them do capture and recapture.

How does a person with an international forum continue to grow?

I applaud your efforts, but this is just silly. There are better solutions by several people that are transparent to the new member and actually work without creating more work for the new member or limiting them.

Ohiosweetheart 10-03-2008 06:25 PM

This is something that I'd add only to TalkOhio, of course, certainly not to Themes by Design. I don't know if it will work or not. Nothing else is, so we'll see.

noppid 10-03-2008 06:59 PM

Quote:

Originally Posted by Ohiosweetheart (Post 1636659)
This is something that I'd add only to TalkOhio, of course, certainly not to Themes by Design. I don't know if it will work or not. Nothing else is, so we'll see.

You can be stubborn and say nothing works, but that is not true.

There are hundreds of people that fixed this spam issue. Come on, you are smarter than that. :)

Yogesh Sarkar 10-03-2008 07:45 PM

Can you please make some changes to let the user be redirected to a third party site, if I enter the full URL of a third party site, they just receive an error.

Ohiosweetheart 10-03-2008 09:10 PM

Quote:

Originally Posted by noppid (Post 1636682)
You can be stubborn and say nothing works, but that is not true.

There are hundreds of people that fixed this spam issue. Come on, you are smarter than that. :)

:rolleyes: by "nothing else is", I meant nothing else I've done - so far. You should've known that ;)

Dismounted 10-04-2008 08:30 AM

Quote:

Originally Posted by noppid (Post 1636637)
Do you really think this will have any effect? A quick scrap of the forums will give the time zone and they can supply the correct time zone.

Then what about real users that don't want the time zone you limit them too?

This is a new members nightmare. This is worse than making them do capture and recapture.

How does a person with an international forum continue to grow?

I applaud your efforts, but this is just silly. There are better solutions by several people that are transparent to the new member and actually work without creating more work for the new member or limiting them.

This fills in the niche of some forums - some forums don't need any members apart from their "area", and this is just something that helps with spam on those forums. This modification is certainly not for everyone, and is not made out to be.

CrossBones 10-06-2008 01:05 AM

Does this work with 3.7x?

I have used it on 3.6x and it works perfectly!

cmmguy 10-06-2008 04:04 AM

<font color="Blue">Installed</font> but I created an "Registration Error" page that directs them to email admin if they are having problems. This should let someone from that timezone send me a message and I can let them register.

Problem: The mod does not send them to the Error Page that I created. I can open the page by pasting the link from the settings directly into a browser, so I know the link and page works. I DO NOT have the Error page in the forum folder but in the root of the website - is this the problem or why wont it open the Error page that setup?

v3.7.3

Dismounted 10-06-2008 05:46 AM

Quote:

Originally Posted by cmmguy (Post 1638335)
Installed but I created an "Registration Error" page that directs them to email admin if they are having problems. This should let someone from that timezone send me a message and I can let them register.

Problem: The mod does not send them to the Error Page that I created. I can open the page by pasting the link from the settings directly into a browser, so I know the link and page works. I DO NOT have the Error page in the forum folder but in the root of the website - is this the problem or why wont it open the Error page that setup?

v3.7.3

Make sure you enter the URL as an absolute link (full link with "http://").
Quote:

Originally Posted by CrossBones (Post 1638233)
Does this work with 3.7x?

I have used it on 3.6x and it works perfectly!

It should work with 3.7.

cmmguy 10-06-2008 06:11 AM

Quote:

Originally Posted by Dismounted (Post 1638367)
Make sure you enter the URL as an absolute link (full link with "http://").

It should work with 3.7.

That is exactly how it is entered... the full url.
When i test it, it sends me to the standard error message that you created.

CrossBones 10-06-2008 02:21 PM

Installed on my 3.7x board. Works fine! :D

Dismounted 10-07-2008 05:05 AM

Quote:

Originally Posted by cmmguy (Post 1638385)
That is exactly how it is entered... the full url.
When i test it, it sends me to the standard error message that you created.

Small bug found, in the XML file, find:
PHP Code:

$vbulletin->url $vbulletin->options['prevent_tz_reg_redirurl']; 

Replace With:
PHP Code:

$vbulletin->url $vbulletin->options['prevent_tz_reg_redirect']; 

Fixed in next release.

cmmguy 10-07-2008 11:05 AM

That corrected it, thanks much.
I use a redirect form that allows a legitimate but blocked user to be taken to the "Send a message" dialog in vB.

Yogesh Sarkar 10-12-2008 05:33 PM

Quote:

Originally Posted by Dismounted (Post 1639091)
Small bug found, in the XML file, find:
PHP Code:

$vbulletin->url $vbulletin->options['prevent_tz_reg_redirurl']; 

Replace With:
PHP Code:

$vbulletin->url $vbulletin->options['prevent_tz_reg_redirect']; 

Fixed in next release.

Thanks, that fixed the redirect issue.

TheLastSuperman 10-13-2008 09:30 PM

Thank you!!!!

Priceless... and to all the past comments about REAL users from certain timezones... well I know if you check out GMT-12 which is my worst one for bots etc THEN you'll see maybe this is quite useful.

Also check out the IsBot mod which has saved me some hassle as well!

NJI 12-09-2008 04:23 PM

This mod works well. However, I have a lot of spammers registering from timezone GMT ( aka 0 ). When I go into this mods options I typed in "-12,0" in to the box, however it says 0 is not a valid number.

TheLastSuperman 12-09-2008 05:16 PM

Hmmm... try -0 perhaps? Just a thought but also use the search box above and type in IsBot as I mentioned above... I use this mod which is great and IsBot and have only had to delete a few bots since I installed them both about 2 months ago :D

S-MAN

mustangempire 12-20-2008 11:26 PM

works great!!! I love it thanks for this mod. I can block those annoying spammers.

pigpog 12-26-2008 08:24 PM

Thanks Dismounted :up:, I've been plagued by -12.00 GMT bots in the last two days, but have now banned this time zone. Thanks for this mod, I hope this works.... :confused:

CrazyCanuck 01-12-2009 01:14 AM

Marked as installed!!!

Ok I usually get anywhere between 10-20 registrations a day and I can usually jump in at anytime to find at least a couple new registrations and since I installed this about 4 hours ago not one new registration from the -12 timezone.

Great little hack

I have also implemented the Question and Answer Verification instead of captcha and added the "Check4SPAM" hack.

Not to mention added viagra and few other names to the Illegal User Names field.

I think my next step will be to remove the option to change the timezone from the registration page and legitimate users can simply change it in their profiles.

I think that's a little too much work just to stop the spammers/bots but when having a licensed script it's necessary steps.

Thanks again for this

Swampfox 01-29-2009 12:36 PM

Anyone worried about legitimate users from GMT-12......

Its uninhabited!!

The bots select it because it is the first option in the dropdown menu

Almost 2 years later, I have not had a bot register, this is the best anti bot mod ever, it adds no hoops for legitimate members to jump through, and it keeps the bots out entirely until they change this fatal flaw in their programming.

Swampfox 02-08-2009 03:45 PM

Well I guess that last post jinxed me lol

One of my sites has seen a sudden influx of bots registering with various time zones :(

CrossBones 02-08-2009 06:57 PM

Quote:

Originally Posted by Swampfox (Post 1737824)
Well I guess that last post jinxed me lol

One of my sites has seen a sudden influx of bots registering with various time zones :(

I'[ve been using this mod for a long time and it's worked great. Unfortunately lately it seems the bots have figured it out. I'm getting all sorts of weird time zone registrants the lasts three weeks. +sigh+

bobster65 02-08-2009 07:23 PM

Quote:

Originally Posted by CrossBones (Post 1737981)
I'm getting all sorts of weird registrants the lasts three weeks. +sigh+

You run an Oakland Raiders Web site, what do you expect :D

and ya, it seems like they found a work around for this.. bummer, cause it sure did work great for awhile there for both our sites..

CrossBones 02-08-2009 09:28 PM

Yo Bobster...:D

SVTCobraLTD 02-24-2009 10:44 AM

Installed. Didn't have a problem until I changed my image setting to not have random shapes and slants. After that I got new spam members everyday.

len backus 03-25-2009 11:39 AM

Quote:

220.250.18.139
I just finished reading all the way down to your post to find this mod MIGHT not be effective any more. Are others finding this true also? I was about to install it.

trilogy33 02-02-2010 05:33 PM

Worked a treat on 3.8.x
We're a UK board, so anything other than GMT was bounced off, thankfully :)
Can this be ported for version 4.x please?

revitclinic 03-24-2010 05:17 PM

does it work for vBulletin 4 too?

BadgerDog 04-08-2010 11:59 AM

Anyone know if this works in v4?

Thanks :)

Regards,
Badger

trilogy33 04-08-2010 02:22 PM

Tested in vB4.0.2 PL4 - the hack itself works and displays:

Redirecting...

You have selected a banned timezone!


But this optional setting in ACP doesn't work...

Redirect User?
Enter the URL of which a user should be redirected to if they choose a banned timezone. Leave blank to display error page.


It merely gets ignored, at least that's what I've found under test conditions.
Hope this helps :)

BadgerDog 04-08-2010 02:32 PM

Quote:

Originally Posted by trilogy33 (Post 2017940)
Tested in vB4.0.2 PL4 - the hack itself works and displays:

Redirecting...

You have selected a banned timezone!


But this optional setting in ACP doesn't work...

Redirect User?
Enter the URL of which a user should be redirected to if they choose a banned timezone. Leave blank to display error page.


It merely gets ignored, at least that's what I've found under test conditions.
Hope this helps :)

Thanks ... :up:

Regards,
Badger


All times are GMT. The time now is 09:47 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.01376 seconds
  • Memory Usage 1,838KB
  • 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
  • (5)bbcode_php_printable
  • (15)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