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)
-   -   Anti-Spam Options - Rename register.php by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=297834)

ozzy47 01-11-2015 09:51 PM

Noticed a error within the mod. If you leave the New File Name For register.php setting blank, to disable the mod, you get a bunch of these errors on the online.php page.

Code:

Warning: strpos(): Empty needle in /home/ozzmodz/public_html/includes/functions_online.php(1245) : eval()'d code on line 35

BirdOPrey5 01-11-2015 10:13 PM

Quote:

Originally Posted by ozzy47 (Post 2531973)
Noticed a error within the mod. If you leave the New File Name For register.php setting blank, to disable the mod, you get a bunch of these errors on the online.php page.

Code:

Warning: strpos(): Empty needle in /home/ozzmodz/public_html/includes/functions_online.php(1245) : eval()'d code on line 35

Thanks.

In the mean time users should either disable the mod via the Product Manager or if you want go to Plugin Manager, edit the Location Fix plugin.

Erase everything that is there and paste this in its place:

Code:

global $vbulletin;
if ($vbulletin->options['bop5rr_register'] AND $vbulletin->options['bop5rr_register'] != 'register.php')
{
  $regpage = $vbulletin->options['bop5rr_register'];

  if (strpos($userinfo['location'], $regpage) !== false)
  {
    $userinfo['action'] = $vbphrase['registering'];
    $handled = true;
  }
}

Will make the change in the next update.

ozzy47 01-11-2015 10:16 PM

Good stuff Joe, works just fine now. :) Thanks for the quick update. :)

CAG CheechDogg 01-12-2015 05:44 AM

So is that the (patched) code or just a (for now) fix? ...

ozzy47 01-12-2015 09:23 AM

You need to manually make the changes for now, the product is not updated.

CAG CheechDogg 01-12-2015 12:53 PM

Ok good stuff ... thanks ozzy ...

ozzy47 01-12-2015 10:29 PM

Not a problem. :)

Cla75 05-02-2015 12:24 PM

Ciao BirdOPrey5

When I change the two instances in class_bootstrap.php the forum does not charge the index.
Returning to the original class_bootstrap.php everything works with vb 4.2.1
Obviously I also renamed the file register.php.

What am I doing wrong?
I followed your guide "Rename register.php by BOP5 Readme.txt" three times, but the same problem

Thanks

BirdOPrey5 05-02-2015 01:54 PM

The file changes are only required for Facebook Connect to work correctly- it doesn't change any index- can you explain what you mean by changing an index?

Installing the mod and enabling it is what changes the register.php link in the forum code, and a few phrase edits to change the URL in emails.

Scalemotorcars 02-12-2019 01:15 PM

Well, nuts I thought this would get the Spam bots off my server for at least a little while. They found the new registration page in a matter of hours.

I used a very random URL and they still found it. Someone must have gotten it manually.

So Im using Spam-O-Matic and that catches nearly all these ******. I rarely get a spam post so that's good. I'm just trying to get the bots off my server.

Any ideas? They hit the registration page every few seconds.


All times are GMT. The time now is 04:07 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.01262 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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