Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)
  • Thread Starter Fulgence Ridal

    (@theeponymus)

    Sorry, I solved the prb by :
    Forminator_API::get_entries( $form_id );

    Documentation is so confusing for me.

    thx

    Thread Starter Fulgence Ridal

    (@theeponymus)

    It works !

    thx a lot Nastia

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Hello,
    So sorry. It is a very important prb for me to not have access to the results. I’ve tried a lot of things wih the API, and it seems it is not possible.

    Do you have an idea ?

    thx for you help.

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Hi MAx,

    Thank you for your help but it doesn’t work.
    I think, there is something strange because in backend, default .mo file is loaded cos half of words are translated (I suppose according to the .mo file). There are translated everywhere except inside the input occurences of expression section.
    I suppose it is a bug or simply a multisite config. bug.

    info : for .mo & .po, I was using the default name when I downloaded the plugin.

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Hi Max,
    front-end … In fact tab “expressions” section is not translated, but I see inside the .po and .mo files and occurrences are translated but not appear translated in frontend. Ex. “Surname” appears in english, but in .po (and .mo) file, surname is translated.

    Of course I can change occurrences easily for one or few sites … but I have multisite config. and I’m just wondering why it appears not translated in the expressions sections (backend). Is-it normal or a bug ?

    Thx

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Hi,

    sorry … in fact my .po and .mo files are in languages folder …
    but it appears that the translation doesn’t work.

    (config. multisite and last version of wordpress and Ajax login plugin)

    Thread Starter Fulgence Ridal

    (@theeponymus)

    In fact, it is a simple wp query post /// with this args :

    $args = array(
    ‘post_type’=> ‘post’,
    ‘order’ => ‘DESC’,
    ‘posts_per_page’ => $my_nb,
    ‘auteur’ => $my_auteur,
    ‘category_name’ => $my_cat,
    );

    I don’t why, when I make a query, it shows me all posts … and don’t hide protected posts … may be I missed something …

    thx Predrag

    Thread Starter Fulgence Ridal

    (@theeponymus)

    function ebooks_func( $atts ) {
    $a = shortcode_atts( array(
    ‘auteur’ => ”,
    ‘selection’ => ”,
    ‘tag’ => ”,
    ‘cat’ => ”,
    ‘nb’ => ”,
    ), $atts );
    // return “{$a[‘auteur’]}”;
    $my_auteur = $a[‘auteur’];
    $my_cat = $a[‘cat’];
    $my_nb = $a[‘nb’];
    $txt = “”;
    $args = array(
    ‘post_type’=> ‘post’,
    ‘order’ => ‘DESC’,
    ‘posts_per_page’ => $my_nb,
    ‘auteur’ => $my_auteur,
    ‘category_name’ => $my_cat,
    );
    $the_query = new WP_Query( $args );
    $txt .= “<div class=’grid’>”;
    if ( $the_query->have_posts() ) {
    while ( $the_query->have_posts() ) {
    $the_query->the_post();
    $txt .= ‘<div>’;
    // $my_post_id = $post->ID;
    $txt .= “<a href='”;
    $txt .= get_permalink();
    $txt .= “‘>”;
    $txt .= get_the_post_thumbnail($the_query->post->ID);
    $auteur = strip_tags( get_the_term_list( $the_query->post->ID, ‘auteur’, ”, ‘, ‘, ” ));
    $categories = get_the_category();
    $my_cat=””;
    if ( ! empty( $categories ) ) { $my_cat = $categories[0]->slug;}
    $txt .= ‘<h3 class=”‘.$my_cat.'”><span class=”cover_author”>’;
    $txt .= preg_replace(‘/(.*) /’,'<i>$1 </i>‘,$auteur).”</span><br>”;
    $title = get_the_title($the_query->ID);
    //$my_title = str_replace(“|”,”</span><br><span class=’cover_author’><i>”,$title);
    //echo preg_replace(‘/(.*) /’,’$1 </i>‘,$my_title);
    $txt .= “<span class=’cover_title’>”.$title;
    $txt .= ‘</span></h3>’;
    $txt .= ‘</div>’;
    }
    }
    wp_reset_postdata();
    $txt .= “</div>”;
    return $txt;
    }
    add_shortcode( ‘ebooks’, ‘ebooks_func’ );
    Thread Starter Fulgence Ridal

    (@theeponymus)

    hi Predag,

    function ebooks_func( $atts ) {
    $a = shortcode_atts( array(
    ‘auteur’ => ”,
    ‘selection’ => ”,
    ‘tag’ => ”,
    ‘cat’ => ”,
    ‘nb’ => ”,
    ), $atts );
    // return “{$a[‘auteur’]}”;
    $my_auteur = $a[‘auteur’];
    $my_cat = $a[‘cat’];
    $my_nb = $a[‘nb’];
    $txt = “”;
    $args = array(
    ‘post_type’=> ‘post’,
    ‘order’ => ‘DESC’,
    ‘posts_per_page’ => $my_nb,
    ‘auteur’ => $my_auteur,
    ‘category_name’ => $my_cat,
    );
    $the_query = new WP_Query( $args );
    $txt .= “<div class=’grid’>”;
    if ( $the_query->have_posts() ) {
    while ( $the_query->have_posts() ) {
    $the_query->the_post();
    $txt .= ‘<div>’;
    // $my_post_id = $post->ID;
    $txt .= “<a href='”;
    $txt .= get_permalink();
    $txt .= “‘>”;
    $txt .= get_the_post_thumbnail($the_query->post->ID);
    $auteur = strip_tags( get_the_term_list( $the_query->post->ID, ‘auteur’, ”, ‘, ‘, ” ));
    $categories = get_the_category();
    $my_cat=””;
    if ( ! empty( $categories ) ) { $my_cat = $categories[0]->slug;}
    $txt .= ‘<h3 class=”‘.$my_cat.'”><span class=”cover_author”>’;
    $txt .= preg_replace(‘/(.*) /’,'<i>$1 </i>‘,$auteur).”</span><br>”;
    $title = get_the_title($the_query->ID);
    //$my_title = str_replace(“|”,”</span><br><span class=’cover_author’><i>”,$title);
    //echo preg_replace(‘/(.*) /’,’$1 </i>‘,$my_title);
    $txt .= “<span class=’cover_title’>”.$title;
    $txt .= ‘</span></h3>’;
    $txt .= ‘</div>’;
    }
    }
    wp_reset_postdata();
    $txt .= “</div>”;
    return $txt;
    }
    add_shortcode( ‘ebooks’, ‘ebooks_func’ );

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Hi Kasia,

    You are right /// thx a lot /// it ‘s due to my own theme …

    I have :

    $args = array(
    ‘post_type’=> ‘post’,
    ‘order’ => ‘ASC’,
    ‘posts_per_page’ => $my_nb,
    ‘post_parent’ => 0,
    ‘auteur’ => $my_auteur,
    ‘category_name’ => $my_cat,
    );
    $the_query = new WP_Query( $args ); // etc…

    as shortcode for my theme in home page … can you please tell me what king of variables must i specify to hide protected content ?

    thx for your help …

    Fulgence

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Hi Predrag,

    https://scolastik.info/

    if you look at first ebook : Fisher Irving, Illusion de la stable” … is a protected post.

    thx for your help
    Fulgence

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Hi Bojan,

    Sorry … my english is not so good …
    but i Will try to explain what i said …

    ie / event+ (wpmu plugin) when you edit an event in admin panel; you have an acces to a marketpress widget (in the right panel) to make a relation between event and marketpress product …

    So i’m wondering how to to this job …

    thx a lot

    Fulgence

    Thread Starter Fulgence Ridal

    (@theeponymus)

    Hi Bojan,

    and very good job for your plugin … but I think it could a very very complete plugin if you have free choice response to a quiz like the other plugin.

    Free choice quiz is something like that :
    1 + ___ = 2
    ___ is an automatic input like that and if you enter “1” it enter the correct answer.
    In admin area the configuration of free choice is something like that :
    my sentence is {this|1} one…

    it produces this quiz :

    my sentence is ___ one

    when you enter “this” you have one point.

    I Think, courepress would be very useful with this improvment.

    thx a lot … to read me.

    Fulgence.

    Thread Starter Fulgence Ridal

    (@theeponymus)

    ok solved … sorry

    global $polylang;
    $polylang->model->set_post_language($post_id, $lang);

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