Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi!
    I managed to insert inside tip text the following shortcode
    [lang idioma="en"]ENGLISH TEXT[/lang] [lang idioma="es"]SPANISH TEXT[/lang]

    and make it work. I have the shortcode registered in fuctions.php

    /* ---------------------------------------------------------------------------
     * Shortcode [lang idioma="en"] [/lang]
    * --------------------------------------------------------------------------- */
    add_shortcode( 'lang', 'wpml_find_language');
    
    function wpml_find_language( $attr, $content = null ){
    
        extract(shortcode_atts(array(
    
            'idioma' => '',
    
        ), $attr));
    
        $current_language = ICL_LANGUAGE_CODE;
    
        if($current_language == $idioma){
            $output = do_shortcode($content);
        }else{
            $output = "";
        }
    
        return $output;
    }

    The point is I’m using exactly the same shortcode and fuctions.php in another site, and the output text includes the shortcode instead of executing it.

    Thread Starter ind3lirium

    (@inachoglez)

    The code has been banned, so I put it up again

    i’m using the mp3-jplayer in the homepage of a website I’m running. What i want to do is enable an image/link to pop-out the player thorugh easy html. The player by default has an integrated icon that allows you to pop-out the player but I want to enable more external elements too to play this function.

    I’ve found the pop-out code in the mp3-jplayer.js. Here it is
    https://pastebin.com/aGtMdSYV

    And hete the code for the pop-out button for the player

    <div class=\"mp3j-popout-MI" . $addclass . "\" style=\"" .$showpopoutbutton. "\" onclick=\"return launch_mp3j_popout('" . $this->WPinstallpath . "/wp-content/plugins/mp3-jplayer/popout-mp3j.php', " . $pID . ");\">" . $popouttext . "</div>

    I want to get something like this, but I can’t make it work
    Click here

    About the pageID, I’m thinking about the ID of the current page playing, but as long as the player is configured with shortcodes reading from a FEED and not from a page/post library, I’m not sure if the pageID is working here or not.

    Any help? Thanks in advance

    Thread Starter ind3lirium

    (@inachoglez)

    Anybody?

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