Raised This Month: $32 Target: $400
 8% 

SQL Feedback


Post New Thread Reply   
 
Thread Tools Display Modes
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-26-2009 , 17:15   Re: SQL Feedback
Reply With Quote #21

Updated to Version 1.1.0

Check the first post for the changelog. A working SQLite version is still to come (sorry for taking so long, I lost interest in this plugin a while back ).

[edit]

I also updated the php script in the second post.

Last edited by bl4nk; 11-26-2009 at 17:55.
bl4nk is offline
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 11-26-2009 , 18:00   Re: SQL Feedback
Reply With Quote #22

Year, great work

Any chance to add ServerIP and Game-Folder-Name (e.g. cstrike, dods e.t.c) loging?
Code:
    new String:GameType[32];
    GetGameFolderName(GameType, sizeof(GameType));

    new String:ServerIP[32];
    cvar_ServerIP = FindConVar("ip");
    GetConVarString(cvar_ServerIP, ServerIP, sizeof(ServerIP));
This will be useful.
I add this plugin to the next Sourcemod Webadmin relase in dezember
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 11-26-2009 at 18:09.
HSFighter is offline
Send a message via ICQ to HSFighter
bouncer
Veteran Member
Join Date: Apr 2009
Old 11-27-2009 , 00:30   Re: SQL Feedback
Reply With Quote #23

eh bl4nk so is "default" the right name for the database? if so, any idea why it wont work for me? all my ports are open, and i have sourcebans working so it proves that it should work for this as well.

and if possible could you rename the table from default to something else? thanks.

EDIT: for php i get error

Parse error: syntax error, unexpected T_VARIABLE in /home/brother6/public_html/feedback.php on line 3

www.brotherhoodofgamers.com/feedback.php
__________________



Last edited by bouncer; 11-27-2009 at 00:39.
bouncer is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-27-2009 , 01:30   Re: SQL Feedback
Reply With Quote #24

Quote:
Originally Posted by bouncer View Post
eh bl4nk so is "default" the right name for the database? if so, any idea why it wont work for me? all my ports are open, and i have sourcebans working so it proves that it should work for this as well.
The plugin uses the settings under the "default" configuration section in your databases.cfg file.

Quote:
Originally Posted by bouncer View Post
and if possible could you rename the table from default to something else? thanks.
The table is named 'feedback', not 'default' - that's the entry in the databases.cfg, as mentioned above.

Quote:
Originally Posted by bouncer View Post
or php i get error

Parse error: syntax error, unexpected T_VARIABLE in /home/brother6/public_html/feedback.php on line 3

www.brotherhoodofgamers.com/feedback.php
I updated the php file to fix that and a few other things. Download it again and make sure to configure the first few lines to point to the proper MySQL database.
bl4nk is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 11-27-2009 , 01:44   Re: SQL Feedback
Reply With Quote #25

still same issue.
__________________


bouncer is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 11-27-2009 , 01:44   Re: SQL Feedback
Reply With Quote #26

what happened to the original php that used to work? that one showed fine, except u put duplicate code in the php file, original one i noticed.
__________________


bouncer is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-27-2009 , 03:16   Re: SQL Feedback
Reply With Quote #27

Odd, it seems the last change I made didn't stick. I updated it again, and used the exact code here (using dummy information I input to test out utf8 handling and such):

http://www.joe.to/sqlfeedback.php
bl4nk is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 11-27-2009 , 09:49   Re: SQL Feedback
Reply With Quote #28

ok works now, and what about clearing out old feedbacks feature?
something should be implemented so that the database doesnt get too big.
__________________



Last edited by bouncer; 11-27-2009 at 09:52.
bouncer is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-27-2009 , 23:14   Re: SQL Feedback
Reply With Quote #29

What do you mean? MySQL is optimized for space; you could have hundreds of thousands of entries and it wouldn't take up much space.
bl4nk is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-28-2009 , 00:28   Re: SQL Feedback
Reply With Quote #30

Updated to Version 1.2.0

Changelog:
  • Added logging of the server ip and port, and the game's name.
Updating from V1.1.0 or earlier:
If you don't have a previous installation, ignore this section.

Run the following code on your MySQL database with the "feedback" table on it:
Code:
ALTER TABLE `feedback`
ADD `serverip` varchar(16) NOT NULL AFTER `map`,
ADD `serverport` varchar(6) NOT NULL AFTER `serverip`,
ADD `game` varchar(32) NOT NULL AFTER `serverip`;

Last edited by bl4nk; 12-01-2009 at 23:57.
bl4nk 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 01:47.


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