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

Feature Request API?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blackglade
Senior Member
Join Date: Jul 2012
Location: NYC
Old 09-10-2013 , 21:02   API?
Reply With Quote #1

Will you release an early developer API, (for those of us who want to get started early on working with sourcebans 2.0)?


Also on a side note, i am pretty decent with styling and theme design in general. Is there anyway i can get started as far as making a theme as an addon to Sourcebans 2.0?
Blackglade is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-11-2013 , 16:00   Re: API?
Reply With Quote #2

http://docs.sourcebans.net/guide/development.overview
http://docs.sourcebans.net/api

As you said, it's early, haven't had much time documenting it further, but the basics are there.

As for the theme, a couple of people have offered to do one, but only one person has actually started and is making good progress. The current theme is kind of complex due to the heavy use of Yii widgets and JavaScript, so you'll probably have to get into the Yii framework a bit if you want to start on your own theme.
__________________
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
Blackglade
Senior Member
Join Date: Jul 2012
Location: NYC
Old 09-11-2013 , 17:41   Re: API?
Reply With Quote #3

Quote:
Originally Posted by DJ Tsunami View Post
http://docs.sourcebans.net/guide/development.overview
http://docs.sourcebans.net/api

As you said, it's early, haven't had much time documenting it further, but the basics are there.

As for the theme, a couple of people have offered to do one, but only one person has actually started and is making good progress. The current theme is kind of complex due to the heavy use of Yii widgets and JavaScript, so you'll probably have to get into the Yii framework a bit if you want to start on your own theme.
Yii is for automatic CRUD code if i am correct.. right?

also the API looks nice, is there any examples you can possibly give as to how to go about creating the various modules?

As far as theme goes, ill probably end up porting the default bootstrap theme and changing up the CSS a bit to make it look slightly different!

(Currently trying to figure out a way to incorporate Metro UI kind of feel to sourcebans)
Blackglade is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-12-2013 , 15:56   Re: API?
Reply With Quote #4

Yii is a PHP framework based on the MVC (model-view-controller) design pattern. It comes with:And a lot more, which saves us the hassle of writing all of that ourselves. Yes, it also has a tool called Gii to automatically generate models and CRUD code from the database, plus there are over 1300 free extensions to add more functionality, for example for Twitter Bootstrap, GeoIP, PHPMailer/SwiftMailer, TinyMCE, Smarty/Twig, etc.

If you want to create SB2 plugins, there's a simple example in the documentation, which you can save as application/plugins/DemoPlugin.php and then enable it under Administration > Settings > Plugins. The included Community Bans plugin is more complex (and unfinished, but you can enable it and see what it does so far).

You're right, most people will probably just change the CSS to make it look different, so I am looking into the possibility of adding CSS files to existing themes, so you don't have to copy the HTML. But due to starting a new job my time has been limited.
__________________
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; 09-12-2013 at 16:03.
DJ Tsunami is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 09-13-2013 , 19:44   Re: API?
Reply With Quote #5

Is this in the documentation yet Tsunami?
https://github.com/GameConnect/Sourc...mment-22818156
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-13-2013 , 19:56   Re: API?
Reply With Quote #6

It's roughly described on http://docs.sourcebans.net/guide/development.events.
__________________
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 15:11.


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