-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port from City Tech OpenLab: Rich text and media embedding for comments #393
Comments
Possibly. We will need to make decisions about how they get included, and specifically whether they're required and/or network-activated by default. Let's see how our summer resources shake out before moving forward. |
Not sure how CBOX-OL is handling media embedding for comments, but I wrote an oEmbed plugin for comments that's quite simple: https://github.com/r-a-y/oembed-for-comments |
Thanks for chiming in, @r-a-y ! Your plugin was actually a starting point for what we ended up building for the OpenLab. It has some additional changes to account for guest-comments vs member-comments, and also compatibility layers for wp-grade-comments and the rich text comment tool we're working on. See https://github.com/openlab-at-city-tech/openlab/blob/1.7.x/wp-content/plugins/openlab-oembed-comments/openlab-oembed-comments.php A question for you - You say https://github.com/r-a-y/oembed-for-comments/blob/master/oembed-for-comments.php#L85= that the |
Yes, my Some changes that WordPress has made to the
I see that if a guest is posting a comment, oEmbed is disabled: https://github.com/openlab-at-city-tech/openlab/blob/412253756ae599c022e81416209dc24ff7daacc6/wp-content/plugins/openlab-oembed-comments/openlab-oembed-comments.php#L98-L100. Is that the main purpose for guest comments? One other thing I see is allowing the |
Ah yes. I wonder whether this is strictly necessary, though. During normal comment rendering (ie in the comment section on the front end) the
Yep, that's it. This was what the OpenLab folks wanted.
I'll have to look back to be certain, but I think it ensures that we support arbitrary embeds, such as those that are enabled by third-party plugins. That is, not oEmbed but regular embeds. So I'm not sure that one-off handlers would cover it. |
It's more about segregating the respective data. Might be an edge case, but imagine a scenario with a rather, large comment thread with a ton of oEmbed links. Right now, all that data would be stored in postmeta and would be pulled in whenever a postmeta cache call is used.
Upon looking at the the 'olgc_private_comment_text' filter, correct me if I'm wrong, but it doesn't look as though this filter exists on the OpenLab anymore. So maybe the |
This is helpful context.
Actually, it's a new filter that hasn't yet made it into the production version. And now that I look at it, it might be linked at least in part to rich-text comment work that we're doing. |
Hi Boone, I'm moving this to the future release milestone, to revisit after we implement the changes in 3180. Thanks! |
Can we add these plugins to CBOX OpenLab?
Thanks!
The text was updated successfully, but these errors were encountered: