Carsten Bach
Forum Replies Created
-
Forum: Plugins
In reply to: [SQLite Object Cache] Call to undefined function __()π</img> Looks way better!
Great you found my hint useful and were able to implement a nicer solution so fast. Thank you!
Hello everybody.
Even this issue is already resolved, I’d like to add my workaround, for reuse and also feedback.
—
Within a
mu-pluginI have:// Will be used by site_url(), so make this relative. const CUSTOM_ENDPOINT = '/content/koko-collect.php'; ... if ( file_exists( MY_SITE_ROOT_DIR . CUSTOM_ENDPOINT ) ) { $cbid = get_current_blog_id(); define( 'KOKO_ANALYTICS_CUSTOM_ENDPOINT', CUSTOM_ENDPOINT . '?c=' . $cbid ); define( 'KOKO_ANALYTICS_BUFFER_FILE', WP_CONTENT_DIR . '/uploads/sites/' . $cbid . '/pageviews.php' ); }And inside my
koko-collect.php, the important lines are:// WordPress site_ID of the current blog $site_id = (int) $_GET['c']; // path to pageviews.php file in uploads directory define( 'KOKO_ANALYTICS_BUFFER_FILE', __DIR__ . "/uploads/sites/$site_id/pageviews.php" );As you can see from the code, all sites of the network use the exact same scheme to save uploads to a folder corresponding their
blog_id, which is done by a filter onupload_dir.My filter looks a little different, but this is the essence:
add_filter('upload_dir', function ( array $upload_dir ) : array { $upload_dir['basedir'] = WP_CONTENT_DIR . '/uploads/sites/' . get_current_blog_id(); return $upload_dir; });Maybe this helps someone. Have a nice day, everybody.
Forum: Plugins
In reply to: [Native Gettext for Wordpress] headers already sent in …Forum: Reviews
In reply to: [Native Gettext for Wordpress] Not so goodOla @knutsp,
I also have no worries, while using this plugin with 5 different locales other than english.
Maybe it’s time for a support request, rathern than a 2-star review?
Forum: Plugins
In reply to: [Custom Block Builder - Lazy Blocks] Template in custom post does not workHello @nko,
same here with a custom post_type.
Looking forward to your next release πBest Regards, Carsten
Forum: Plugins
In reply to: [Contact Form 7] Support for inputmode attribHi @aglyons
I was looking for the same and came up with this solution as a mu-plugin
add_filter( 'wpcf7_form_elements', function ($content) { $content = str_replace("type=\"url\"", "inputmode=\"url\" type=\"url\"", $content); $content = str_replace("type=\"email\"", "inputmode=\"email\" type=\"email\" autocomplete=\"email\"", $content); return $content; });Would love to see a more robust solution by @takayukister
Forum: Plugins
In reply to: [WebP Express] how to turn-off conversion logs?Same here.
Would be lovely to have something like the following inside
webp-express/lib/classes/ConvertHelperIndependent.phpprivate static function saveLog($source, $logDir, $text, $msgTop) { if (false === apply_filters( 'WebPExpress\\saveLog', true )) { return; }Forum: Plugins
In reply to: [Polylang] define URL constants laterThanks for fixing this @chouby!
Seen in Version 1.7.1.
Forum: Plugins
In reply to: [Revisr] Recommended WordPress StructureJust to follow up on this track.
I testet this today with no luck.
My folder-structure was like the following, similar to Skeleton, but originally from wordpress-capistrano.[docroot] β ββββ.git β ββββconfig β ββββcontent β ββββlanguages β ββββlogs β ββββmu-plugins β ββββplugins β ββββthemes β ββββuploads β ββββlib β ββββcapistrano β ββββgrunt β ββββnpm_modules β ββββwpRevisr detected the
WordPress submodulein folder/wpas my repo.
Unfortunately there was no notification like mentioned above.Would love to see revisr handle this in future!
Forum: Plugins
In reply to: [Gridster] Plugin breaks visual editor in 3.9Dear gridster-users,
I had a long offline-period, because of personel reasons.
Sorry, that you had to help yourself in the past.I’m going to fix the issues in the upcoming two days and will release some fixes as soon as possible.
Best Carsten
Forum: Reviews
In reply to: [Gridster] great for building advanced grid layoutsThank you roakin!
Forum: Reviews
In reply to: [Gridster] WorksThank you!
Forum: Plugins
In reply to: [Advanced Menu Widget] Changelog for 0.3Thank you.
Update worked like a charm πGood to know, thanks for mentioning.
Forum: Reviews
In reply to: [Gridster] 5 Stars for the idea and more if works :DHello samenezes
thank you for your 5-star-voting.
But what means “… more if works”?
Does it not work for you?
Maybe you could provide some more info and maybe I can fix it, to make it work for you.best regards
carsten