-
AuthorPosts
-
meinlabel Friend
meinlabel
- Join date:
- October 2012
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 2 times in 1 posts
October 30, 2012 at 12:56 pm #181815hey 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 ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
October 31, 2012 at 8:14 am #471546The 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.1 user says Thank You to Luna Garden for this useful post
meinlabel Friendmeinlabel
- Join date:
- October 2012
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 2 times in 1 posts
October 31, 2012 at 1:08 pm #471570thanks a lot!
meinlabel Friendmeinlabel
- Join date:
- October 2012
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 2 times in 1 posts
November 14, 2012 at 12:55 pm #472908Hey 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 regardsLuna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
November 15, 2012 at 3:59 am #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 totemplates/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).1 user says Thank You to Luna Garden for this useful post
-
AuthorPosts
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