Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2015-03-25 17:56:24

XAOS-Eric
Member
Registered: 2013-10-16
Posts: 48

FluxBB 2.0 API - Plugins and Theme support

So for FluxBB 2.0, it is important for it to be fast and powerful, yet extensible at the same time. Right now, I am working on the plugins and theme systems for the fluxbb 2.0 core. Ideally, the plugins would be almost like hooks in a way that hook into FluxBB similar to how the current version does it. For themes, right now we are using blade, but we could use twig, what is every ones preference for this? And, in terms of backwards comparability, they will most likely not be compatible with 2.0 upon initial release.

Offline

#2 2015-03-25 21:50:01

cyberman
Member
From: Germany
Registered: 2010-01-11
Posts: 297
Website

Re: FluxBB 2.0 API - Plugins and Theme support

XAOS-Eric wrote:

For themes, right now we are using blade, but we could use twig, what is every ones preference for this?

Love Smarty wink.

Offline

#3 2015-03-26 07:18:52

GWR
Member
From: Germany
Registered: 2010-08-06
Posts: 214

Re: FluxBB 2.0 API - Plugins and Theme support

Smarty does what all "template engines" in php do: it templates a template engine.

You know... php is useable as a template engine (with all its "<?php bla ?>"). Next to caching and APC there is no need to use "templates". Only exception is a strict "MVC" - which is absolutely not needed for a board software (imho). You only add another intermediate step for customization of your board skin.

bye
Ron

Offline

#4 2015-03-26 12:58:11

XAOS-Eric
Member
Registered: 2013-10-16
Posts: 48

Re: FluxBB 2.0 API - Plugins and Theme support

GWR wrote:

Smarty does what all "template engines" in php do: it templates a template engine.

You know... php is useable as a template engine (with all its "<?php bla ?>"). Next to caching and APC there is no need to use "templates". Only exception is a strict "MVC" - which is absolutely not needed for a board software (imho). You only add another intermediate step for customization of your board skin.

bye
Ron

If I remember correctly, IceBB had a Skins engine that used php based templates similar to how phpbb does it. IceBB was built to be lightweight, and it wouldn't take me long at all to fix the code from IceBB 2.0.

Last edited by XAOS-Eric (2015-03-26 12:58:48)

Offline

#5 2015-03-26 13:17:11

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,724
Website

Re: FluxBB 2.0 API - Plugins and Theme support

There's also Plates, which is a PHP-based templating library with a few nifty features.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#6 2015-03-27 20:02:22

cyberman
Member
From: Germany
Registered: 2010-01-11
Posts: 297
Website

Re: FluxBB 2.0 API - Plugins and Theme support

Plates is inspired by Twig, and Twig was inspired by Smarty big_smile.

Offline

#7 2015-03-31 06:51:26

fungku
Member
Registered: 2013-03-19
Posts: 47
Website

Re: FluxBB 2.0 API - Plugins and Theme support

I like Twig... or Blade even.

Never looked at plates, but it's part of the league so it should be at least decent.


Canadian Lumberjack

Offline

Board footer

Powered by FluxBB