thisisbbc
Forum Replies Created
-
Forum: Plugins
In reply to: [Modal Dialog] PHP NoticeHey Yan,
The popupscript error is gone but a new one came up 🙂Notice Undefined index: dialogposition Count : 1 Location : wp-content/plugins/modal-dialog/modal-dialog.php:654Same Call Stacks
Forum: Plugins
In reply to: [Modal Dialog] PHP NoticeHi Yannick,
I followed your instruction but sadly it hasn’t patched the notice.
We’ll wait for an update 🙂PS : If you could consider allowing more than 1 modal window per page that would be fantastic!
Cheers,
BastienForum: Plugins
In reply to: [Modal Dialog] 3 modals (links open) on same pageAny chance that in the future we could be able to open multiple modal windows?
Forum: Plugins
In reply to: [WooCommerce] No more quantity selector after updateThe plugin worked OOTB for me.
You can try and implement the code in your functions.php manually but I can’t see how that would be different from using the plugin.
Maybe you use a caching plugin?Forum: Plugins
In reply to: [WooCommerce] No more quantity selector after updateYou can use media query to apply CSS rules only to devices with a maximum width, that’s how I build our responsive websites.
@media screen and (max-width: 470px) { // Your CSS }The selectors for the + and – buttons are
.woocommerce .quantity .plus
and
.woocommerce .quantity .minusGood luck 😉
Forum: Plugins
In reply to: [WooCommerce] No more quantity selector after updateAlright thanks for the swift reply!
😀
Forum: Plugins
In reply to: [WooCommerce] Per Order Surcharge Based on Product ID(s)Hi there!
We’re looking for something similar as well, but slightly different.
We need to add a surcharge on specific products, based on their quantity.
Example : If quantity is lower than 25, apply a 125$ surcharge, if quantity is lower than 50, apply a 100$ surcharge, if quantity is above 50 apply no surcharge.Do you have any idea how we would modify this function in order to achieve this?
Thank you a lot.
Hi Will,
Thank you for your reply. I will try this “Don’t break the code” plugin, however I hope this to be a temporary solution as it’s easy to add tons of plugins and end up with a cluttered platform.
The previous plugin we used to output PHP code in posts or page worked fine with Visual Composer, it was the issue with translations that got our attention into your plugin, but I guess nothing is ever really perfect 😉
If you have the intention to dive into the issue that would be wonderful, if not I would completely understand, but I’ll try to find a solution in order not to use two plugins where only one could be used.
Thank you once again.
Best regards,
BBCForum: Plugins
In reply to: [Plugin Organizer] PO working on Staging site, not on Production site.All of our rules have the same value for permalink_hash and permalink_hash_args unless there is a query “?” in the permalink.
I believe an empty value for the last four columns is pretty much the same as “a:0:{}”, so far it shouldn’t be a concern for us.
The wp_options table should have been overwritten when I pushed from staging to live, but that is really a minor concern compared to the hash.
Would you see a way to fix this? A button “Recreate hashes”?
Forum: Plugins
In reply to: [Plugin Organizer] PO working on Staging site, not on Production site.I might be missing something because I’m still a bit confused by all of this. The permalinks are updated when copying to live, WPEngine automatically replaces all references from the old domain (staging environment) to the new domain (live environment).
That being said, I’ve tested a few things in PhpMyAdmin and I found why it’s not working.
Here’s a rule for one page before I manually save it again :
OLD www.musicethic.com/events/ 88f53d671b8862d50107af3131e38861 88f53d671b8862d50107af3131e38861 plugin_filter publish 0 0 a:42:{ i:0;s:31:"query-monitor/query-monitor.php"; i:1;s:55:"affiliates-contact-form-7/affiliates-contact-form-7.php"; i:2;s:47:"affiliates-enterprise/affiliates-enterprise.php"; i:3;s:39:"affiliates-groups/affiliates-groups.php"; i:4;s:45:"affiliates-permanent/affiliates-permanent.php"; i:5;s:49:"affiliates-woocommerce/affiliates-woocommerce.php"; i:6;s:40:"ajax-wp-query-search-filter/ajaxwpqf.php"; i:7;s:19:"bbpress/bbpress.php"; i:8;s:69:"bp-community-activity-on-profile/bp-community-activity-on-profile.php"; i:9;s:38:"buddypress-activity-privacy/loader.php"; i:10;s:26:"buddypress-media/index.php"; i:11;s:27:"buddystream/buddystream.php"; i:12;s:22:"classifieds/loader.php"; i:13;s:25:"cm-answers/cm-answers.php"; i:14;s:36:"contact-form-7/wp-contact-form-7.php"; i:15;s:33:"duplicate-post/duplicate-post.php"; i:16;s:25:"go_pricing/go_pricing.php"; i:17;s:41:"groups-woocommerce/groups-woocommerce.php"; i:18;s:17:"groups/groups.php";i:19;s:13:"idfu/idfu.php"; i:20;s:23:"idstretch/idstretch.php"; i:21;s:21:"idstripe/idstripe.php"; i:22;s:29:"ignitiondeck/ignitiondeck.php"; i:23;s:35:"infinite-scroll/infinite-scroll.php"; i:24;s:21:"invitation/plugin.php"; i:25;s:25:"memberdeck/memberdeck.php"; i:26;s:23:"revslider/revslider.php"; i:27;s:21:"rtmedia-pro/index.php"; i:28;s:45:"rtmedia-profile-cover-picture-addon/index.php"; i:29;s:63:"the-events-calendar-community-events/tribe-community-events.php"; i:30;s:79:"the-events-calendar-facebook-importer/the-events-calendar-facebook-importer.php"; i:31;s:51:"wc4bp-basic-integration/wc4bp-basic-integration.php"; i:32;s:29:"welcome-pack/welcome-pack.php"; i:33;s:51:"woocommerce-amazon-s3-storage/amazon-s3-storage.php"; i:34;s:45:"woocommerce-gateway-stripe/gateway-stripe.php"; i:35;s:51:"woocommerce-menu-bar-cart/woocommerce-menu-cart.php"; i:36;s:52:"woocommerce-product-sort-and-display-pro/wc-psad.php"; i:37;s:55:"woocommerce-subscriptions/woocommerce-subscriptions.php"; i:38;s:55:"woocommerce-video-product-tab/woocommerce-video-tab.php"; i:39;s:27:"woocommerce/woocommerce.php"; i:40;s:25:"wp-smushit/wp-smushit.php"; i:41;s:22:"wwc-amz-aff/plugin.php";} a:0:{} a:42:{ i:0;s:31:"query-monitor/query-monitor.php"; i:1;s:55:"affiliates-contact-form-7/affiliates-contact-form-7.php"; i:2;s:47:"affiliates-enterprise/affiliates-enterprise.php"; i:3;s:39:"affiliates-groups/affiliates-groups.php"; i:4;s:45:"affiliates-permanent/affiliates-permanent.php"; i:5;s:49:"affiliates-woocommerce/affiliates-woocommerce.php"; i:6;s:40:"ajax-wp-query-search-filter/ajaxwpqf.php"; i:7;s:19:"bbpress/bbpress.php"; i:8;s:69:"bp-community-activity-on-profile/bp-community-activity-on-profile.php"; i:9;s:38:"buddypress-activity-privacy/loader.php"; i:10;s:26:"buddypress-media/index.php"; i:11;s:27:"buddystream/buddystream.php"; i:12;s:22:"classifieds/loader.php"; i:13;s:25:"cm-answers/cm-answers.php"; i:14;s:36:"contact-form-7/wp-contact-form-7.php"; i:15;s:33:"duplicate-post/duplicate-post.php"; i:16;s:25:"go_pricing/go_pricing.php"; i:17;s:41:"groups-woocommerce/groups-woocommerce.php"; i:18;s:17:"groups/groups.php"; i:19;s:13:"idfu/idfu.php"; i:20;s:23:"idstretch/idstretch.php"; i:21;s:21:"idstripe/idstripe.php"; i:22;s:29:"ignitiondeck/ignitiondeck.php"; i:23;s:35:"infinite-scroll/infinite-scroll.php"; i:24;s:21:"invitation/plugin.php"; i:25;s:25:"memberdeck/memberdeck.php"; i:26;s:23:"revslider/revslider.php"; i:27;s:21:"rtmedia-pro/index.php"; i:28;s:45:"rtmedia-profile-cover-picture-addon/index.php"; i:29;s:63:"the-events-calendar-community-events/tribe-community-events.php"; i:30;s:79:"the-events-calendar-facebook-importer/the-events-calendar-facebook-importer.php"; i:31;s:51:"wc4bp-basic-integration/wc4bp-basic-integration.php"; i:32;s:29:"welcome-pack/welcome-pack.php"; i:33;s:51:"woocommerce-amazon-s3-storage/amazon-s3-storage.php"; i:34;s:45:"woocommerce-gateway-stripe/gateway-stripe.php"; i:35;s:51:"woocommerce-menu-bar-cart/woocommerce-menu-cart.php"; i:36;s:52:"woocommerce-product-sort-and-display-pro/wc-psad.php"; i:37;s:55:"woocommerce-subscriptions/woocommerce-subscriptions.php"; i:38;s:55:"woocommerce-video-product-tab/woocommerce-video-tab.php"; i:39;s:27:"woocommerce/woocommerce.php"; i:40;s:25:"wp-smushit/wp-smushit.php"; i:41;s:22:"wwc-amz-aff/plugin.php";} a:0:{} EMPTY/EMPTY/EMPTY/EMPTYAnd here the same rule after I saved :
NEW www.musicethic.com/events/ d893bac612936c5f6a209c7d8d13d114 d893bac612936c5f6a209c7d8d13d114 plugin_filter publish 0 0 a:42:{ i:0;s:31:"query-monitor/query-monitor.php"; i:1;s:55:"affiliates-contact-form-7/affiliates-contact-form-7.php"; i:2;s:47:"affiliates-enterprise/affiliates-enterprise.php"; i:3;s:39:"affiliates-groups/affiliates-groups.php"; i:4;s:45:"affiliates-permanent/affiliates-permanent.php"; i:5;s:49:"affiliates-woocommerce/affiliates-woocommerce.php"; i:6;s:40:"ajax-wp-query-search-filter/ajaxwpqf.php"; i:7;s:19:"bbpress/bbpress.php"; i:8;s:27:"buddystream/buddystream.php"; i:9;s:22:"classifieds/loader.php"; i:10;s:25:"cm-answers/cm-answers.php"; i:11;s:69:"bp-community-activity-on-profile/bp-community-activity-on-profile.php"; i:12;s:36:"contact-form-7/wp-contact-form-7.php"; i:13;s:33:"duplicate-post/duplicate-post.php"; i:14;s:25:"go_pricing/go_pricing.php"; i:15;s:17:"groups/groups.php"; i:16;s:41:"groups-woocommerce/groups-woocommerce.php"; i:17;s:29:"ignitiondeck/ignitiondeck.php"; i:18;s:21:"idstripe/idstripe.php"; i:19;s:35:"infinite-scroll/infinite-scroll.php"; i:20;s:21:"invitation/plugin.php"; i:21;s:23:"revslider/revslider.php"; i:22;s:26:"buddypress-media/index.php"; i:23;s:21:"rtmedia-pro/index.php"; i:24;s:45:"rtmedia-profile-cover-picture-addon/index.php"; i:25;s:63:"the-events-calendar-community-events/tribe-community-events.php"; i:26;s:79:"the-events-calendar-facebook-importer/the-events-calendar-facebook-importer.php"; i:27;s:27:"woocommerce/woocommerce.php"; i:28;s:22:"wwc-amz-aff/plugin.php"; i:29;s:51:"woocommerce-amazon-s3-storage/amazon-s3-storage.php"; i:30;s:38:"buddypress-activity-privacy/loader.php"; i:31;s:13:"idfu/idfu.php"; i:32;s:23:"idstretch/idstretch.php"; i:33;s:25:"memberdeck/memberdeck.php"; i:34;s:29:"welcome-pack/welcome-pack.php"; i:35;s:51:"wc4bp-basic-integration/wc4bp-basic-integration.php"; i:36;s:51:"woocommerce-menu-bar-cart/woocommerce-menu-cart.php"; i:37;s:52:"woocommerce-product-sort-and-display-pro/wc-psad.php"; i:38;s:45:"woocommerce-gateway-stripe/gateway-stripe.php"; i:39;s:55:"woocommerce-subscriptions/woocommerce-subscriptions.php"; i:40;s:55:"woocommerce-video-product-tab/woocommerce-video-tab.php"; i:41;s:25:"wp-smushit/wp-smushit.php";} a:0:{} a:42:{ i:0;s:31:"query-monitor/query-monitor.php"; i:1;s:55:"affiliates-contact-form-7/affiliates-contact-form-7.php"; i:2;s:47:"affiliates-enterprise/affiliates-enterprise.php"; i:3;s:39:"affiliates-groups/affiliates-groups.php"; i:4;s:45:"affiliates-permanent/affiliates-permanent.php"; i:5;s:49:"affiliates-woocommerce/affiliates-woocommerce.php"; i:6;s:40:"ajax-wp-query-search-filter/ajaxwpqf.php"; i:7;s:19:"bbpress/bbpress.php"; i:8;s:27:"buddystream/buddystream.php"; i:9;s:22:"classifieds/loader.php"; i:10;s:25:"cm-answers/cm-answers.php"; i:11;s:69:"bp-community-activity-on-profile/bp-community-activity-on-profile.php"; i:12;s:36:"contact-form-7/wp-contact-form-7.php"; i:13;s:33:"duplicate-post/duplicate-post.php"; i:14;s:25:"go_pricing/go_pricing.php"; i:15;s:17:"groups/groups.php"; i:16;s:41:"groups-woocommerce/groups-woocommerce.php"; i:17;s:29:"ignitiondeck/ignitiondeck.php"; i:18;s:21:"idstripe/idstripe.php"; i:19;s:35:"infinite-scroll/infinite-scroll.php"; i:20;s:21:"invitation/plugin.php"; i:21;s:23:"revslider/revslider.php"; i:22;s:26:"buddypress-media/index.php"; i:23;s:21:"rtmedia-pro/index.php"; i:24;s:45:"rtmedia-profile-cover-picture-addon/index.php"; i:25;s:63:"the-events-calendar-community-events/tribe-community-events.php"; i:26;s:79:"the-events-calendar-facebook-importer/the-events-calendar-facebook-importer.php"; i:27;s:27:"woocommerce/woocommerce.php"; i:28;s:22:"wwc-amz-aff/plugin.php"; i:29;s:51:"woocommerce-amazon-s3-storage/amazon-s3-storage.php"; i:30;s:38:"buddypress-activity-privacy/loader.php"; i:31;s:13:"idfu/idfu.php"; i:32;s:23:"idstretch/idstretch.php"; i:33;s:25:"memberdeck/memberdeck.php"; i:34;s:29:"welcome-pack/welcome-pack.php"; i:35;s:51:"wc4bp-basic-integration/wc4bp-basic-integration.php"; i:36;s:51:"woocommerce-menu-bar-cart/woocommerce-menu-cart.php"; i:37;s:52:"woocommerce-product-sort-and-display-pro/wc-psad.php"; i:38;s:45:"woocommerce-gateway-stripe/gateway-stripe.php"; i:39;s:55:"woocommerce-subscriptions/woocommerce-subscriptions.php"; i:40;s:55:"woocommerce-video-product-tab/woocommerce-video-tab.php"; i:41;s:25:"wp-smushit/wp-smushit.php";} a:0:{} a:0:{} a:0:{} a:0:{} a:0:{}So there are a few things here. First of all and most importantly, the permalink_hash and permalink_hash_args are different.
For some reason, the plugins load order has not been copied from Staging to Live, so we can see the plugin load order is a bit different. If I change the order, it should affect all the rules though, right?
Finally, the last four columns, disabled_groups, enabled_groups, disabled_mobile_groups and enabled_mobile_groups were all empty and were populated with “a:0:{}” after re-saving.
I hope this gives you elements to fix this issue.
Sincerely,
BastienForum: Plugins
In reply to: [Plugin Organizer] PO working on Staging site, not on Production site.I’m not sure I understand what you just said.
Why wouldn’t PO be working on Live?
Forum: Plugins
In reply to: [Plugin Organizer] PO working on Staging site, not on Production site.Hey Jeff,
So I did quite some tests and I still can’t get the rules to copy from our staging environment to live.
I enabled PO on all rules, copied to live, didn’t work.
I deactivated all plugins and recreated all permalinks, had a message that 0 links were updated and 2 links were updated. I found this very suspicious because I have two rules I manually re-saved that were working. I decided to go through two other pages, recreated the permalink and still, only 2 links already up-to-date.
No errors related to PO in our error log :/
Is there a way to programatically re-save all rules? I’m not sure what’s going on…
Forum: Plugins
In reply to: [Plugin Organizer] Thanks and Feature suggestionHi Jeff,
I understand this is a tricky situation. Thank you for laying out all the details for me!
Maybe one day it will be possible, but I guess we will have to refactor our entire platform code quite soon anyway.
That being said, your plugin is still awesome!
Forum: Plugins
In reply to: [Plugin Organizer] Thanks and Feature suggestionThe URL you add to the permalink field is not the search criteria. The URL being accessed is. If it were the other way around dynamic URL’s in the permalink field would be an option.
Is this just an extrapolation of your current logic or that would actually be a possible, codable logic?
If someone else has any ideas I’m open to suggestions.
Suggestion #1 : Use Buddypress tables?
I’m far from being an expert developer but wouldn’t it be possible to grab the username somewhere? Here’s the flow I’ve “imagined” :
1- Page is accessed, PO looks for a rule matching accessed URL
2- No rule matching for accessed URL, but…
3- 3 “dynamic” rules exist
4- 1 “dynamic” rule match accessed URL, but one slugExample :
Accessed URL : http://www.mywebsite.com/members/johndoe/activityDynamic rules :
http://www.mywebsite.com/members/{USRN}/activity
http://www.mywebsite.com/members/{USRN}/forums
http://www.mywebsite.com/members/{USRN}/cartMatched dynamic rule :
http://www.mywebsite.com/members/{USRN}/activity5- PO looks for “johndoe” in Buddypress
6- If Buddypress table contain entry for username “johndoe”, PO consider the dynamic rule as an acceptable match for the accessed URL.
7- Possible step to make other queries faster by storing the username index somewhere?Suggestion #2 : Use specific permalinks structure?
Buddypress allows us to have root profile (yourwebsite.com/johndoe), so this solution wouldn’t work if someone enabled this feature.
We would find a field in PO settings to give information about our buddypress profiles slug (i.e : members). This slug will always be find right after the website (i.e : yourwebsite.com/members/).
The username is always right after the profiles slug (i.e : yourwebsite.com/members/johndoe).
The goal would be to disregard the username (second slug after the website root) for permalinks that match the “members” slug criteria.
We would find a checkbox on the filter rule page “This is a member page”. If checked, the URL could be “yourwebsite.com/members/johndoe/cart” and still match URLs like “yourwebsite.com/members/michaelj/cart”
I had another idea but just lost it explaining these first two… Will get back at you if I remember.
Cheers,
BastienForum: Plugins
In reply to: [Plugin Organizer] PO working on Staging site, not on Production site.Indeed, I have plugin organizer disabled on some plugin filters yes.
Should I go through all entries to enable it?What calls are made to refresh the permalink? Maybe I can narrow down the entries to the one using the same permalink structure.
I will have to do that on staging and push the installation to production in order to fully test the process since if I go through each entry on production and save them they will be refreshed.