test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • meinlabel Friend
    #181815

    hey there,

    i want to display the facebook comment field from standard Joomla Articles in K2 Articles (instead of the cpatcha comment field).
    how i can do this?

    best regards!

    Luna Garden Moderator
    #471546

    The FB comment is an script which is added in the Joomla Articles Layout.
    If you want, you can add this script:

    <script type="text/javascript">
    (function(d){
    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement('script'); js.id = id; js.async = true;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
    ref.parentNode.insertBefore(js, ref);
    }(document));
    </script>

    <div class="fb-comments" data-href="<?php echo JURI::getInstance()->toString(array('scheme', 'host', 'port')) . $this->item->readmore_link; ?>" data-num-posts="2" data-width="576"></div>
    in the end of file item layout of K2.

    meinlabel Friend
    #471570

    thanks a lot!

    meinlabel Friend
    #472908

    Hey Luna Garden,

    i was looking for the k2 item layout? where can i make this change fpr every k2 item in general?
    its an override? please tell me, where i have to change the comment function. i want to replace the standard “k2 comments field” with the “joomla content” facebook comment..

    thanks a lot!
    best regards

    Luna Garden Moderator
    #472959

    <em>@meinlabel 346200 wrote:</em><blockquote>Hey Luna Garden,

    i was looking for the k2 item layout? where can i make this change fpr every k2 item in general?
    its an override? please tell me, where i have to change the comment function. i want to replace the standard “k2 comments field” with the “joomla content” facebook comment..

    thanks a lot!
    best regards</blockquote>
    In JA Wall, layout of K2 is overriden, you can check by go to
    templates/your_template_folder/html/
    There will be a folder name com_k2, what template to edit base on what template you use, you can check by go to :
    1. menu item edit page (go to back-end >> menus >> your Main menu >> Click to menu item has the layout you want to change >> Check what template is using)
    2. in K2 category config page ( go to back-end >> component >> K2 >> Categories >> click on category >> Check what template is using).

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  Luna Garden 12 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum