vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   The self banning or the farewell hack (The AutoBahn) (https://vborg.vbsupport.ru/showthread.php?t=51734)

Zzed 04-19-2003 03:18 AM

Quote:

Today at 07:36 PM Zelda-King said this in Post #20
When I post only one word of a 'ban phrase' I get the attached error. Everything seems to still function normally, and the user isn't banned without saying the rest of it but I get the error come up briefly nevertheless.

For example, if a ban sentence is "I'm leaving" and I post the word 'leaving' in a different context, there's that error.

One word is enough to make the post require farewell.php. Isn't there a way of making it not do that unless all criteria are met for an autoban?

This is due to some regex syntax error in your list of patterns.

Email me the contents of your array and I'll give you back the corrected list. ;)

My Email is: edwink@seebeyond.com

Zelda-King 04-19-2003 03:39 AM

OK, I sent it. :)

Zzed 04-19-2003 08:43 AM

I copied and pasted them in my farewell.php and I tried 2 different posts.
In the first one I said "I'm leaving" and the hack kicked in. And in the other one I said "blah blah leaving" and nothing happened. But I did not get any errors either. I am not sure why you are getting that error. Maybe you can tell me what exact phrase causes that error.

On a different note, you don't need various upper/lower case combination of words. The /i makes the regex case insensitive. ;)

Zelda-King 04-19-2003 10:23 AM

I just tried
Quote:

Leaving. Testing something here.
and got the error.

I tried
Quote:

blah blah blah blah leaving
and it was fine. No ban either.

Zzed 04-19-2003 10:34 AM

Check your PM's please. :)

Zzed 04-19-2003 10:56 AM

I am completely stumped. It is workig just fine on my site...

Let's try and narrow it down to the actual regex that causes this.

Find:
PHP Code:

  while(($found == 0) and ($x $entries)) { 

And add this directly below it:
PHP Code:

echo "$patterns[x]   \n"

This will list out all the patterns and you will see the error message right after the culprit. This way we can at least narrow it down to the actual pattern. ;)

Zelda-King 04-19-2003 11:04 AM

I just did that and now that sentence gives me no error. O_O

In fact, I reuploaded the old one and got no error either, yet I had changed NOTHING! I'm going to try some more phrases.

Well then, it's nothing to do with code fault whatever it was. :/

Zzed 04-19-2003 11:25 AM

It ran just fine on my board too.

I'm glad to hear it's working now. :)

Martin64 04-19-2003 12:22 PM

Heh, funny, but I prefer my moderators to do their job instead of trusting patterns. Great idea though, but it's nothing for me. :)

Craigr 04-19-2003 01:30 PM

Thanks i'll install this later.

Craig


All times are GMT. The time now is 06:50 AM.

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.01142 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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