veggie_89
Forum Replies Created
-
Thanks @stenpms72 That was the issue!
And thanks @crazywpgeek for sharing.
Forum: Plugins
In reply to: [Post Views Counter] Incompatible with Salient Theme by NectarOkay as soon as I posted it dawned on my what was probably happening. The issue is that your plugin sets all outputs in the entire wordpress admin area to width:100%. This needs to be scoped down ideally by only loading the css file on your plugins page rather than on every admin page, or at least by setting the css rule to be a little more specific.
in /post-views-counter/css/admin.min.css
Change from:
output{
To:
.toplevel_page_post-views-counter output{Thanks!
- This reply was modified 1 year, 5 months ago by veggie_89.
Forum: Plugins
In reply to: [Drag & Drop Featured Image Improved] Plugin settings page is broken.Thanks a lot for fixing! Works like a charm now.
Forum: Plugins
In reply to: [Admin Options Pages] Throws deprecated warning on PHP 8.0+I realized you’ll only see these warnings if you have WP_debug mode enabled but still probably worth looking into a solution for. I’m also getting the following warning when the plugin is active:
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /.../public/wp-includes/functions.php on line 7288
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /.../public/wp-includes/functions.php on line 2187Forum: Plugins
In reply to: [Post Views Counter] Bugs with salient wpbakeryHaving this same issue. Finally narrowed it down to your plugin. I will have to disable the plugin until this is resolved as it makes the WP Bakery builder in salient unusable. 🙁 I can send you the theme if file if you’d like to test on your end.
There are no errors showing up in the javascript console. Here’s the html of the div being affected:
<div class="edit_form_line"><div class="slider" style=""><input type="range" min="0" max="2" step="0.01" value="0" class="wpb_vc_param_value nectar-range-slider scale_desktop nectar_range_slider" id="scale_desktop" name="scale_desktop" style="position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0;"><div class="rangeslider rangeslider--horizontal" id="js-rangeslider-3" style=""><div class="rangeslider__fill"></div><div class="rangeslider__handle" style="left: -20px;"></div></div></div><output class="output"><span class="number">2</span><span class="suffix">x</span></output><span class="vc_description vc_clearfix"></span></div>The slider shrinks in size and is automatically set to 0 when your plugin is active:
<div class="edit_form_line"><div class="slider"><input type="range" min="0" max="2" step="0.01" value="1" class="wpb_vc_param_value nectar-range-slider scale_desktop nectar_range_slider" id="scale_desktop" name="scale_desktop" style="position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0;"><div class="rangeslider rangeslider--horizontal" id="js-rangeslider-3"><div class="rangeslider__fill" style="width: 168.5px;"></div><div class="rangeslider__handle" style="left: 158.5px;"></div></div></div><output class="output"><span class="number">1</span><span class="suffix">x</span></output><span class="vc_description vc_clearfix"></span></div>Forum: Plugins
In reply to: [WP SmartCrop] Access focal point percentages via PHP?I took a look at the plugin code and found the answer to my question. For anyone else who’s looking:
$focus = get_post_meta( $post->ID, '_wpsmartcrop_image_focus', true ); if( !$focus || !is_array( $focus ) || !isset( $focus['left'] ) || !isset( $focus['top'] ) ) { $focus = array( 'left' => '50', 'top' => '50' ); $default_focus = apply_filters( 'wpsmartcrop_default_focus', array(50, 50), $post->ID ); if( count( $default_focus ) > 1 ) { $focus = array( 'left' => $default_focus[0], 'top' => $default_focus[1] ); } }Note that you’ll probably need to replace: $post->ID, with the appropriate code to grab the ID of the image you’re displaying.
You can then output this as css like this:
style="background-position: <?php echo $focus[Left].'% '.$focus[top].'%';?>"Forum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] save button on caldera formsI’m also having this issue. For me it’s on forms with the Authorize.net processor. This is a paid plugin but I haven’t heard anything back from the support team yet.
Here’s a copy of the console errors on that page if anyone is interested:
react-dom.min.js?ver=16.13.1:125 TypeError: Cannot read property 'split' of undefined at index.min.js?ver=1.9.3:1 at te (index.min.js?ver=1.9.3:1) at Object.Vc [as useReducer] (react-dom.min.js?ver=16.13.1:87) at Object.d.useReducer (react.min.js?ver=16.13.1:32) at re (index.min.js?ver=1.9.3:1) at we (react-dom.min.js?ver=16.13.1:84) at He (react-dom.min.js?ver=16.13.1:97) at zj (react-dom.min.js?ver=16.13.1:228) at Th (react-dom.min.js?ver=16.13.1:152) at tj (react-dom.min.js?ver=16.13.1:152) Me @ react-dom.min.js?ver=16.13.1:125 Ih.c.callback @ react-dom.min.js?ver=16.13.1:138 Wg @ react-dom.min.js?ver=16.13.1:67 oj @ react-dom.min.js?ver=16.13.1:127 Aj @ react-dom.min.js?ver=16.13.1:160 unstable_runWithPriority @ react.min.js?ver=16.13.1:25 Da @ react-dom.min.js?ver=16.13.1:60 ab @ react-dom.min.js?ver=16.13.1:154 Te @ react-dom.min.js?ver=16.13.1:146 (anonymous) @ react-dom.min.js?ver=16.13.1:61 unstable_runWithPriority @ react.min.js?ver=16.13.1:25 Da @ react-dom.min.js?ver=16.13.1:60 Pg @ react-dom.min.js?ver=16.13.1:61 ha @ react-dom.min.js?ver=16.13.1:60 Ja @ react-dom.min.js?ver=16.13.1:224 ch @ react-dom.min.js?ver=16.13.1:93 updateFieldSetting @ index.min.js?ver=1.9.3:1 (anonymous) @ index.min.js?ver=1.9.3:1 dispatch @ jquery.min.js?ver=3.5.1:2 v.handle @ jquery.min.js?ver=3.5.1:2 trigger @ jquery.min.js?ver=3.5.1:2 (anonymous) @ jquery.min.js?ver=3.5.1:2 each @ jquery.min.js?ver=3.5.1:2 each @ jquery.min.js?ver=3.5.1:2 trigger @ jquery.min.js?ver=3.5.1:2 (anonymous) @ edit.js?ver=1.9.3:851 dispatch @ jquery.min.js?ver=3.5.1:2 v.handle @ jquery.min.js?ver=3.5.1:2 trigger @ jquery.min.js?ver=3.5.1:2 (anonymous) @ jquery.min.js?ver=3.5.1:2 each @ jquery.min.js?ver=3.5.1:2 each @ jquery.min.js?ver=3.5.1:2 trigger @ jquery.min.js?ver=3.5.1:2 rebuild_field_binding @ edit.js?ver=1.9.3:1353 build_processor_config @ edit.js?ver=1.9.3:2746 (anonymous) @ edit.js?ver=1.9.3:2768 each @ jquery.min.js?ver=3.5.1:2 each @ jquery.min.js?ver=3.5.1:2 (anonymous) @ edit.js?ver=1.9.3:2767 e @ jquery.min.js?ver=3.5.1:2 t @ jquery.min.js?ver=3.5.1:2 setTimeout (async) (anonymous) @ jquery.min.js?ver=3.5.1:2 c @ jquery.min.js?ver=3.5.1:2 fireWith @ jquery.min.js?ver=3.5.1:2 fire @ jquery.min.js?ver=3.5.1:2 c @ jquery.min.js?ver=3.5.1:2 fireWith @ jquery.min.js?ver=3.5.1:2 ready @ jquery.min.js?ver=3.5.1:2 B @ jquery.min.js?ver=3.5.1:2 Show 11 more frames jquery.min.js?ver=3.5.1:2 jQuery.Deferred exception: Cannot read property 'split' of undefined TypeError: Cannot read property 'split' of undefined at https://21project.com/wp-content/plugins/caldera-forms/clients/form-builder/build/index.min.js?ver=1.9.3:1:30186 at te (https://21project.com/wp-content/plugins/caldera-forms/clients/form-builder/build/index.min.js?ver=1.9.3:1:30998) at Object.Vc [as useReducer] (https://21project.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:87:312) at Object.d.useReducer (https://21project.com/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:32:285) at re (https://21project.com/wp-content/plugins/caldera-forms/clients/form-builder/build/index.min.js?ver=1.9.3:1:31089) at we (https://21project.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:84:293) at He (https://21project.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:97:464) at zj (https://21project.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:228:406) at Th (https://21project.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223) at tj (https://21project.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152) undefined S.Deferred.exceptionHook @ jquery.min.js?ver=3.5.1:2 t @ jquery.min.js?ver=3.5.1:2 setTimeout (async) (anonymous) @ jquery.min.js?ver=3.5.1:2 c @ jquery.min.js?ver=3.5.1:2 fireWith @ jquery.min.js?ver=3.5.1:2 fire @ jquery.min.js?ver=3.5.1:2 c @ jquery.min.js?ver=3.5.1:2 fireWith @ jquery.min.js?ver=3.5.1:2 ready @ jquery.min.js?ver=3.5.1:2 B @ jquery.min.js?ver=3.5.1:2 jquery.min.js?ver=3.5.1:2 Uncaught TypeError: Cannot read property 'split' of undefined at index.min.js?ver=1.9.3:1 at te (index.min.js?ver=1.9.3:1) at Object.Vc [as useReducer] (react-dom.min.js?ver=16.13.1:87) at Object.d.useReducer (react.min.js?ver=16.13.1:32) at re (index.min.js?ver=1.9.3:1) at we (react-dom.min.js?ver=16.13.1:84) at He (react-dom.min.js?ver=16.13.1:97) at zj (react-dom.min.js?ver=16.13.1:228) at Th (react-dom.min.js?ver=16.13.1:152) at tj (react-dom.min.js?ver=16.13.1:152)Forum: Plugins
In reply to: [Post Views Counter] Sort posts by viewsYou can check out the function PVC_GET_MOST_VIEWED_POSTS() in the documentation here: https://dfactory.eu/docs/post-views-counter/developers-api/
Custom integration:
$poular_posts = get_posts( array( 'post_status' => 'publish', 'numberposts' => 12, 'post_type' => 'post', 'order' => 'DESC', // required by PVC 'suppress_filters' => false, 'orderby' => 'post_views', 'fields' => '' ) );The only problem I’ve found with this, is that posts with 0 views don’t show up in the list at all since the meta data isn’t set until the first person views the post. You can use something like the following to add a single post view when a post with 0 views is saved:
// Set post views to 1 on post save. add_action('save_post', function ($postId) { if ( pvc_get_post_views( $post_id = $postId ) < 1 ){ pvc_view_post( $post_id = $postId ); } });I agree, plugin would be more useful if there was a setting/hook to customize max size. “Custom Max Size:”(leave blank for default of 2560px). Easily overlooked by anyone not interested, but really great for those of us who want to optimize our sites a little more.
Any Update on this? Looks like everyone with the WP File Manager plugin got hacked. Some of my sites it was in the index.html and index.php files. but others I can’t find the redirect.
Forum: Plugins
In reply to: [Cyclone Slider] Fatal Error After UpdateI’m getting the same error. A whole week and not a word from the devs? Has anyone tried contacting them through their website?
My Error:
PHP Fatal error: Class ‘ZipArchive’ not found in /home/(user)/public_html/wp-content/plugins/cyclone-slider-2/cyclone-slider.php on line 403Forum: Plugins
In reply to: [FG Joomla to WordPress] Plugin assumes wrong Joomla versionFor anyone who is still having this problem, the problem for me was that I accidentally had a space in my Joomla Table Prefix. I removed this and it worked perfectly. 🙂
Forum: Plugins
In reply to: [Sermon Manager] Media player not showing upI found a solution that worked for me:
https://ww.wp.xz.cn/support/topic/media-player-set-to-visibility-hidden?replies=2
Forum: Plugins
In reply to: [Sermon Manager] Failure to load Audio Media Player with new Update?For anyone still dealing with this issue, this is what worked for me:
https://ww.wp.xz.cn/support/topic/media-player-set-to-visibility-hidden?replies=2
Forum: Plugins
In reply to: [Sermon Manager] Sermon Player not showing up in WP 3.9.1This has issue has been resolved here:
https://ww.wp.xz.cn/support/topic/media-player-set-to-visibility-hidden?replies=2