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

Sourcebans 1.x.x API


Post New Thread Reply   
 
Thread Tools Display Modes
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 06-07-2012 , 06:56   Re: Sourcebans 1.x.x API
Reply With Quote #31

Quote:
Originally Posted by 8088 View Post
Ereg is deprecated and will throw a notice warning if you enable error, warning and notice reporting. Use preg_match for regular expressions.
Quote:
Originally Posted by Jasonbourne View Post
Thanks ill.fix that up
Quote:
Originally Posted by Zephyrus View Post
why would you use ereg, its deprecated
i dont -> i changed it

Last edited by Jasonbourne; 06-07-2012 at 06:59.
Jasonbourne is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 06-07-2012 , 07:00   Re: Sourcebans 1.x.x API
Reply With Quote #32

Quote:
Originally Posted by Jasonbourne View Post
i dont -> i changed it
sorry i didnt read previous comments, i just saw this:

"should be ereg instead of preg_match"
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 06-07-2012 , 07:02   Re: Sourcebans 1.x.x API
Reply With Quote #33

Im still learning (arnt we all ?) and the community reviewing and scrutinizing my code is the way i learn best

Jasonbourne is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 06-07-2012 , 16:29   Re: Sourcebans 1.x.x API
Reply With Quote #34

I'm really curious as to what advantages this is for use on sourcebans as it is now? What if any changes to the current build of sourcebans will this improve?
Horsedick is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 06-07-2012 , 23:13   Re: Sourcebans 1.x.x API
Reply With Quote #35

Quote:
Originally Posted by Horsedick View Post
I'm really curious as to what advantages this is for use on sourcebans as it is now?
Its mainly so that people can build web apps that hook into the sb database.
  1. Build your own UI for SB with all the program logic and db work taken care off
  2. Automate systems such as payment with paypal ( im adding in an ipn)
  3. link hlstatsx and sb for various functionality
things along those lines

Last edited by Jasonbourne; 06-07-2012 at 23:13.
Jasonbourne is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 06-07-2012 , 23:40   Re: Sourcebans 1.x.x API
Reply With Quote #36

Quote:
Originally Posted by Jasonbourne View Post
Its mainly so that people can build web apps that hook into the sb database.
  1. Build your own UI for SB with all the program logic and db work taken care off
  2. Automate systems such as payment with paypal ( im adding in an ipn)
  3. link hlstatsx and sb for various functionality
things along those lines
hmm, yeah sounds good...although I do hope someone builds upon what you've done so it doesn't go to waste.
Horsedick is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 06-08-2012 , 01:19   Re: Sourcebans 1.x.x API
Reply With Quote #37

tbh i think sb is a piece of ... and that it should be completely rewritten instead of writing an API for it. It's ridiculous that you have to add the sb include to all your plugins to make it compatible while theres an OnBan forward in sm...
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 06-08-2012 , 02:11   Re: Sourcebans 1.x.x API
Reply With Quote #38

Quote:
Originally Posted by Zephyrus View Post
tbh i think sb is a piece of ... and that it should be completely rewritten instead of writing an API for it. It's ridiculous that you have to add the sb include to all your plugins to make it compatible while theres an OnBan forward in sm...
If we were to code a sourcebans replacement

what features are we looking at from scratch ?
Jasonbourne is offline
Laplace
SourceMod Donor
Join Date: Aug 2010
Location: Germany
Old 06-08-2012 , 03:23   Re: Sourcebans 1.x.x API
Reply With Quote #39

hmm .. sourcebans is not as bad as stated by Zephyrus. I use it for years now and it does its job so far - the API will be helpfull to integrate other pages (specially user- and ban management) like spraytracker, donate interface, reserved slot interface and so on.

BR Laplace
Laplace is offline
Send a message via ICQ to Laplace
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 06-08-2012 , 03:55   Re: Sourcebans 1.x.x API
Reply With Quote #40

Quote:
Originally Posted by Laplace View Post
hmm .. sourcebans is not as bad as stated by Zephyrus. I use it for years now and it does its job so far - the API will be helpfull to integrate other pages (specially user- and ban management) like spraytracker, donate interface, reserved slot interface and so on.

BR Laplace
Because you are not a developer. Developers have to spend time just to add sourcebans compatibility to plugins because they were unable to use the OnBan forward, the sb page is really hard to modify because its all hardcoded + imho the file structure is a mess as well

+ sb is one of the main reasons why the sql lag happens on a lot of servers, it does so many sql queries that it blocks other plugins
__________________
Taking private C++/PHP/SourcePawn requests, PM me.

Last edited by Zephyrus; 06-08-2012 at 04:02.
Zephyrus 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 00:31.


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