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

SourceBans 2.0 Alpha (2013/09/04)


Post New Thread Reply   
 
Thread Tools Display Modes
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-04-2013 , 18:25   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #61

Quote:
Originally Posted by Dr. McKay View Post
I remembered the first half of it, forgot about the second.

It would be really awesome if there was a way to pass a Steam ID to a new ban instead of having to use a client index. Would make out-of-game banning (SourceIRC, etc.) much nicer.
PHP Code:
BanClient(clienttimeBANFLAG_AUTO"reason");

BanIdentity("STEAM_0:1:2"timeBANFLAG_AUTHID"reason");
BanIdentity("1.2.3.4",     timeBANFLAG_IP,     "reason");

RemoveBan("STEAM_0:1:2"BANFLAG_AUTHID);
RemoveBan("1.2.3.4",     BANFLAG_IP); 
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 07-04-2013 at 18:28.
DJ Tsunami is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-04-2013 , 18:30   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #62

Sorry, I should have been clearer. I want to pass a Steam ID as the admin parameter, not as the client parameter.
__________________
Dr. McKay is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-04-2013 , 18:50   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #63

Well then there's the debate of whether you want to provide an in-game native for when admins aren't actually in-game, when they can just visit the web panel and ban from there. But alright, we'll think about it.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
lyric
Veteran Member
Join Date: Sep 2012
Old 07-04-2013 , 19:26   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #64

thanks for editing my post about the CDbException but i was hoping more for assistance with sorting it out instead of a spoiler tag being used on the picture :/
__________________
lyric is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-05-2013 , 07:26   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #65

I just tried it again, and it still works fine for me. Upload web folder, visit /install and click Next after each step, and Finish at the end. The installation creates all the folders, sets permissions and imports the database.

If you are familiar with Firebug or Chrome's Developer Tools, you can try checking whether ajax.php is requested after clicking Finish, and whether it returns true or false.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 07-05-2013 at 07:30.
DJ Tsunami is offline
lyric
Veteran Member
Join Date: Sep 2012
Old 07-05-2013 , 08:22   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #66

Quote:
Originally Posted by DJ Tsunami View Post
I just tried it again, and it still works fine for me. Upload web folder, visit /install and click Next after each step, and Finish at the end. The installation creates all the folders, sets permissions and imports the database.

If you are familiar with Firebug or Chrome's Developer Tools, you can try checking whether ajax.php is requested after clicking Finish, and whether it returns true or false.
here is what i got when clicking "Finish" in the installer

Code:
POST http://mywebsite.com/bans/install/ajax.php 500 (Internal Server Error) jquery.min.js:5
send jquery.min.js:5
b.extend.ajax jquery.min.js:5
b.(anonymous function) jquery.min.js:5
(anonymous function) index.php:268
b.event.dispatch jquery.min.js:3
v.handle
our webserver is linux and we use nginx instead of apache2 if that helps
__________________

Last edited by lyric; 07-05-2013 at 08:24.
lyric is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-05-2013 , 10:11   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #67

I don't have a lot of experience with nginx, but try this: at the top of ajax.php, after <?php, press Enter and add this:
PHP Code:
define('YII_DEBUG'true); 
Then, after clicking Finish again, go to the Network tab instead of the Console tab, and click on ajax.php. To the right there should be a Response tab with an error message. If it says "table 'x' already exists", delete all the tables in your database and start again. Hopefully that will produce a useful error message.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 07-05-2013 , 10:16   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #68

I'm also using nginx with php-fpm and it's working correctly
Rytis is offline
lyric
Veteran Member
Join Date: Sep 2012
Old 07-05-2013 , 11:36   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #69

Quote:
Originally Posted by DJ Tsunami View Post
I don't have a lot of experience with nginx, but try this: at the top of ajax.php, after <?php, press Enter and add this:
PHP Code:
define('YII_DEBUG'true); 
Then, after clicking Finish again, go to the Network tab instead of the Console tab, and click on ajax.php. To the right there should be a Response tab with an error message. If it says "table 'x' already exists", delete all the tables in your database and start again. Hopefully that will produce a useful error message.
Thank you. I did that and this is what it says in the Network tab

__________________
lyric is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-05-2013 , 11:39   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #70

if you click anywhere on that red line it should open a new pane to the right, which has a Response tab.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Reply



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 11:50.


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