[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 next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.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 » Sat Nov 15, 2014 12:24 pm

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: 419
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 » Sun Nov 16, 2014 2:29 pm

Hello

when start new phpBB default design ?

User avatar
paulus
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 364
Joined: Thu Sep 16, 2004 9:02 am
Contact:

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

Post by paulus » Sun Nov 16, 2014 2:42 pm

It is already started.


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

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

Post by Mess » Mon Nov 17, 2014 8:34 am

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 » Tue May 05, 2015 9:11 am

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