Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter lumos

    (@lumos)

    Thank you for your quick answer and solution!

    May I kindly ask you if it is possible to enable a feature to let a user select a different icon and a different fontawesome font weight (e.g.: solid, regular, light etc.?)

    Thank you

    Thread Starter lumos

    (@lumos)

    Updated: I’ve solved the problem by configuring the WooCommerce file download method to “Redirect Only (insecure).”

    Is there a possibility that this could create security issues?

    Thank you

    Thread Starter lumos

    (@lumos)

    I would also kindly like to ask if it’s possible to add two options to your plugin, as while writing the changelogs, we realized that some modes would be more efficient in our case.

    Is it possible to add a setting in the options where, when pressing the + button for New Features/Changes, the new field goes below the previous one rather than above? I understand that for some users, having it above might work better, but in our case, it would be more convenient below, so having an option to choose the direction would be helpful.

    Lastly, is it possible to make the input field for New Features/Changes into a text area? Not all change descriptions are just one line, so in addition to the HTML support mentioned at the beginning of this post, it would be ideal to have a text area instead of a single input field.

    Thank you very much for the great plugin and your assistance!

    Thread Starter lumos

    (@lumos)

    Hi,

    thank you for your answer, glad to read you will add this feature.
    BTW may I suggest another fix?
    It is possible to make wider the New Feature/Changes input field?

    https://prnt.sc/f3enFNI9c1A5

    Thank you!

    Thread Starter lumos

    (@lumos)

    I was able to fix the problem uninstalling Media Library Folders, delete the database tables, reinstalled Media Library Folders and reset the database with Media Library Folders Reset.

    Thank you for your suggestion on the debug.log

    Thread Starter lumos

    (@lumos)

    Thank you for your quick answer.

    This could be the problem, any idea on how can I fix it?

    Thank you

    [03-Oct-2023 14:07:55 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND meta_key = '_wp_attached_file'' at line 4 for query select meta_value as attached_file
    from **************_postmeta 
    where post_id = 
    AND meta_key = '_wp_attached_file' made by do_action('toplevel_page_mlf-folders8'), WP_Hook->do_action, WP_Hook->apply_filters, MGMediaLibraryFolders->mlf_folders, require_once('/plugins/media-library-plus/includes/media-folders.php'), MGMediaLibraryFolders->media_library, require_once('/plugins/media-library-plus/includes/media-library.php'), MGMediaLibraryFolders->get_folder_path
    [03-Oct-2023 14:07:55 UTC] PHP Warning:  Attempt to read property "attached_file" on null in /var/www/html/wp-content/plugins/media-library-plus/media-library-plus.php on line 2380
    [03-Oct-2023 14:07:55 UTC] PHP Deprecated:  ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-content/plugins/media-library-plus/media-library-plus.php on line 2380
    [03-Oct-2023 14:07:55 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 4 for query select post_title, ID, **************_mgmlp_folders.folder_id 
    from **************_posts 
    LEFT JOIN **************_mgmlp_folders ON (**************_posts.ID = **************_mgmlp_folders.post_id)
    where ID =  made by do_action('toplevel_page_mlf-folders8'), WP_Hook->do_action, WP_Hook->apply_filters, MGMediaLibraryFolders->mlf_folders, require_once('/plugins/media-library-plus/includes/media-folders.php'), MGMediaLibraryFolders->media_library, require_once('/plugins/media-library-plus/includes/media-library.php'), MGMediaLibraryFolders->get_parents
    [03-Oct-2023 14:07:55 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 4 for query select post_title, ID, **************_mgmlp_folders.folder_id 
    from **************_posts 
    • This reply was modified 2 years, 7 months ago by lumos.
    Thread Starter lumos

    (@lumos)

    Thank you, this solved the problem.

    Thread Starter lumos

    (@lumos)

    Never mind, i was able to solve the problem with this code:

    function algolia_support_conditional_sources() {
        $desired_sources = [];
        // Show only blog posts when on a single post, category, or tag archive
        if ( is_home() || is_single() || is_category() || is_tag() ) {
            $desired_sources[] = 'posts_post'; // Blog posts index
            $desired_sources[] = 'terms_post_tag'; // Blog post tags index
        } elseif ( post_type_exists( 'ht_kb' ) ) {
            // Show only knowledge-base articles when on a single knowledge-base article
            $desired_sources[] = 'posts_ht_kb'; // Knowledge-base articles index
            $desired_sources[] = 'terms_ht_kb_category'; // Knowledge-base categories index
            $desired_sources[] = 'terms_ht_kb_tag'; // Knowledge-base tags index
        }
        wp_add_inline_script( 'algolia-autocomplete', 'const wanted_autocomplete_sources = \'' . json_encode( $desired_sources ) . '\'; ');
    }
    add_action( 'wp_enqueue_scripts', 'algolia_support_conditional_sources' );

    Thank you!

    Thread Starter lumos

    (@lumos)

    Hi Michael, thank you for the response, it’s exactly what I was looking for.
    I implemented the function described in your post, and it works correctly for searches made within the knowledge-base. However, when it comes to the blog, searching for something only shows me the results from the knowledge-base.
    This is the function I have implemented, could you help me by pointing out what I am doing wrong?

    Thank you.

    <?php
    
    	add_action( 'wp_enqueue_scripts', 'ohio_child_local_enqueue_parent_styles' );
    
    	function ohio_child_local_enqueue_parent_styles() {
    		wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    	}
    
    	# Disable Heroic KB Ajax Search
    	add_filter( 'ht_kb_disable_live_search', '__return_true' );
    
    	function algolia_support_conditional_sources() {
    		$desired_sources = [];
    	
    		// Show only blog posts when on a single post, category, or tag archive
    		//if ( is_home() || is_single() || is_category || is_tag() {
    		if ( is_singular( 'post' ) || is_category() || is_tag() ) {
    			$desired_sources[] = 'posts_post'; // Blog posts index
    			$desired_sources[] = 'terms_post_tag'; // Blog post tags index
    		}
    		elseif (post_type_exists('ht_kb')) {
    			// Show only knowledge-base articles when on a single knowledge-base article
    			$desired_sources[] = 'posts_ht_kb'; // Knowledge-base articles index
    			$desired_sources[] = 'terms_ht_kb_category'; // Knowledge-base categories index
    			$desired_sources[] = 'terms_ht_kb_tag'; // Knowledge-base tags index
    		}
    	
    			wp_add_inline_script( 'algolia-autocomplete', 'const wanted_autocomplete_sources = \'' . json_encode( $desired_sources ) . '\'; ');
    	}
    	add_action( 'wp_enqueue_scripts', 'algolia_support_conditional_sources' );
    Thread Starter lumos

    (@lumos)

    Thank you for the answer, the Allow download on shop / archive pages is already activated.

    https://prnt.sc/cwzsqs4CVoEF

    Thread Starter lumos

    (@lumos)

    I fixed out, thank you

    Thread Starter lumos

    (@lumos)

    Thank you @alexdeborba!

    Thread Starter lumos

    (@lumos)

    Please, anyone can help me to solve this problem?

    Thanks

    Ho @croixhaug,

    I have not received answers.

    Thanks

    Hi @croixhaug, email sended.

    Thanks
    Enrico

    • This reply was modified 7 years, 10 months ago by lumos.
Viewing 15 replies - 1 through 15 (of 20 total)