WordPress.org

Support

Support » Plugins and Hacks » Popups - WordPress Popup » [Resolved] Problems with Facebook shortcode

[Resolved] Problems with Facebook shortcode

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

    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?

    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

    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” 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="http://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.

    You can check the active popup on http://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=”http://connect.facebook.net/fr-FR/all.js?ver=1.0.5#xfbml=1″ type=”text/javascript”>

    The script at http://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. (http://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', 'http://connect.facebook.net/'.get_bloginfo('language').'/all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);

    to

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

    Let me know fi that works

    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 http://42mag.fr/2014/08/monopoly-ledition-speciale-the-legend-of-zelda-arrive/ but I don’t see the popup there

    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

    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 ‘[Resolved] Problems with Facebook shortcode’ is closed to new replies.
Skip to toolbar