amp-wp icon indicating copy to clipboard operation
amp-wp copied to clipboard

Playbuzz not working in 0.5.1

Open amedina opened this issue 9 years ago • 21 comments

http://www.playbuzz.com/

amedina avatar Aug 17 '17 20:08 amedina

Related to: https://github.com/Automattic/amp-wp/issues/760

amedina avatar Aug 17 '17 20:08 amedina

On WP we insert the playbuzz tag like this: [playbuzz-item item="id-from-the-content-here" format="story"]

and the amp tag for playbuzz is:

<amp-playbuzz
	    src="id-from-the-content-here"
	    height="500"
	    data-item-info="true"
	    data-share-buttons="true"
	    data-comments="true">
	</amp-playbuzz>

I need it when inserted the playbuzz item in wordpress, automatically insert the content id in the "src" tag of amp

brunomosciatti avatar Aug 17 '17 20:08 brunomosciatti

@amedina hey, playbuzz items should be supported, its already merged into the master and went live with version 0.5 (see change log). however, i'm experience issues with last the update ( version 0.5.1) when the the amp-playbuzz component seems to be stripped out.

lysk88 avatar Aug 18 '17 11:08 lysk88

hey @lysk88 , I saw your name on changelog :D

so are you saying that this issue was solved with version 0.5? How can I do it?

The playbuzz amp tag is auto generated by the main (wordpress) tag?

thanks

brunomosciatti avatar Aug 18 '17 12:08 brunomosciatti

@brunomosciatti
seems like amp-playbuzz not working well with version 0.5.1. I will open a new issue to handle this from there.

meanwhile , you can try to install version 0.5, amp-playbuzz should working fine with that version. you can download it from here https://wordpress.org/plugins/amp/advanced/

lysk88 avatar Aug 18 '17 12:08 lysk88

@lysk88 got 404 for this url :/

I can install version 0.5 but how the amp-playbuzz works? Its auto generated?

The playbuzz amp tag is auto generated by the main (wordpress) tag?

brunomosciatti avatar Aug 18 '17 12:08 brunomosciatti

yes.

lysk88 avatar Aug 18 '17 12:08 lysk88

thanks a lot @lysk88 ! it really works on 0.5

brunomosciatti avatar Aug 18 '17 13:08 brunomosciatti

Hi guys, my bad. Looking into it.

amedina avatar Aug 18 '17 16:08 amedina

HI @lysk88, @brunomosciatti My bad; looking into it.

amedina avatar Aug 18 '17 16:08 amedina

@lysk88, @brunomosciatti Could you share some of the shortcodes you are using to test? (if they are public stories)

amedina avatar Aug 18 '17 17:08 amedina

sure, try this [playbuzz-item item="022092ce-8a99-48ab-aa5a-a40517c77074" format="list"]

lysk88 avatar Aug 18 '17 17:08 lysk88

@lysk88, Are you using another plugin such as this one?

Playbuzz is not "directly" supported by the plugin in the sense that there is not an embed handler for it; instead, the plugin transcodes (sanitizes) a Playbuzz embed placed in the post via other means (e.g. another plugin) into an amp-playbuzz component. Want to determine how is the playbuzz shortcode transcoded into an playbuzz embed first, before it is handled by the AMP plugin.

amedina avatar Aug 18 '17 23:08 amedina

sorry, i think i confused you. this -> [playbuzz-item item="022092ce-8a99-48ab-aa5a-a40517c77074" format="list"] is playbuzz shortcode that can be transcoded to playbuzz embed code -> <script type="text/javascript" src="//cdn.playbuzz.com/widget/feed.js"></script> <div class="pb_feed" data-embed-by="64fc80bf-6235-4325-9068-9c7eb32714b2" data-item="022092ce-8a99-48ab-aa5a-a40517c77074"></div> via the plugin you mentioned above.

amp plugin looking for playbuzz embed code then transcoded it to amp-playbuzz.

lysk88 avatar Aug 19 '17 16:08 lysk88

Hi guys, I have this in Search Console for several AMP with playbuzz: "The extension 'amp-playbuzz' was found on this page, but is unused."

I found out that 'src' is a required attribute, but amp-playbuzz supports either 'src' or 'data-item'. As a quick workaround I'm inserting an empty 'src' attribute in AMP_Playbuzz_Sanitizer when 'data-item' is found.

Looking forward for a real fix.

Thanks

moisespr avatar Aug 26 '17 12:08 moisespr

My workaround doesn't work, not I"m getting: Mutually exclusive attributes encountered in tag 'amp-playbuzz' - pick one of ['src', 'data-item'].

moisespr avatar Aug 26 '17 12:08 moisespr

Hey @amedina, Do you have any news? can i help in someway?

alongendler avatar Aug 27 '17 12:08 alongendler

@alongendler Unfortunately I haven't had time to dig into this at all :( We will as soon as we can. If you have a proposed solution please submit a PR.

amedina avatar Aug 28 '17 20:08 amedina

Hey guys, after updating my plugin Im with some issues according to Google Search Console.

AMP Page for example: https://todateen.com.br/anitta-dj-alok-produzindo-parceria/amp/

The Amp Validator (https://validator.ampproject.org/) says that is a

Owner


Other Repo Issues