MyBB Ideas

The MyBB Ideas site allows users to suggest new features and changes in MyBB and the MyBB Group to easily review them to decide what direction MyBB should head in. Search existing ideas.

Template flat-files option (.tpl)

45 votes

Submitted by Tikitiki, 1st March 2007, 3:25:51 AM

Just posting this idea here to think what the rest of the community thinks.

It would allow you to change the template medium to file-based or (as regular) database based. It would be similar to the way the css file-based option works. Something like: http://yoursite.com/yourforum/templates/...index.tpl. And instead of querying it from the database it would just include it.

Again just an idea to see if this would be plausible to implement.

13 Comments

  1. It is an interesting idea. phpBB does templates as flat files and it would certainly make things easier for people converting from their software. I'd kinda prefer it myself, but I wonder if it would affect performance any.

    Galen, 1st March 2007, 5:33:35 AM
  2. Good Idea, I would prefer it because it will make life easier for me. :)

    DARRKCLOUD, 1st March 2007, 10:04:29 AM
  3. i like this idea, but i think there should be both available so people can edit through the admin aswell as template files.

    one of the best features of mybb is its ease to edit and update themes.

    tyros8000, 1st March 2007, 1:55:01 PM
  4. I have no idea what you're talking about but it sounds interesting. :)

    FirefoxWiz, 2nd March 2007, 12:21:14 AM
  5. if you can edit .tpl templates via admincp its an excelent idea :)

    HASANN, 2nd March 2007, 1:19:21 AM
  6. ok well as this would be a good one and allso phpbb3 there new verion runs on .html now and not .tpl

    crsoft, 2nd March 2007, 5:01:35 AM
  7. Doesn't really matter what file extension the template files use.

    It would be very easy to edit the files from the adminCP, but users would have to make sure that all tpl files can be written to (unless you have PHP as a CGI, then it doesn't matter).

    Galen, 2nd March 2007, 10:06:55 PM
  8. The whole point, as I see, of .tpl files is that they allow easy external editing. I have been looking for it, and all the softwares I have ever written/used always had multiple options for templates, and I always used .tpl.

    It has been a little bit of a pain to edit templates from admin CP (especially, when I am on my slow 128K connection), or on my 1024x768 resolution monitor.

    Asad_Niazi, 8th March 2007, 8:34:12 PM
  9. IT was good in phpBB, so it would enhance MyBB

    Aweb, 11th March 2007, 10:35:16 AM
  10. Good idea. Heck of a lot of files though.

    DennisTT, 11th March 2007, 10:38:11 PM
  11. Nice idea :)

    quote: "Doesn't really matter what file extension the template files use."

    No, it does matter. If the extension is, say, *.tpl, then people will be able to download those templates and maybe that's something that the admin(s) do(es)n't like. IMO, they should be *.php files, starting with this:

    <?php
    exit("don't ahve permission bla bla bla");
    ?>

    and after that comes the real template. ;)

    Choli, 10th April 2007, 8:59:26 AM
  12. +1 from me

    ThePaul, 22nd April 2007, 9:40:38 PM
  13. just something came from phpbb and it should not be in mybb

    forevagrey, 20th February 2008, 1:56:26 AM

Post a Comment

Before you can post a comment you must be a registered member of the MyBB Community Forums.

If you already have an account, log-in to it to post a comment or if you don't register a new account.