AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   SourceBans 2.0 Alpha (2013/09/04) (https://forums.alliedmods.net/showthread.php?t=219657)

lyric 07-03-2013 20:17

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Dr. McKay (Post 1982878)
Yes, that should work.

it didn't

Rytis 07-03-2013 20:17

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by lyric (Post 1982876)
so i need to create a blank sourcebans.php file and chmod it to 777 and put it in my /application/config directory?

Yes, try that :)

lyric 07-03-2013 20:22

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Rytis (Post 1982881)
Yes, try that :)

it didnt work. after closing the install page and visiting it again and trying to continue on it stays at the screen like i posted before talking about sourcebans.php

Dr. McKay 07-03-2013 20:38

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by lyric (Post 1982882)
it didnt work. after closing the install page and visiting it again and trying to continue on it stays at the screen like i posted before talking about sourcebans.php

Could you take a screenshot of the config directory showing the file and its chmod status?

lyric 07-03-2013 20:54

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Dr. McKay (Post 1982889)
Could you take a screenshot of the config directory showing the file and its chmod status?

http://i.imgur.com/e0pn6cd.png

Rytis 07-03-2013 20:54

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Is the config folder on 777?

Rytis 07-03-2013 20:56

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by lyric (Post 1982899)

Uhm, root...
I think it's not working, because apache runs on www-data, but your files are root. The files also need to be www-data

lyric 07-03-2013 21:02

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Rytis (Post 1982902)
Uhm, root...
I think it's not working, because apache runs on www-data, but your files are root. The files also need to be www-data

we use nginx

actually changing the DIRECTORY perms to 777 did it. Maybe the language of the installer can be updated to mention the directory and not the file?

Rytis 07-03-2013 21:10

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by lyric (Post 1982908)
we use nginx

I love you for using nginx :D (no homo)
I don't like apache :P

lyric 07-03-2013 21:14

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
is there an sql dump i should be using to make the tables adn such for the db? i keep getting error logs on game server of

Code:

L 07/03/2013 - 21:12:56: SourceMod error session started
L 07/03/2013 - 21:12:56: Info (map "achievement_idle") (file "errors_20130703.log")
L 07/03/2013 - 21:12:56: [sourcebans.smx] Failed to query database. (Table 'bans.sb_servers' doesn't exist)

EDIT- after importing the install.sql i get error

Code:


ERROR 1064 (42000) at line 10: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{prefix}actions (
  id int(10) unsigned NOT NULL AUTO_INCREMENT,
  name varchar(' at line 1


Dr. McKay 07-04-2013 11:10

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
I just looked through the include file and I don't see a replacement for SBBanPlayer?

grey_tm 07-04-2013 12:16

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Есть предложение сделать развёрнутые сообщения забаненому при подключение и при бане.
Например...
Quote:

Вы были забанены!
Админ: grey
Причина: test
Время бана: 1 минут
Разбан: 04/07/2013 22:23:03
Подробнее: http://ban..ru/.
с поддержкой мультиязычности.

Ну ещё добавить возможность нормального офлайн бана.
------------------------------------------------------------------------------------
There is a proposal to make detailed reports and banned in connection with bath.
For example ...
Quote:

You have been banned!
Admin: grey
Reason: test
Ban length: 1 minute
Dilution: 07/04/2013 22:23:03
Details: http://ban..ru/.
supporting translate.

Well, have the possibility to normal offline ban.

by translate.google

The Night Fury 07-04-2013 12:25

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
1 Attachment(s)
Here goes russian translation. Live: http://admin.mt-games.ru/b/index.php

Also, I got a request: could you make a password generator for new admin accounts?
Just got it up: I use domain-look address of server, so when I type in domain instead of IP, I see an error (IP is wrong). Would be great if you will fix this.

Error: non-writable date format field.

DJ Tsunami 07-04-2013 12:30

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Dr. McKay (Post 1983194)
I just looked through the include file and I don't see a replacement for SBBanPlayer?

I guess you don't remember our conversation from 5 months ago? :)

http://forums.alliedmods.net/showthr...62#post1890162

lyric 07-04-2013 15:41

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
could someone advise on how to install the 2.0? it seems that information is very lacking in this and details on how the database is to be done. thanks

The Night Fury 07-04-2013 15:52

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
lyric, simply upload files and run /install/. Installer will show everyting you need to know/edit/fill in.
I am not sure about serverside script but it should be same structure as 1.4 is.

lyric 07-04-2013 16:09

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
i am going to do an install tutorial and update it if i run into problems and hopefully by the time i get it functioning completely the tutorial will be 100% complete for others to use. i will rely on you guys to help me solve probles so this tutorial is good is that cool to you? thanks

lyric 07-04-2013 16:37

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Web install instructions

1.) create MySQL database for sourcebans & give permissions for your gameserver to access it.
Code:

create database sbans;
grant all privileges on sbans.* to 'yourusername'@'game.servers.ip.address' identified by "yourpassword";
flush privileges;

2.) create the folders:
Code:

/application/runtime
/assets
/demos

and give them permissions 777

3.) give permissions 777 to the following folders:
Code:

/application/config
/images/games
/images/maps

