Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Author: Gizmo (James of VNC Web Design)

Requirements:
Valid UBB.Threads 7.5.7 install and license

About:
The final version of the Stop Forum Spam modification that I had delegated as the "perfect" set of features to be included into the stock build of the UBB had one feature stripped out by the powers that be at the UBB, the ability to check user registrations against the Stop Forum Spam database for the registration user's IP Address; the current rendition included in UBB.Threads 7.5.7 only does an email check for the user.

Please read the note below before applying this change.


In scripts\adduser.inc.php:
Find:
Code
		if ($xml->appears == "yes") {
PostToHost("username=". $Loginname ."&ip_addr=". $_SERVER["REMOTE_ADDR"] ."&email=". $Email ."&api_key=". $config['SFS_KEY']);

Replace With:
Code
		$xml_ip_string = @file_get_contents("http://www.stopforumspam.com/api?ip=". $_SERVER["REMOTE_ADDR"]);
$xml_ip = new SimpleXMLElement($xml_ip_string);

if (($xml->appears == "yes") || ($xml_ip->appears == "yes")) {
if ($xml->appears == "yes") {
PostToHost("username=". $Loginname ."&ip_addr=". $_SERVER["REMOTE_ADDR"] ."&email=". $Email ."&api_key=". $config['SFS_KEY']);
}

Please leave your thanks below so we can know that we've helped you!


Note: SD has posted a far easier modification for this; In scripts/adduser.inc.php
Find:
Code
$xml_string = @file_get_contents("http://www.stopforumspam.com/api?email=". $Email);

Replace With:
Code
$xml_string = @file_get_contents("http://www.stopforumspam.com/api?email=". $Email . "&ip=" . find_environmental('REMOTE_ADDR'));


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Dec 2001
Posts: 87
Power User
Power User
Joined: Dec 2001
Posts: 87
Oh my god... I LOVE you!!!!!!!!!!!!

yay yay wooga yay yay

And... not to worry... it's legal here now!!!


Bill Barker
Issaquah, Wa
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Rofl...

it should work just fine; I've been running it on A Gardeners Forum for months; I'm not sure why they chose to strip this part of the functionality from what I supplied (the last build posted here was what was supplied). We're also using it here at UBBDev.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
The last part of the mod that Giz posted is part of 7.5.8 stock now


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)