![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||||
Accelerated Mobile Pages for vBulletin
![]() Developer Last Online: Oct 2021 ![]() ![]() ![]()
What is AMP?
https://www.ampproject.org/ Info When Google announced AMP, I realized I'd eventually need AMP support for my vBulletin forum. After reading the AMP implementation docs, I decided to modify printthread.php file since It only displays the basic elements and contents of a thread. So, you got the idea... Implementation
I installed a fresh vBulletin 3.8 to my localhost and tested this mod. It should work just fine unless your vBulletin is highly modified. If you get validation errors, I believe you can fix them by looking at the examples (comments). Does it work?
Attachment 155404 Attachment 155405 Attachment 155406 Attachment 155407 Credits Accelerated Mobile Pages for vBulletin 3.8 is created by NeutralizeR from https://www.msxlabs.org Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
|
#16
|
||||||||
|
||||||||
Originally Posted by beansbaxter
Sorry, I forgot to tell you need to edit the "ampthread" template and change![]()
to
or to your language code. (de,fr,ro, etc...)
__________________
MsXLabs Forum The following members like this post: beansbaxter
|
#17
|
||||||||
|
||||||||
Originally Posted by NeutralizeR
You beat me to it! I found out where the problem was happening, made the edit, and came back to this thread to find you already posted a fix. Thanks!
![]()
__________________
PNW Moto - Motorcycle riders in Washington, Oregon, Idaho No members have liked this post.
|
#18
|
||||||||||||||||
|
||||||||||||||||
Great everything works...
I too am running vBSEO. Not sure if this is possible, is there a way to change the AMP permalink structure to match up with vBSEO URL's? And to convert the vBSEO Printable Thread URL's to the AMP version? Examples below: -- Currently, the vBSEO Print Thread structure is:
Can it be changed to the following:
-- Currently, the vbSEO Print Thread Pagination:
Can it be changed to the following:
-- And then how to change the AMP permalink to match up? Thoughts?
__________________
PNW Moto - Motorcycle riders in Washington, Oregon, Idaho No members have liked this post.
|
#19
|
|||
|
|||
AMP version of threads are unaffaced by vBSEO on my setup. I guess you are tying to make vBSEO powered AMP threads. It will require some edits in vbseo\includes.
You currently have two canonical tags on your AMP threads. Remove the one in ampthread template. Check my second post, edit your pagenav template. Finally, you should remove <base href...> tag from your AMP threads. I think it is added by vBSEO, too. You must see the "AMP validation successful." message in your developer console log. http://pnwmoto.com/amp/2425.html#development=1 Example: Snap1.png
__________________
MsXLabs Forum No members have liked this post.
|
#20
|
|||
|
|||
Once Googlebot crawls your AMP thread, (and if it returns valid AMP status code) Google will save a copy of your page to their servers.
So, when Google pushes AMP content for all kind of websites to mobile search results (soon), your AMP thread will be served via Google. This is what I know and I did not make any extra SEO efforts for AMP threads, based on this information.
__________________
MsXLabs Forum No members have liked this post.
|
#21
|
||||
|
||||
Thanks for the feedback. I've been working in the Developer Console Log and have worked through all the errors, except for one...
I see where vBSEO is adding the <base href...> tag, however when I remove it, then the forum's CSS and Style doesn't load... not sure if there is a workaround... This the last issue I need to resolve to validate AMP.
__________________
PNW Moto - Motorcycle riders in Washington, Oregon, Idaho No members have liked this post.
|
#22
|
||||||||||||
|
||||||||||||
Originally Posted by beansbaxter
Open vbseo\includes\functions_vbseo.php, find ![]()
right below this line there is a line starting with $newtext. Replace:
width:
__________________
MsXLabs Forum No members have liked this post.
|
#23
|
||||||||||||
|
||||||||||||
Originally Posted by NeutralizeR
Thank you so much! I tried several things and couldn't get it to work. And this worked great!![]()
AMP is now being validated. Thanks again. I appreciate your help.
__________________
PNW Moto - Motorcycle riders in Washington, Oregon, Idaho No members have liked this post.
|
#24
|
|||
|
|||
You are welcome
![]()
__________________
MsXLabs Forum No members have liked this post.
|
#25
|
|||
|
|||
Great stuff!
How can we put a link in the thread tools section? Thanks for support! Greetings Klaus The following members like this post: NeutralizeR
|
#26
|
|||
|
|||
Ok, validation makes some problems:
The attribute 'nowrap' may not appear in tag 'td'. The attribute 'style' may not appear in tag 'div'. The attribute 'style' may not appear in tag 'td'. The tag 'img' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-img'? 585 https://www.ampproject.org/docs/reference/amp-img.html The attribute 'style' may not appear in tag 'div'. The attribute 'nowrap' may not appear in tag 'td'. The tag 'script' is disallowed except in specific forms. Any idea how to fix this? No members have liked this post.
|
#27
|
|||
|
|||
Originally Posted by nw-fotografie
Helped via PM.![]()
Note: I can't answer all questions via PM but I'll try to help you fix the validation issues. I believe we covered most of them. Some plugins globally add codes/lines to many vB pages, including AMP. You should exclude them for AMP threads.
__________________
MsXLabs Forum No members have liked this post.
Last edited by NeutralizeR; 04 Nov 2016 at 15:24. |
#28
|
||||
|
||||
I have "Missing structured data element" in google webmasters.
I checked your pages and found this:
I need some help with this datePublished and DateModified. with $threadinfo[dateline & lastpost] I get unix date format. Regards, No members have liked this post.
|
#29
|
||||
|
||||
http://searchengineland.com/amp-page...console-255016
You can check this example regarding dates in unix format:
__________________
MsXLabs Forum No members have liked this post.
|
#30
|
||||||||
|
||||||||
Originally Posted by NeutralizeR
Thanks, Google is crawling now
![]()
No members have liked this post.
|
![]() |
Tags |
accelerated mobile pages, amp, amp for vbulletin, google amp |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 22:49.