Giter Site home page Giter Site logo

Comments (4)

Nutomic avatar Nutomic commented on July 19, 2024 2

The problem is that each phpBB theme includes its own HTML template files, which can be completely distinct.

If you want to make a theme work with lemmybb, you need to follow these steps:

  • Clone this repo
  • Place the theme's css files (and other assets) in assets/styles/
  • Rewrite everything in templates/ folder to make it work with theme's css and handlebars templating.

The last step is obviously the most complicated one. Filenames in templates folder are hardcoded in lemmybb, so you cant change them, and they dont relate to phpbb file structure because I took the HTML from a running phpbb site, not from the raw templates files.

Basically there will be some trial and error to get things working. If you want to give it a try, I suggest you make a pull request with your changes, so others can follow along and help out. Once its working and if the theme is open source, we can include it with lemmybb to give some different choices to users.

from lemmybb.

Tealk avatar Tealk commented on July 19, 2024

this is not so easy, because there is no standardized handling for the phpbb templates

also they all need to be customized to work with lemmy

from lemmybb.

mu-arch avatar mu-arch commented on July 19, 2024

How stable do you feel the codebase is right now for things like element names? I am very excited about this project but I want to wait until things are fleshed out so I don't wind up doing a lot of work twice.

from lemmybb.

Nutomic avatar Nutomic commented on July 19, 2024

Most of what you see in the templates are lines like {{{markdown site_data.site.site_view.site.sidebar}}}. That looks complicated but its really just using Lemmy structs directly from the api/database. That is completely stable and will not change. There are some things which might be refactored sooner or later such as pagination, but nothing major. And for now I can easily prioritize other work, there is plenty to do.

Btw if we can merge your theme into this repo, it should be easy to add test cases which detect breakage. That would help to stabilize the template rendering and make it easier to develop more themes.

from lemmybb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.