AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Feature Request API? (https://forums.alliedmods.net/showthread.php?t=225921)

Blackglade 09-10-2013 21:02

API?
 
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?

DJ Tsunami 09-11-2013 16:00

Re: API?
 
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.

Blackglade 09-11-2013 17:41

Re: API?
 
Quote:

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

DJ Tsunami 09-12-2013 15:56

Re: API?
 
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.

FlyingMongoose 09-13-2013 19:44

Re: API?
 
Is this in the documentation yet Tsunami?
https://github.com/GameConnect/Sourc...mment-22818156

DJ Tsunami 09-13-2013 19:56

Re: API?
 
It's roughly described on http://docs.sourcebans.net/guide/development.events.


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

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