Category: technology

  • Initialize slick slider after ajax success

    Add following snippet into your ajax success.

    if ($('.your_slick_selector').hasClass('slick-initialized')) {
        $('.your_slick_selector').slick('destroy');
    }
    
    $( '.your_slick_selector' ).html( response );
    
    $( '.your_slick_selector' ).slick({
        infinite: false,
        slidesToShow: 5,
        slidesToScroll: 5,
    });
    
  • WordPress Copy Content Plugin

    WordPress Copy Content Plugin

    Sometimes people needs some part of content from existing posts or pages. Or some needs to add extra content from existing.

    So now you dont need to find that post/page and copy that content and paste. Just install this plugin, search the post/page by it’s title and fetch the content.

    HOW TO USE?

    • Search post/page by it’s title
    • Select from the search result
    • And fetch the content of selected post/pages

     

    You can get the plugin free from here.

  • Comment Mention WordPress Plugin

    Comment Mention WordPress Plugin

    Now you can enable user mention functionality in post comments without using BuddyPress plugin.

    This plugin is useful for those who wanted to enable mention on their blog site.

    What this plugin does? Just type username followed by ‘@’ in comment box. It will send the email to mentioned user.

    Email setting is provided in backend. You can change email subject and content by your own.

    You can get this simple plugin from here.

  • Allow authors to preview the draft post

    In WordPress, only administrator of the site can preview of non-published posts.

    What if you want to allow preview for the author as well?

    Add code snippet from below gist to theme’s functions.php

    https://gist.github.com/BhargavBhandari90/557fd7e1155704e4f268c2016ac536c9

  • Errors were encountered while processing:

    [code language=”css”]
    dpkg: error processing package mariadb-server (–configure):
    dependency problems – leaving unconfigured
    Processing triggers for libc-bin (2.23-0ubuntu7) …
    No apport report written because the error message indicates its a followup error from a previous failure.
    Errors were encountered while processing:
    mariadb-server-10.1
    mariadb-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    2017-07-15 16:15:35,896 (INFO) ee : Oops Something went wrong!!
    2017-07-15 16:15:35,896 (ERROR) ee : Check logs for reason `tail /var/log/ee/ee.log` & Try Again!!!
    [/code]

     

    Solution:

    sudo -s
    cd /var/cache/debconf
    rm *.dat
    apt-get update && apt-get upgrade

     

    Ref: https://askubuntu.com/questions/104493/errors-were-encountered-while-processing-man-db

     

    Note: I couldn’t find the reason for that but got the solution. Anyone knows the reason?