Raised This Month: $12 Target: $400
 3% 

Release SourceBans++ (v1.6.4) [Updated: 2021-10-06]


Post New Thread Closed Thread   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 11-12-2015 , 21:37   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#371

Quote:
Originally Posted by Trans_Am_00 View Post
If i wanna use sb alone?
...then you shouldn't care about that commands at all.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
ph
AlliedModders Donor
Join Date: Mar 2006
Old 11-13-2015 , 06:55   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#372

--- Please ignore. found my answer.




How do I :-

Disable In-game chat notification, that this player has been previously banned ?


Example:

Code:
[SourceBans] Warning: Player "lovkal | trade.tf" has 1 previous SB bans on record.
How do I disable this message notification.
__________________

Last edited by ph; 11-13-2015 at 11:41.
ph is offline
Trans_Am_00
Senior Member
Join Date: Jul 2013
Location: 127.0.0.1
Old 11-13-2015 , 08:26   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#373

i should also remove this command if i wanna use sb alone?

exec banned_user.cfg
exec banned_ip.cfg
__________________
-= Trans-Am =-
Quote:
Where pink owns everything
Trans_Am_00 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 11-13-2015 , 10:02   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#374

Quote:
Originally Posted by Trans_Am_00 View Post
i should also remove this command if i wanna use sb alone?

exec banned_user.cfg
exec banned_ip.cfg
Then don't care about anything related to those files either, no matter what the commands are!
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 11-16-2015 , 14:54   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#375

Quote:
Originally Posted by abrandnewday View Post
I just realized that I had that same issue. Ignore it and just edit the config.php file and add in the info for these:

PHP Code:
define('STEAMAPIKEY','');                // Steam API Key for Shizz
define('SB_WP_URL','');                       //URL of SourceBans Site 
Basically SourceBans tries to take the info you pop in for the API key and URL and put them in the config but there's apparently some code missing somewhere so it fails to do so. Manually adding it in fixes the issue. API is for the OpenID Steam login, and the URL is also for that I believe.

As for you Zastrelis, I'd quote your post but the forum just brings up an empty white text box so I can't quote it for some reason, but see above for the fix.

And putting "UNDEFINED INDEX" in giant letters is NOT helpful in any way.



I have reinstalled sourcebans (latest version stable) and i get same error:
config.php:
Quote:
<?php
/**
* config.php
*
* This file contains all of the configuration for the db
* that will
* @author SteamFriends Development Team
* @version 1.0.0
* @copyright SteamFriends (www.SteamFriends.com)
* @package SourceBans
*/
if(!defined('IN_SB')){echo 'You should not be here. Only follow links!';die();}

define('DB_HOST', 'localhost'); // The host/ip to your SQL server
define('DB_USER', 'sourcebans'); // The username to connect with
define('DB_PASS', '*********'); // The password
define('DB_NAME', 'sourcebans'); // Database name
define('DB_PREFIX', 'sb'); // The table prefix for SourceBans
define('DB_PORT','3306'); // The SQL port (Default: 3306)
define('STEAMAPIKEY',''); // Steam API Key for Shizz
define('SB_WP_URL',''); //URL of SourceBans Site

//define('DEVELOPER_MODE', true); // Use if you want to show debugmessages
//define('SB_MEM', '128M'); // Override php memory limit, if isn't enough (Banlist is just a blank page)
?>
Quote:
Notice: Undefined index: apikey in /usr/share/nginx/html/install/template/page.5.php on line 50

Notice: Undefined index: sb-wp-url in /usr/share/nginx/html/install/template/page.5.php on line 51

Last edited by eric0279; 11-17-2015 at 16:41.
eric0279 is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 11-17-2015 , 17:28   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#376

I must be the only one who actually had the installer setup config.php correctly.

It worked fine for me, and I redid it so many times.

Server Info:
Apache/2.4.17 (Win64) OpenSSL/1.0.2d PHP/5.6.15

Maybe cause Linux is messing with something, cause all the errors are from Linux servers, is the config.php set to 777?
__________________
Sarabveer is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 11-17-2015 , 18:33   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#377

I too had to manually input my Steam API key and URL post-installation. Not a huge deal, easy to identify and remedy.
__________________

Last edited by sneaK; 11-17-2015 at 18:34.
sneaK is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 11-17-2015 , 19:27   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#378

chmod 777 config.php for install, yes and back to 644 after.
eric0279 is offline
driz
Junior Member
Join Date: Apr 2014
Location: Nashville, TN
Old 11-17-2015 , 21:19   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#379

disregard

Last edited by driz; 11-17-2015 at 21:45.
driz is offline
ijam_j
Member
Join Date: Mar 2007
Old 11-17-2015 , 23:59   Re: [RELEASE] SourceBans++ (v1.5.3) [Updated: 2015-10-07]
#380

Banned user using this command in console

Code:
sm_addban STEAM_0:0:1873983 0 Dumb
i get this error

Code:
L 11/18/2015 - 12:41:40: [SM] Native "SQL_TQuery" reported: Invalid database Han
dle 0 (error: 4)
L 11/18/2015 - 12:41:40: [SM] Displaying call stack trace for plugin "sourcebans
.smx":
L 11/18/2015 - 12:41:40: [SM]   [0]  Line 666, sourcebans.sp::CommandAddBan()
this is my error log

Code:
L 11/18/2015 - 11:50:30: [sourcebans.smx] Database failure: [1045]: Access denied for user 'sb'@'localhost' (using password: YES). See FAQ: https://sarabveer.github.io/SourceBans-Fork/faq/
this is my database.cfg

Code:
"sourcebans"
	{
		"driver"			"mysql"
		"host"				"256.93.8.10" //not real ip
		"database"			"sourcebans"
		"user"				"user"
		"pass"				"pass"
		//"timeout"			"0"
		"port"			"3306"
	}
i dont remember setting username sb and localhost as ip. where do i fix that?

sourcemod site works and i can add servers. but i cant ban user.

Last edited by ijam_j; 11-18-2015 at 00:05.
ijam_j is offline
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode