RichDevman
Active member
I cannot even see threads on your app.I have it on my site. You can check it out here.
I cannot even see threads on your app.I have it on my site. You can check it out here.
Do you use latest API?I cannot even see threads on your app.
I installed his app from the playstore.Do you use latest API?
Yes, I do.Do you use latest API?
After debug with your app I can give conclude some add-ons in your site has rendered HTML which not support in app.I cannot even see threads on your app.
<span data-s9e-mediaembed="youtube"><span><iframe allowfullscreen="" scrolling="no" allow="autoplay" style="background:linear-gradient(0deg,rgba(0,0,0,0) 0,rgba(0,0,0,0) 72%,rgba(0,0,0,.04) 79%,rgba(0,0,0,.1) 83%,rgba(0,0,0,.25) 88%,rgba(0,0,0,.67) 100%),url(https://i.ytimg.com/vi/n2-EfRgR34E/hqdefault.jpg) 50% 50% / cover" src="https://www.youtube.com/embed/n2-EfRgR34E" data-s9e-mediaembed-c2l="youtube" data-s9e-mediaembed-c2l-oembed-id="n2-EfRgR34E" data-s9e-mediaembed-c2l-src="https://www.youtube.com/embed/n2-EfRgR34E?autoplay=1"></iframe></span></span>
<iframe allowfullscreen="" scrolling="no" allow="autoplay" style="background:linear-gradient(0deg,rgba(0,0,0,0) 0,rgba(0,0,0,0) 72%,rgba(0,0,0,.04) 79%,rgba(0,0,0,.1) 83%,rgba(0,0,0,.25) 88%,rgba(0,0,0,.67) 100%),url(https://i.ytimg.com/vi/n2-EfRgR34E/hqdefault.jpg) 50% 50% / cover" src="https://www.youtube.com/embed/n2-EfRgR34E" data-s9e-mediaembed-c2l="youtube" data-s9e-mediaembed-c2l-oembed-id="n2-EfRgR34E" data-s9e-mediaembed-c2l-src="https://www.youtube.com/embed/n2-EfRgR34E?autoplay=1"></iframe>
span
elements serve a purpose and I can't just remove them but I'd be happy to help you handle that markup better. The simplest way could be to simply remove the parts you don't need from the HTML, maybe by running something like the following code in a post-render code listener:$html = preg_replace(
'(<span data-s9e-mediaembed=[^>]++><span[^>]*+>(.*?)</span></span>)s',
'$1',
$html
);
What's purpose if you return in API? It's other clients not for XenForo itself. I guess it should only do something in XenForo client itself. Also it should be like XenForo did with embed media sites when render for API.Hi, I'm the author of the add-on that generates this HTML. What would you need from me to be able to fix it on your side? Thosespan
elements serve a purpose and I can't just remove them but I'd be happy to help you handle that markup better. The simplest way could be to simply remove the parts you don't need from the HTML, maybe with something like the following:
PHP:$html = preg_replace( '(<span data-s9e-mediaembed=[^>]++><span[^>]*+>(.*?)</span></span>)s', '$1', $html );
Would that be a solution for you?
_media_site_embed_youtube
template. The default template that comes with a new XenForo install is similar, but it uses div
elements instead:<div class="bbMediaWrapper">
<div class="bbMediaWrapper-inner">
<iframe src="https://www.youtube.com/embed/{$id}?wmode=opaque{{ $start ? '&start=' . $start : '' }}{{ $list ? '&list=' . $list : '' }}"
width="560" height="315"
frameborder="0" allowfullscreen="true"></iframe>
</div>
</div>
ApiHtml
renderer renders media sites the same way as the Html
class it extends. I don't know what a "View component" is, I assume this is something you use in your add-on. I use span
to wrap iframes for convenience, because its behaviour with regards to CSS and HTML is closer to that of a default iframe
. Both elements are phrasing content.That right! Almost bb-codes are same behavior with Html renderer that why I recommend you give a simply render for your bb-codes, it doesn't effect to existing html which using in threads, posts, etc...As far as I can tell, theApiHtml
renderer renders media sites the same way as theHtml
class it extends. I don't know what a "View component" is, I assume this is something you use in your add-on. I usespan
to wrap iframes for convenience, because its behaviour with regards to CSS and HTML is closer to that of a defaultiframe
. Both elements are phrasing content.
ApiHtml
renderer and overriding renderTagMedia
(although it could negatively affect other add-ons that rely on that renderer) or maybe more safely within your add-on, before you start processing the HTML. I don't know how your add-on works but I assume it takes the HTML and transforms it into something usable as/in a native app. Is there something preventing your from modifying the HTML as I proposed above, at the beginning of that process?I have patched in the latest API version. You may try the latest version.So what's the verdict guys?
I have the latest unless you just updated it in the last couple days.I have patched in the latest API version. You may try the latest version.
It is.I have the latest unless you just updated it in the last couple days.
I'm not seeing that. They only update I see is 2.1.9 and that was released on October 18. I already have it. Is there another release?It is.
I'm not seeing that. They only update I see is 2.1.9 and that was released on October 18. I already have it. Is there another release?
We use essential cookies to make this site work, and optional cookies to enhance your experience.