+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Facebook comment share tab

  1. #11
    Quote Originally Posted by Viktor View Post
    Hello Wei,

    Of course it will not work because Flynax not WordPress,

    try to use this code:

    Code:
    Only registered members can view the code.
    Hi Viktor,

    Thanks for your reply but I still cant get it to work. First I copy the exact code that you recommended as follow:
    <div class="fb-comments" data-href="{$rlBase}{$smarty.server.REQUEST_URI|ltrim:'/'}" data-numposts="5" data-colorscheme="light"></div>
    But it only show blank gap, could you please taking a look at it again?

  2. #12
    Hello Wei,

    I think you forgot about {literal}smarty code{/literal} tags.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #13
    Hi Viktor, I have tested around and still doesn't work. I created a content box (box style: html)

    This is the content with {literal}

    <div id="fb-root">
    </div>
    {literal}<script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=xxxxxxxxxxxxxxx&version=v2.0" ;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>{/literal}
    <div class="fb-comments" data-colorscheme="light" data-href="{$rlBase}{$smarty.server.REQUEST_URI|ltrim:'/'}" data-numposts="5" data-width="715">
    </div>
    Still blank, but I saw the tag {literal}, please see screenshot below:
    Screen Shot 2015-03-05 at 1.32.50 PM.jpg

    If I removed {literal}, the code is now:

    <div id="fb-root">
    </div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=xxxxxxxxxxxxxxx&version=v2.0" ;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-comments" data-colorscheme="light" data-href="{$rlBase}{$smarty.server.REQUEST_URI|ltrim:'/'}" data-numposts="5" data-width="715">
    </div>
    And i saw a blank gap:
    Screen Shot 2015-03-05 at 1.29.59 PM.jpg

    If I change the code inside data-href="{$rlBase}{$smarty.server.REQUEST_URI|ltrim:'/'}" to a website for example: data-href="http://www.facebook.com" the code in the box will now is:

    <div id="fb-root">
    </div>
    {literal}<script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=xxxxxxxxxxxxxx&version=v2.0";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>{/literal}
    <div class="fb-comments" data-colorscheme="light" data-href="http://www.facebook.com" data-numposts="5" data-width="715">
    </div>
    I will see this:

    Screen Shot 2015-03-05 at 1.38.34 PM.jpg

    I still see the {literal} tag.

  4. #14
    Thanks to Viktor excellent support, everything finally run smoothly

  5. #15
    could you please share with us the solution to implement it on our sites i mean the correct <div class="fb-comments" data-colorscheme="light" data-href="{$rlBase}{$smarty.server.REQUEST_URI|ltrim:'/'}" data-numposts="5" data-width="715">

  6. #16
    +1
    share it with us please, so we all can work it out.

    Also, every solutions on Flynax should be open for all, there will be less ticket to answer and less time to use on support, and use the time use the time spared to develop.

    Make forum for license members only and share everything with us.

  7. #17
    +1 share it with us please

  8. #18
    Finally, what are the correct way to add code for Facebook comment share tab
    share it with us please,

  9. #19
    +1 share it with us please

  10. #20
    +1 share it with us please

+ Reply to Thread