[Define New Theme] 17. Completely remove all generated HTML from the core.

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
marcovo
Registered User
Posts: 7
Joined: Sat Nov 15, 2014 9:57 am

Re: [Define New Theme] 17. Completely remove all generated HTML from the core.

Post by marcovo »

Would it be an option to use bbcode(-like) tags to markup language-files then? Would at the same time maybe be much cleaner to translators, too. Then you won't have to deal with <strong >, etc... because you got a bold tag, and the same for the rest. Only <p > isn't supported by the bbcode system I guess, but you can introduce a new (language-file-only?) bbcode for that.

Other than this suggestion, I don't think examples like "Page <strong>%d</strong> of <strong>%d</strong>" are that bad... if they're kept at a minimum?

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: [Define New Theme] 17. Completely remove all generated HTML from the core.

Post by Meis2M »

Hello

when start new phpBB default design ?

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 373
Joined: Thu Sep 16, 2004 9:02 am
Contact:

Re: [Define New Theme] 17. Completely remove all generated HTML from the core.

Post by Paul »

It is already started.

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: [Define New Theme] 17. Completely remove all generated HTML from the core.

Post by Meis2M »

where can see the demo or progress ?

User avatar
Mess
Registered User
Posts: 199
Joined: Wed Jun 13, 2012 10:14 am

Re: [Define New Theme] 17. Completely remove all generated HTML from the core.

Post by Mess »

Meis2M wrote:where can see the demo or progress ?
Here: https://area51.phpbb.com/phpBB/viewtopi ... 81&t=45539

User avatar
wilkinsocks
Registered User
Posts: 5
Joined: Tue May 05, 2015 5:33 am
Location: United Kingdom

Re: [Define New Theme] 17. Completely remove all generated HTML from the core.

Post by wilkinsocks »

Shouldn't data be sent to views as variables instead of printing strings from controllers?

A possible good example is something like: $user->avatar_img_url denoting the url for a avatar.
These could be available to a theme developer to call directly within a template file.

I mean I get that by doing that would potentially break the old themes, but who cares, they're old and need updating anyway?

Post Reply