Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author Damian

    (@timersys)

    Hi to use faces you need to setup layout to standard but it will not align well i think.
    Also if you move fb to the center i think it will look better.
    put all shortcodes together without spaces between them

    Plugin Author Damian

    (@timersys)

    check new version for faces fix

    Thread Starter jgrmstr

    (@jgrmstr)

    I confirm that only admin see the Popups item in the menu with the new version.

    Another question about Facebook configuration : how can I set the language of Facebook’s widget ? It is in english, I’d like to set it to french.

    Plugin Author Damian

    (@timersys)

    It takes the language of your site. You wp-admin is in french?
    in wp-config.php what locale you have configured?

    Thread Starter jgrmstr

    (@jgrmstr)

    Yes my wp-admin is in french.
    In wp-config.php it’s set to “fr_fr” since the beginning but the Facebook shortcode is displyaed in english

    Plugin Author Damian

    (@timersys)

    Could you check your source code to see what file is being called for Facebook javascripts? Should be located in the header of your site

    Thread Starter jgrmstr

    (@jgrmstr)

    When I seek in the source code of the page, at the place of your shortcode in the popup, here is the div for Facebook :

    <div class=”fb-like fb_iframe_widget” data-width=”” data-href=”https://www.facebook.com/42mag.fr&#8221; data-layout=”standard” data-action=”like” data-show-faces=”true” data-share=”false” fb-xfbml-state=”rendered” fb-iframe-plugin-query=”action=like&app_id=&href=https%3A%2F%2Fwww.facebook.com%2F42mag.fr&layout=standard&locale=en_US&sdk=joey&share=false&show_faces=true”>…</div>

    locale=en_US
    It seems like your plugin doesn’t load the right language

    Plugin Author Damian

    (@timersys)

    On which page or your site I can check the popup active?
    The code I meant was something like:
    <script type="text/javascript" src="https://connect.facebook.net/fr_FR/all.js#xfbml=1"></script>

    Depending on the language setting you have in wp-config.php that scripts should load with the right locale.

    Thread Starter jgrmstr

    (@jgrmstr)

    You can check the active popup on https://42mag.fr/2014/08/monopoly-ledition-speciale-the-legend-of-zelda-arrive/

    OK so I’ve searched in the page code source, and here is the call :
    <script src=”https://connect.facebook.net/fr-FR/all.js?ver=1.0.5#xfbml=1&#8243; type=”text/javascript”>

    The script at https://connect.facebook.net/fr-FR/all.js?ver=1.0.5#xfbml=1 returns /*1407239775,,JIT Construction: v1356228,en_US*/

    There is an error with the locale parameter. It should be fr_FR instead of fr-FR. (https://connect.facebook.net/fr_FR/all.js?ver=1.0.5#xfbml=1 returns the correct locale)

    Plugin Author Damian

    (@timersys)

    Try by changing in popups/public/class-social-popup.php line 333
    the following:
    wp_register_script( 'spu-facebook', 'https://connect.facebook.net/'.get_bloginfo('language').'/all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);

    to

    wp_register_script( 'spu-facebook', 'https://connect.facebook.net/'.get_locale().'/all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);

    Let me know fi that works

    Thread Starter jgrmstr

    (@jgrmstr)

    I’ve made the change.

    Now the script is not called at all

    Plugin Author Damian

    (@timersys)

    Do you get an error ? Please double check the entered code or that the popup is active on that page.

    I just tried locally and seems to work fine.

    Im trying to check https://42mag.fr/2014/08/monopoly-ledition-speciale-the-legend-of-zelda-arrive/ but I don’t see the popup there

    Thread Starter jgrmstr

    (@jgrmstr)

    I do not have any error.

    Popup configuration has not changed.

    In the plugin editor, popups/public/class-social-popup.php is now flagged as disabled (but the plugin is not disabled).
    I don’t know how to reactivate one file ??

    Plugin Author Damian

    (@timersys)

    Try editing your files in FTP to avoid problems.

    I pasted the code in https://gist.github.com/timersys/796ff429951b771e9916 , in case copying from here is giving problems

    Thread Starter jgrmstr

    (@jgrmstr)

    No cpoying is not the problem.

    It is too late for editing in FTP : the file is flagged as deactivated and I don’t know how to reactivate it…

    I tried deactivate then reactivate the plugin but with no avail…

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Problems with Facebook shortcode’ is closed to new replies.