nimmolo
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Get shortcode of form programmatically, using form’s IDThis worked. Thanks for the plugin!
My ACF
options
fieldinquiry_form
is set up to return the full$post
instance, but you can just return theID
and modify a bit below.if ($contact_form = get_field('inquiry_form', 'options')) {
// this is what gets the instance of the form with the shortcode() method
$full_form = WPCF7_ContactForm::get_instance($contact_form->ID)
// note that the instance, not the post, has the method available.
$shortcode = esc_attr($full_form->shortcode());
// you need to translate the html entities back to text
echo apply_shortcodes( html_entity_decode($shortcode) );
}Forum: Plugins
In reply to: [Media Library Assistant] ACF Image: Button and Search box wrongly hiddenThanks @dafsade and @dglingren !
I’m using Disable Gutenberg too (because it dequeues frontend Gutenberg scripts, and Classic Editor does not) so I will stick with the Development Version, which also works for me.
Thanks much!
Forum: Plugins
In reply to: [Media Library Assistant] ACF Image: Button and Search box wrongly hiddenHi,
I just want to confirm I’m experiencing the same issue.
Seems ACF may have changed some of their CSS on that screen, and it’s bumped the MLA fields to the next line.
Andrew Nimmo
Forum: Plugins
In reply to: [Media Library Assistant] Filter MLACore::mla_checklist_meta_boxThanks David –
The plugin is truly a workhorse, i’m amazed by everything it does. A lot of this should be in core, if you ask me.
Thanks for the pointers above. That did unhook the MLA checklist boxes.
But I’m realizing that all the code you’ve built, to hook a callback into the media manager modal windows, is quite a bit more involved than the simple thing i did in register_taxonomy, which hooks a meta-box callback for the “classic” media edit screen.
It doesn’t look like i can piggyback into your functions adding to that JS media manager modal, is that correct? Or is there a filter i’m missing. I looked for an instance of wp.media.View.extend, but that seems to be only for search.
Forum: Plugins
In reply to: [Change Last Modified Date] Classic editor supportYep, +1 please for both options.
I develop and manage a lot of commercial sites and none of them uses (or will ever use) Gutenberg.
Oh!! I just found this, Tobias already made it. Thank you Tobias!
I had not searching the right terms before:https://tablepress.org/extensions/table-caption-html-tag/
This should help you @pbossley
I modified Tobias’ plugin to use an <h2> tag inside the <caption>
function tablepress_table_caption_html_tag( $caption, $table ) { $caption = preg_replace( '/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,4};)/', '&', $table['name'] ); return '<h2 class="tablepress-table-name">' . $caption . '</h2>'; }
@tobiasbg maybe consider making this an option on the basic plugin? I feel like this is semantically a more correct use of the <caption> tag.
Forum: Plugins
In reply to: [External Videos] Invalid Channel Name – check spelling. (Youtube)Well, this hasn’t been a quick reply, has it? Sorry. I’m going to have to revise this section of the code of the plugin.
Check this out.
https://johnnythetank.github.io/youtube-channel-name-converter/Your channel ID according to this lookup tool is “UCVx_-M7ByJy0EQXCyE7zunA”.
Yes, that is not intuitively obvious.Forum: Reviews
In reply to: [External Videos] Just plain badHi @chillestbro,
It’s unfortunately YouTube that makes it hard to determine a channel name via their API. Here’s what i wrote in a support thread awhile back:
With youtube it is very confusing to figure out the channel name, I spent an hour trying to figure out my own client’s channel name.
It’s often NOT the hash after the /user/ in the youtube channel URL. Check out this channel here:
https://www.youtube.com/user/thekiteboatproject/featured
The channel name is actually “kiteboat”, the title that appears beside the logo, above the number of subscribers on that page. I don’t get it either!
If you have multiple channels, switch to that channel to get the name. It’s very frustrating, I agree.
On your other question, no, we aren’t harvesting anything. Silvia originally wrote the plugin years ago, and I rewrote it for a client who was paying me to make them a website with a lot of video content. The rewrite was so much work (almost 200 hours!) that I thought it might benefit others as a free plugin.
APIs can seem obscure, but if you read through the plugin code you’ll realize the plugin is storing only the channel name and an encrypted key authenticating you as the owner of that channel. This key is generated by YouTube (or another service) itself, and it prevents you having to log back into your YouTube account every time you want to update a video from your channel.
It surely will delete itself from your WP install, but if you want to delete the imported videos you have to use the plugin to do that before you delete the plugin. No plugin is going to go around deleting WP posts before it deactivates, you have to do something that serious manually.
Forum: Plugins
In reply to: [External Videos] Invalid Channel Name – check spelling. (Youtube)Hi alfabetadigital,
With youtube it is very confusing to figure out the channel name, I spent an hour trying to figure out my own client’s channel name.
It’s often NOT the hash after the /user/ in the youtube channel URL. Check out this channel here:
https://www.youtube.com/user/thekiteboatproject/featured
The channel name is actually “kiteboat”, the title that appears beside the logo, above the number of subscribers on that page. I don’t get it either!
If you have multiple channels, switch to that channel to get the name. It’s very frustrating, I agree. What can you expect from a company who changes their product name every 6 months!
Forum: Plugins
In reply to: [External Videos] If You Don’t See The Tabs!Thank you @ianmacin!!!
Everyone please update the plugin, i can’t see how it worked without these directories!!!
Forum: Plugins
In reply to: [External Videos] If You Don’t See The Tabs!@ianmacin You’re right, and this means there are quite a few other assets missing from the WordPress Plugins SVN repo, compared to our GitHub version. Not sure how it happened, but will fix.
The /*/ folders referenced in that line of the external-videos.php file should have other important files relating to the media explorer for each service.
Will start the update process this weekend.
Forum: Plugins
In reply to: [External Videos] External Tabs are missing on Settings Page!Please check your browser console log and let me know if you see any errors in the console when your browser is loading the WordPress Dashboard.
You may have to enable the console in your browser:
https://developer.mozilla.org/en-US/docs/Tools/Browser_Console
https://developers.google.com/web/tools/chrome-devtools/console/
https://msdn.microsoft.com/en-us/library/gg589530(v=vs.85).aspx
https://developer.apple.com/safari/tools/Certainly there is a javascript error being thrown by your theme or one or more plugins. If you find the error I will research the solution for you. Please help, without some indication of the problem I don’t have time to look into it!
Forum: Plugins
In reply to: [External Videos] External Tabs are missing on Settings Page!Hi Skymashitv,
In all of my installs here, the plugin settings page still works fine with default theme twentyseventeen and no other plugins activated. It also works with all the plugins i use, but that’s not every plugin out there ??
When testing with plugins/themes disabled, be sure to disable the cache in your browser, or you will definitely still get the script conflicts.
If you can find the plugin that breaks the script, I will investigate, but I do need your help, since I have a lot of work to do to make a living.
I just tested Visual Composer and Black Studio TinyMCE Widget, because they both use a lot of js, but it wasn’t either of them. Newstube is a paid theme, so if you want me to test it please send a copy. (also for any paid plugins)
Please see what you can find with the cache disabled, and when you find it I will work to find a solution.
- This reply was modified 7 years, 7 months ago by nimmolo.
Forum: Plugins
In reply to: [External Videos] External Tabs are missing on Settings Page!If anyone else is having this problem, please post your theme and plugin configuration. The plugin itself doesn’t have errors, but if your theme or plugins are throwing javascript errors, the plugin admin won’t work correctly.
Posting the theme info helps me notify and hopefully help the theme/plugin author fix their code!
I’m marking this resolved…
Forum: Plugins
In reply to: [External Videos] External Tabs are missing on Settings Page!Hi @foley2013!
Thanks for reporting the issue and for trying the plugins deactivation.
I want to get to the bottom of the issue, so please stick with me! I think it’s probably the theme, but to find out i’d need to set up my test site exactly as yours is set up.
Can you let me know which theme and which plugins it requires?
Thanks
Nimmolo