Accelerated Mobile Page for phpBB

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Anti-Spam Guide
User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1575
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Accelerated Mobile Page for phpBB

Post by kinerity » Wed Feb 21, 2018 12:55 pm

tojag wrote:
Wed Feb 21, 2018 12:44 pm
In the case of phpbb I see the possibility of applying this to the main page, where only forums would be listed without information about the last post written, i.e. without dynamic content creation.
The "main page", as you refer to it, is still dynamic. It pulls that information from the database. Anything that has to query a database to display content is considered dynamic.
Kailey Truscott - Community Team

User avatar
tojag
Registered User
Posts: 294
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Accelerated Mobile Page for phpBB

Post by tojag » Wed Feb 21, 2018 1:38 pm

Kinerity, I know but if You remove dynamic elements - last post, autors, statistic etc. and leave only the list of forums, it would be possible to do it as AMP.
As I wrote, the usefulness of such a site is small. But this is the only thing that comes to my mind in the case of phpbb if someone really wants to have AMP.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19134
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Accelerated Mobile Page for phpBB

Post by Mick » Wed Feb 21, 2018 1:45 pm

But the the “list (and layout) of the forums” still comes from the dB.

I must admit I skimmed most of this but what, if any, benefit would this be to phpBB?

I saw somebody mention phpBB being slow on the uptake with such matters then mentions phpBB has only just taken up with fontawesome. I, for one, personally don’t think fontawesome is any benefit whatsoever, I preferred the use of our own gif’s but I move with the times. If AMP is going to be good for phpBB how about some proof?
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

User avatar
tojag
Registered User
Posts: 294
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Accelerated Mobile Page for phpBB

Post by tojag » Wed Feb 21, 2018 1:59 pm

I am just saying the same - I do not see the advantages of AMP for phpbb.
I just want to say that the list of forums does not change often, this is the only element that can be prepared statically under AMP. Simply a list of forums with very light graphics (not from DB). No statistics and recent posts etc.
Regards

User avatar
david63
Jr. Extension Validator
Posts: 14112
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Accelerated Mobile Page for phpBB

Post by david63 » Wed Feb 21, 2018 2:03 pm

tojag wrote:
Wed Feb 21, 2018 1:59 pm
this is the only element that can be prepared statically under AMP.
I will admit that I know just about zilch to do with AMP but even that cannot work - how would you handle returning the data in a user's language without accessing the database?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1575
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Accelerated Mobile Page for phpBB

Post by kinerity » Wed Feb 21, 2018 2:05 pm

tojag wrote:
Wed Feb 21, 2018 1:59 pm
I just want to say that the list of forums does not change often, this is the only element that can be prepared statically under AMP.
While the first part may be true, the second part is not. The list of forums, no matter how often they do or do not change, is not static. It's all DB driven. Now, you can cache the list of forums, but phpBB already does this. If AMP is only beneficial for static content, then it isn't the right platform for phpBB. :)
Kailey Truscott - Community Team

User avatar
david63
Jr. Extension Validator
Posts: 14112
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Accelerated Mobile Page for phpBB

Post by david63 » Wed Feb 21, 2018 2:08 pm

kinerity wrote:
Wed Feb 21, 2018 2:05 pm
Now, you can cache the list of forums
But even then there is the need to recreate that from the DB if the cache has been purged, or that cache file has expired.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
JoshyPHP
Code Contributor
Posts: 911
Joined: Mon Jul 11, 2011 12:28 am

Re: Accelerated Mobile Page for phpBB

Post by JoshyPHP » Wed Feb 21, 2018 2:16 pm

david63 wrote:
Wed Feb 21, 2018 2:03 pm
how would you handle returning the data in a user's language without accessing the database?
You wouldn't. The proper way to do that would be to prerender the AMP version of the pages and serve them via static files. Basically: wget https://www.phpbb.com/community/ > amp/index.html

The target end-users for AMP pages are random people coming from Google's search results page who would see the default page anyway.
I wrote the thing that does BBCodes in 3.2.

User avatar
tojag
Registered User
Posts: 294
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Accelerated Mobile Page for phpBB

Post by tojag » Wed Feb 21, 2018 2:26 pm

JoshyPHP wrote:
Wed Feb 21, 2018 2:16 pm
The proper way to do that would be to prerender the AMP version of the pages and serve them via static files. Basically: wget https://www.phpbb.com/community/ > amp/index.html
And that's what it's about.

User avatar
Macko
Registered User
Posts: 33
Joined: Fri Jun 03, 2016 8:38 pm
Location: Online
Name: Mac Ko

Re: Accelerated Mobile Page for phpBB

Post by Macko » Sat Mar 10, 2018 10:23 am

I see AMP results a lot more these days. I don't know why anyone would say it seems to have no benefit to phpBB. AMP results load LIGHTENING fast, so hopefully there is a way to get it working on phpBB sometime.

User avatar
Niko!
Registered User
Posts: 17
Joined: Thu Jan 22, 2015 5:27 pm
Contact:

Re: Accelerated Mobile Page for phpBB

Post by Niko! » Fri Apr 13, 2018 3:24 pm

Macko wrote:
Sat Mar 10, 2018 10:23 am
I see AMP results a lot more these days. I don't know why anyone would say it seems to have no benefit to phpBB. AMP results load LIGHTENING fast, so hopefully there is a way to get it working on phpBB sometime.


Exactly!

that is what I was saying... at least for the static topics (where the first message doesn’t change) it should be implemented. For example that you can flag if the first message is something like an article or not.
...

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1575
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Accelerated Mobile Page for phpBB

Post by kinerity » Fri Apr 13, 2018 3:44 pm

Niko! wrote:
Fri Apr 13, 2018 3:24 pm
at least for the static topics
Which phpBB does not have (no such thing as a "static topic"). Everything in phpBB is database driven.
Kailey Truscott - Community Team

User avatar
JoshyPHP
Code Contributor
Posts: 911
Joined: Mon Jul 11, 2011 12:28 am

Re: Accelerated Mobile Page for phpBB

Post by JoshyPHP » Fri Apr 13, 2018 5:54 pm

Macko wrote:
Sat Mar 10, 2018 10:23 am
I see AMP results a lot more these days. I don't know why anyone would say it seems to have no benefit to phpBB.
AMP pages are slower than normal pages. The one benefit that AMP pages have is that they're hosted by Google and they are preloaded and/or prerendered when you perform searches on Google. That's why they feel fast; They're the tortoise to everybody's hare, but in this case the tortoise jumps the gun and starts running while everybody else is waiting on the start line.
Macko wrote:
Sat Mar 10, 2018 10:23 am
[...] hopefully there is a way to get it working on phpBB sometime.
IMO, it requires too much work. I don't think a single person will want to do that.
I wrote the thing that does BBCodes in 3.2.

Post Reply

Return to “phpBB Discussion”

Who is online

Users browsing this forum: Bing [Bot], bonelifer and 25 guests

cron