BBPress Claude Dagenais : Replies Created

Forum Replies Created

Viewing 9 posts - 11 through 19 (of 19 total)
  • Author
    Posts
  • in reply to: Links Titles vs Shortcode #375451
    Claude Dagenais
    Participant

    In case it can help someone, since I have a multilingual website using wpml and that I use WPML Shortcodes here is the final code to make this work with 2 languages:

    add_filter( 'cn_output_link', 'th_cn_output_link', 10, 4 );
    
    function th_cn_output_link( $html, $link, $entry, $atts) {
    
        $url    = cnSanitize::field( 'url', $link->url );
        $th_langue = wpml_e__if_language( 'Visit us on the web !', 'en' ); wpml_e__if_language( 'Visitez-nous sur le web !', 'fr' );
    
        $html = '<a class="url" href="' . $url .  '" target="_blank">' . $th_langue . '</a>';
    
        return $html;
    }
    
    • This reply was modified 10 years, 3 months ago by Steven Zahm. Reason: Fix code block
    in reply to: Links Titles vs Shortcode #375448
    Claude Dagenais
    Participant

    Except for a missing semicolon this is exactly what I was looking for. Thank you so much once more and have a great weekend!

    in reply to: Links Titles vs Shortcode #375405
    Claude Dagenais
    Participant

    I just want to add that I found a temporary solution to do this using CSS and that I could change your file class.entry-output.php to achieve this in PHP but I rather have a clean solution if one exist.
    You can see it there
    tx

    in reply to: Custom cMap #374360
    Claude Dagenais
    Participant

    Thank you! Works great.

    in reply to: Custom cMap #374358
    Claude Dagenais
    Participant

    Also you you can I a sneak peak at http://staging.infosutton.com/?lang=en

    in reply to: Custom cMap #374357
    Claude Dagenais
    Participant

    Thank you Steven it does solve almost everything… But since I have you… I did a small change in class.entry-output.php to change the size of the social media icons (line 1941) – is there a way to change that without the hard coding?

    And finally, I just want to add that I really like you product!

    in reply to: Slim #365493
    Claude Dagenais
    Participant

    Thank you Steven
    It did help!
    Cladue

    in reply to: Slim #365479
    Claude Dagenais
    Participant

    Hi Steve,
    How can I go about to renew?
    Claude

    in reply to: Link #356578
    Claude Dagenais
    Participant

    Yes it does. Tx.

Viewing 9 posts - 11 through 19 (of 19 total)