MyBB Community Forums
Conditionals - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Development (https://community.mybb.com/forum-105.html)
+---- Thread: Conditionals (/thread-196014.html)



Conditionals - eeji - 2016-07-23

Are conditionals natively supported in themes? I've been asked to knock up a myBB theme but all my templating experience so far is with phpBB which does support this.


RE: Conditionals - Ashley1 - 2016-07-23

No, but there is a plugin for php template conditionals.


RE: Conditionals - WallBB - 2016-07-23

Here you go for the link to Template Conditional plugin
http://mybbhacks.zingaburga.com/showthread.php?tid=260

After using this plugin you can add php in any theme template.


RE: Conditionals - eeji - 2016-07-24

Thanks Smile

...also is there any way to edit actual template files without using the admin panel? I much prefer to use a text editor, especially when experimenting


RE: Conditionals - Euan T - 2016-07-24

Hi,

Templates are stored in the database, so unfortunately the easiest way to do it is from the Administrator Control Panel (ACP).


RE: Conditionals - eeji - 2016-07-24

Sad that sucks


RE: Conditionals - Johnny S - 2016-07-24

You can give a shot with Sublime text editor http://community.mybb.com/thread-144390.html


RE: Conditionals - .m. - 2016-07-24

edit: delayed response

well, you can try using Sublime Mybb Template Editor