Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter msagovac

    (@msagovac)

    Hello,

    I found where is problem. A variable $mltlngg_terms_table_translate returns NULL. This means that as string is “”. NULL === “”

    Example:

    If I dump this:

    if ( ! function_exists( ‘mltlngg_terms_filter’ ) ) {
    function mltlngg_terms_filter( $terms ) {
    global $mltlngg_terms_table_translate, $wpdb, $mltlngg_current_language;
    foreach ( $terms as $mltlngg_one_term ) {
    if ( isset( $mltlngg_one_term->term_id ) ) {
    $mltlngg_one_term_name = $wpdb->get_var(
    $wpdb->prepare(
    “SELECT name
    FROM $mltlngg_terms_table_translate
    WHERE term_ID = %d AND language = ‘%s’
    “, $mltlngg_one_term->term_id, $mltlngg_current_language
    )
    );

    var_dump($mltlngg_terms_table_translate); die(); // RETURNS NULL

    OR A FULL QUERY IS:
    SELECT name FROM WHERE term_ID = 49 AND language = ‘en_US’

    So after i tried to find where is variable $mltlngg_terms_table_translate and refer to table name “wp_mltlngg_terms_translate”.

    Then in SQL query check for table:

    MariaDB [—]> select * from wp_mltlngg_terms_translate;
    Empty set (0.00 sec)

    Okay, than i changed a code and instead of null of name table i changed to string:

    “SELECT name
    FROM wp_mltlngg_terms_translate
    WHERE term_ID = %d AND language = ‘%s’

    and in a LOG IS NOW CLEAN. No errors shown. Didn’t received a table name “wp_mltlngg_terms_translate”.

    Doesn’t know why, but i think is problem that a function didn’t received in other function from:

    $mltlngg_terms_table_translate = $wpdb->prefix . ‘mltlngg_terms_translate’;

    Create table:

    MariaDB [—]> show create table wp_mltlngg_terms_translate;
    +—————————-+—————————————————————————————————————————————————————————————————————————————-+
    | Table | Create Table |
    +—————————-+—————————————————————————————————————————————————————————————————————————————-+
    | wp_mltlngg_terms_translate | CREATE TABLE wp_mltlngg_terms_translate (
    ID int(6) unsigned NOT NULL AUTO_INCREMENT,
    term_ID int(6) NOT NULL,
    name text NOT NULL,
    language text NOT NULL,
    PRIMARY KEY (ID)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
    +—————————-+—————————————————————————————————————————————————————————————————————————————-+
    1 row in set (0.00 sec)

    Thread Starter msagovac

    (@msagovac)

    Hello,

    I’ve put all var_dump and triggers on errors on line 504 or code:

    /* Display categories list & tags cloud & categories/tags of posts in the selected language */
    if ( ! function_exists( ‘mltlngg_terms_filter’ ) ) {
    function mltlngg_terms_filter( $terms ) {
    global $mltlngg_terms_table_translate, $wpdb, $mltlngg_current_language;
    foreach ( $terms as $mltlngg_one_term ) {
    if ( isset( $mltlngg_one_term->term_id ) ) {
    $mltlngg_one_term_name = $wpdb->get_var(
    $wpdb->prepare(
    “SELECT name
    FROM $mltlngg_terms_table_translate
    WHERE term_ID = %d AND language = ‘%s’
    “, $mltlngg_one_term->term_id, $mltlngg_current_language
    )
    );
    //var_dump(‘5>>’.$item->object_id,$mltlngg_current_language); die();
    if ( isset( $mltlngg_one_term_name ) && “” != $mltlngg_one_term_name ) /* If translation is exist and not empty, filter terms */
    $mltlngg_one_term->name = $mltlngg_one_term_name;
    }
    }
    return $terms;
    }
    }

    A response on landing page and admin is:

    string(3) “5>>” string(5) “en_US”

    Hello, correct carousel. But if you resize it to full it will slides, you can view all slides (1,2,3) but only what you need it to centering all slides to page. I think that can do with this plugin too.

    Hello, Matthew,

    Centering plugin looks okay. Image slides on center when resizing web browser stills good.

    This code works. Okay…

    <div align="center">
    <?php if ( function_exists( 'easingsliderlite' ) ) { easingsliderlite(); } ?>
    </div>

    But, how can I add neigbours images from left of center images and right image after center? Problems appears that center would’t consistenlty if I’m resizing browser.

    if class easingsliderlite-slide is for inactive images this should be on left and right side, active class is center.

    How can I make to FULL width (full width screen) with fixed image on center and neighbour images on left and right sides?

    Maybe add duplicate of code and change function in easingsliderlite_left() and easingsliderlite_right? But how to constantly centering image on center so not moving? Hm maybe absolute class?

    Is there any plugin that can do with WP?

Viewing 4 replies - 1 through 4 (of 4 total)