Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

template system

+4 votes
asked Mar 13, 2010 in Q2A Core by julian
I think an template system is required because many people will want to make their website unique and change the site layout not just the colours but everything else.  

Something like other great scripts have like wordpress, phpbb, vbulletin etc.

1 Answer

0 votes
answered Mar 13, 2010 by anonymous
Other great scripts operate with themes. Themes can be created with Question2Answer already.
commented Mar 13, 2010 by julian
themes and templates are 2 different things, you can change the theme via the css file but i want to change everything about the design and structure and i think its easier with an template system.
commented Mar 13, 2010 by gidgreen
The theme base class which outputs HTML is broken into many small functions to make it easy to override certain parts of the output. I understand this is not the same as templating. But the trouble with templating is that a versatile system gets so complicated that you might as well just use native PHP code. That's what the theme object allows you to do. I believe WordPress adopts a native PHP approach as well.
commented Mar 16, 2010 by gidgreen
There is now proper documentation on how to create Question2Answer themes: http://www.question2answer.org/advanced.php#theme