Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • pmbs

    (@pmbs)

    This works as intended. Thanks!

    Allthough, this will open the chat every time a user clicks into a new page. Any way to not open it again on load if the user have closed it out once?

    However, a better alternative may be to disable the auto popup and simply add some code to open the chat only on desktop devices instead.

    Thanks for the quick reply. The solution you mention above seems like the best alternative yes 🙂

    Are you sure that you have updated the right place?
    Line 62 in template-tags.php should look like this:

    function addon_has_block( $name, $args = array() ) {

    Seems that WordPress 5.0 with the new editor is using a function named “has_blocks” yes. Easy fix for this is to change the function name for the plugin.

    Only one file needs to be updated. Open “plugins/multiple-content-blocks/assets/inc/template-tags.php”.

    Use an editor to replace all occurrences of has_block with for example addon_has block. You might also want to change the_block with addon_the_block.

    You will also have to update the function name in your template files. Then it should work fine again.

    I was a little quick there. The other folder I tried was a subfolder of PDF.
    Created a folder “PDFs” now and the URL is as expected:

    …/wp-content/uploads/PDFs/test.pdf

    So it works 🙂

    Although another error, which comes when I click “Add new” when already inside a folder. When clicking “Add new” from root this does not appear. Everything works though:

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/…/wp-includes/formatting.php:5100) in /var/www/…/wp-content/plugins/real-media-library/inc/attachment/Filter.class.php on line 116

    Thanks!

    Sorted this out by gathering all AJAX-functions (both front- and back-end) in a third file:

    // Is admin, but not doing ajaax
    if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
        require_once('admin/functions_admin.php'); 
    }
    // Is doing AJAX 
    else if ( is_admin() && ( defined( 'DOING_AJAX' ) || DOING_AJAX ) ) {
        require_once('functions_ajax.php'); 
    }
    // Front-end functions
    else { 
    require_once('public/functions_public.php'); 
    }
    pmbs

    (@pmbs)

    Thank you bcworkz. This seems that a more simple solution than the one I came up with yesterday (which also works though :))

    		    		$term_id = get_term_by( 'slug', $term, $taxonomy)->term_id;
    					$taxonomy_name = $taxonomy;
    					$termchildren = get_term_children( $term_id, $taxonomy_name );
    					$exclude = "";
    	
    					foreach ( $termchildren as $child ) {
    						$term2 = get_term_by( 'id', $child, $taxonomy_name );
    						$exclude = $exclude . "" . $term2->term_id . ",";
    					}
    					$exclude = substr($exclude, 0, -1);
    
    					 $args = array(
    					             //Rest of you args go here
    					          	'tax_query' =>  array (
    							        array(
    							            'taxonomy' => $taxonomy, // My Custom Taxonomy
    							            'terms' => explode(',', $exclude), // My Taxonomy Term that I wanted to exclude
    							            'field' => 'id', // Whether I am passing term Slug or term ID
    							            'operator' => 'NOT IN', // Selection operator - use IN to include, NOT IN to exclude
    							        ),
    							    ),
    					              'post_type' => $type,
    					  			  $taxonomy  => $term,
    					              'posts_per_page' => 100,
    					              'order' => 'ASC',
    					          );
    pmbs

    (@pmbs)

    Might it have something to do with that “large_cars” has a parent itself?

    pmbs

    (@pmbs)

    Thank you for your suggestion, but when adding the ‘tax_query’ part no posts at all show up :/

    Never mind. Found out that the “Imagick”-class was missing, and that “ImageMagick” didn’t add this automatically. Host fixed it now!

    Actually I found out now that the server has Imagick installed:

    Path: /usr/local/bin/convert
    Version return code is 127
    
        Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-06-01 http://www.imagemagick.org
        Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
        Features: DPC Modules OpenMP
        Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib

    The host said that the error might be because max_input_vars was exceeded – but I tried to raise it to 10 000 and still no changes:
    PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini.

    Still says Your server is not configured to run Imagick. in the admin of the plugin, allthough I know this box was checked before even though it was in “disabled” mode.

    Anything you can help with? :<

    Thanks for the quick reply. I guess there must be something server-related, because first when using the plugin I manually uploaded thumbnails until I discovered the “fancy” feature in settings.

    Then I just checked this feature, and for a couple of months thumbnails now have been auto-generated, until it recently stopped working.

    Guess I’ll check it out with the host then 🙂

    Thanks, guys. Tried removing every capability as stated here, but I guess it just isn’t possible without editing core files. Ended up removing it from the menu with CSS, which will do okay in this case.

    Hi hiphopsmurf,

    Looking forward to a new version of this plugin. Any chance you have an estimate on when this will be released? Are we talking april-may, or is it october-november? 🙂

    Thanks for replying. I’ve tried to delete cache (it was around 1600 files there), but it didn’t do any difference.

    Also followed the robots.txt-guide, but could not track any difference in loading time. We’ll wait for the next version, and hope issue will be resolved then.

Viewing 15 replies - 1 through 15 (of 23 total)