4.) enter your database details on the next screen
Host, Port, Username, Password, Database Name, Table Prefix

5.) enter your owner information
Name, Password, Confirm Password, Email Address, Auth type, Identity

6.) delete the "Install" folder

7.) follow the link to your Sourcebans Dashboard

8.) get CDbException

Dr. McKay 07-04-2013 17:55

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by DJ Tsunami (Post 1983229)
I guess you don't remember our conversation from 5 months ago? :)

http://forums.alliedmods.net/showthr...62#post1890162

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.

cssBOT 07-04-2013 18:11

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by nomy (Post 1982647)
It looks great! But I think SB team should have merged SourceComms on version 2.

I agree with this 100%. Otherwise v2 breaks Sourcecomms, then it requires a rewrite anways, then a whole bunch of patching in things. Please just do it now.

DJ Tsunami 07-04-2013 18:25

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Dr. McKay (Post 1983419)
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); 


Dr. McKay 07-04-2013 18:30

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Sorry, I should have been clearer. I want to pass a Steam ID as the admin parameter, not as the client parameter.

DJ Tsunami 07-04-2013 18:50

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
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.

lyric 07-04-2013 19:26

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
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 :/

DJ Tsunami 07-05-2013 07:26

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
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.

lyric 07-05-2013 08:22

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by DJ Tsunami (Post 1983745)
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

DJ Tsunami 07-05-2013 10:11

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
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.

Rytis 07-05-2013 10:16

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
I'm also using nginx with php-fpm and it's working correctly :P

lyric 07-05-2013 11:36

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by DJ Tsunami (Post 1983812)
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

http://i.imgur.com/TYYWroh.png

DJ Tsunami 07-05-2013 11:39

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
if you click anywhere on that red line it should open a new pane to the right, which has a Response tab.

lyric 07-05-2013 11:44

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by DJ Tsunami (Post 1983874)
if you click anywhere on that red line it should open a new pane to the right, which has a Response tab.

That gave me the error :) turns out I had forgotten to grant access to user@localhost where all I did was grant access to [email protected] :bee: looks to be working now :bee: Thanks

DJ Tsunami 07-05-2013 11:49

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Great, glad it's working :)

lyric 07-05-2013 11:50

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
new problem. when i click login it tries to load an invalid link

Code:

http://mywebsite.com/bans/index.php/login
is that supposed to happen?

DJ Tsunami 07-05-2013 11:55

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
That's a valid link, is it not working? http://bans-beta.rts-server.net/index.php/login works.

lyric 07-05-2013 11:57

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by DJ Tsunami (Post 1983893)
That's a valid link, is it not working? http://bans-beta.rts-server.net/index.php/login works.

Yeah it's not working for me. I get error 404 Not Found when i follow links like that. maybe its nginx configuration problem? maybe ritis can help if he's around. thanks

Rytis 07-05-2013 11:59

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by lyric (Post 1983896)
Yeah it's not working for me. I get error 404 Not Found when i follow links like that. maybe its nginx configuration problem? maybe ritis can help if he's around. thanks

Code:

        location / {
        index index.php;

        if (!-e $request_filename){
                rewrite ^(.*)$ /index.php;
                }
        }


lyric 07-05-2013 12:03

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by Rytis (Post 1983899)
Code:

        location / {
        index index.php;

        if (!-e $request_filename){
                rewrite ^(.*)$ /index.php;
                }
        }


That didn't seem to work. I am using this right now.

Code:

    index index.php home.php index.html index.htm;
 
    # use fastcgi for all php files
    location ~ \.php$
    {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }


Rytis 07-05-2013 12:05

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Quote:

Originally Posted by lyric (Post 1983902)
That didn't seem to work. I am using this right now.

Code:

    index index.php home.php index.html index.htm;
 
    # use fastcgi for all php files
    location ~ \.php$
    {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }


Try this one:

Code:

server {
        listen 80;
        server_name bans-beta.rts-server.net;
        root /var/www/rts-server.net/bans-beta.rts-server.net;
        client_max_body_size 20M;

        location ~ \.php$ {
                try_files $uri =404;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include /etc/nginx/fastcgi_params;
    }

        location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
                access_log        off;
                expires          max;
        }

        location / {
        index index.php;

        if (!-e $request_filename){
                rewrite ^(.*)$ /index.php;
                }
        }

        location ^~ /application {
                allow 127.0.0.1;
                return 403;
                deny all;
        }

        location ^~ /framework {
                allow 127.0.0.1;
                return 403;
                deny all;
        }

        location ^~ /themes/bootstrap/views {
                allow 127.0.0.1;
                return 403;
                deny all;
        }

        location = /favicon.ico {
                log_not_found off;
        }

        gzip            on;
        gzip_min_length  1000;
        gzip_proxied    any;
        gzip_types text/plain text/css text/xml application/x-javascript application/xml application/xml+rss text/javascript;
}


lyric 07-05-2013 12:14

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
Nothing works when using that config. i put my webserver details inplace of yours like location and domain name

Rytis 07-05-2013 12:23

Re: SourceBans 2.0 Public Preview (2013/07/01)
 
What does the error log say to the 404 error?
I'm using for every subdomain an extra file :P


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

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