jlongbrake
Forum Replies Created
-
Also you don’t seem to support including multiple protected areas on the same page without duplicating IDs. Here’s my custom template I made to fix all these issues. Please consider adding this in an updated to improve your form.
password-form.php:<? $uniqueID = uniqid(); ?>
<div class="passster-form[PASSSTER_HIDE]" id="[PASSSTER_ID]">
<form class="password-form" method="post" autocomplete="off" target="_top">
<span class="ps-form-headline">[PASSSTER_FORM_HEADLINE]</span>
<p>[PASSSTER_FORM_INSTRUCTIONS]</p>
<fieldset>
<span class="ps-loader"><img alt="" src="[PS_AJAX_LOADER]"/></span>
<label for="[PASSSTER_AUTH]<? echo $uniqueID; ?>" style="display:none;">Enter your password</label>
<input placeholder="[PASSSTER_PLACEHOLDER]" type="password" tabindex="1" title="Enter your password" aria-label="Enter your password" name="[PASSSTER_AUTH]<? echo $uniqueID; ?>"
id="[PASSSTER_AUTH]<? echo $uniqueID; ?>" class="passster-password" autocomplete="off"
data-protection-type="[PASSSTER_TYPE]" data-list="[PASSSTER_LIST]" data-lists="[PASSSTER_LISTS]" data-area="[PASSSTER_AREA]"
data-protection="[PASSSTER_PROTECTION]">
[PASSSTER_SHOW_PASSWORD]
<button name="submit" type="submit" class="passster-submit" data-psid="[PASSSTER_ID]" [PASSSTER_ACF]
data-submit="...Checking Password" data-redirect="[PASSSTER_REDIRECT]">[PASSSTER_BUTTON_LABEL]
</button>
<div class="passster-error"></div>
</fieldset>
</form>
</div>Forum: Developing with WordPress
In reply to: BoxControl component issueCan you explain more what you did to resolve this? BoxControl keeps showing undefined for me and I can’t figure out why.
If anyone else is still having this issue I found in my case this was from never enabling the global protection. I just enabled it and then disabled it again and it added the necessary key to the database and stopped throwing that error.
I have found where the conflict is. It is in the block.js files that add the gutenberg block. I was getting a console error from PDF Embedder that variables had already been declared. The first three lines of your /block/block.js (this is also in the .min file) file declares the following variables:
const { registerBlockType } = wp.blocks;
const { _ } = wp.i18n; // Import the _ function for localization
const { createElement } = wp.element; // Destructuring for easier usagePDF Embedder uses the same variables when creating their element and cannot redeclare those variables after your plugin sets them so the block never gets registered properly. I’ve found that if I change your code to declare them as “var” everything works in both plugins.
I just updated and have the same issue. I have PDF embedder installed first. When I upgrade Weather atlas and go to the admin dashboard and check a post that already has a PDF embedder block saved I get a message that says “Your site doesnβt include support for the PDF Embedder block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.” If I try to readd the pdf embedder block it can no longer be found in the block list. It only comes back if I rollback Weather atlas to a version before 2.0.
Thanks for the suggestion! Unfortunately that still doesn’t fit my use case. However, the plugin solution has been working great! I was just hoping to find an easier way to manage the third party shortcode area. π
Thanks for all your help!
I’ve created my own plugin and got it working, but I have a follow-up question. When adding shortcodes to the “Third Party Shortcodes” area, I have to add a separate shortcode for each video I want to embed. Is there a way to do a wildcard so that I only have to put the shortcode once?
So I tried what you suggested with Embed Plus YouTube WordPress Plugin, but it is still not processing the shortcode, even with it added in the third party section. Any other advice?
Turns out I did get the shortcode (easy) one working, but the YouTube thing was a separate issue. I knew there would be more use cases that needed addressed which is why I wanted to suggest it to you. Thanks for taking a deeper look into it and I look forward to this future release π
Thanks for looking into it and for your suggestions!
Yes, it is the CSS that is conflicting. I wasn’t asking you to correct that issue. I’ve already corrected the styling issue. I’m just saying that your plugin injects a div element on pages that have the password form. Pages without that form won’t have that extra div usually. Why would you not just leave the extra div off? It just creates a different layout to have to style. What is the purpose of the added div because it seems to work just fine for me when I remove it? Or why not add an option for people to choose if and how their content is wrapped? Just offering a suggestion.
Just realized my fix broke some things, like the YouTube embed block lol. Going for another option now. Would still be a nice feature to add to the plugin.
Yes, I was having this issue with Gutenberg blocks. I was having this issue on one server, but not my dev server for some reason. I even tried to make sure the environments were the same, but can’t figure out what’s different.
It seems that sometimes enabling a second time would correct the issue, or adding another Gutenberg block would also fix it sometimes.
I tried your pre-release version and it seems to have fixed whatever issue I was having. Thanks! π
I am having the same issue with this. Can we get a timeframe for a fix for this?
Forum: Plugins
In reply to: [The Events Calendar] Help selecting specific dates with tribe_get_eventsI’ve figured out a solution to this using a regular WordPress query. I found and modified some code from a plugin that does this for venues. Here is what I ended up with if it happens to help anyone in the future:
global $wpdb; $args = array( 'post_type' => 'tribe_events', 'meta_query' => array( 'relation' => 'AND', array( 'key' => '_EventStartDate', 'value' => $end_date->format('Y-m-d H:i'), 'compare' => '<' ), array( 'key' => '_EventEndDate', 'value' => $start_date->format('Y-m-d H:i'), 'compare' => '>' ) ), 'tax_query' => array( array( 'taxonomy' => 'tribe_events_cat', 'field' => 'slug', 'terms' => $room ) ) ); $events_on_date = get_posts($args);- This reply was modified 5 years ago by jlongbrake.