Comments (4)
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.
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.
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.
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)
- remove dead instances from list of known instances HOT 6
- [Question]: Is this project alive still? The domain fedibb.ml is down, and it doesn't seem that there's any way to communicate about troubleshooting. HOT 2
- [Question]: Can those errors be fixed in the README file? HOT 1
- [Feature]: line break latest reply
- clearing up installation instructions HOT 11
- What version of Cargo is needed? HOT 1
- Failed to start lemmy_bb HOT 9
- [Question]: Is the SSL Cert for the BB Subdomain made automatically? HOT 9
- [Bug]: timeout in backend when trying to update user profile HOT 2
- [Question]: Report software name as lemmybb for statistics? HOT 2
- [Bug]: Clicking any individual post link in a topic results in a 404
- [Bug]: Subject title link within topic leads to 404 HOT 1
- [Bug]: Reply to comment leads to 500: Internal Server Error
- [Bug]: Selecting higher sites than 1 on community-list gives every time back site 1
- [Bug]: No 500 catcher registered. Using Rocket default. HOT 4
- [Feature]: XenLemmy HOT 1
- [Bug]: 404 error when using pagination HOT 2
- [Bug]: Invalid URL Created When Changing Pages On Topic List HOT 2
- [Feature]: Separate mentions at the beginning of a post HOT 5
- [Bug]: update for lemmy 0.18.x and above HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lemmybb.