comments

Add facebook comments inside a 'lightbox'

亡梦爱人 提交于 2019-12-24 08:47:47
问题 I am building a website to showcase some photos. The photos are viewed using a lightbox like effect. I want to add facebook comments inside the 'lightbox' but the comments doesn't load. $(function() { $('.pics').click(function(){ ... ... $(".comments").html("<div id=\"fb-root\"></div><script src=\"http://connect.facebook.net/en_US/all.js#xfbml=1\">" + "<" + "/" + "script>" + "<fb:comments href=\"example.com\" num_posts=\"5\" width=\"800\"></fb:comments>"); }); }); Thanks in advance. 回答1: I

Comments à la “click to appear” with jQuery

拥有回忆 提交于 2019-12-24 07:04:58
问题 I have a WordPress blog and I'm trying to make that when a user clicks on "Show comments" the comments section appears with a simple animation.. I used <a href="#comments" id="showcomments">Show comments</a> and then: <script type="text/javascript"> jQuery(function(){ jQuery("#showcomments").click(function () { jQuery("#comments").slideToggle("slow"); }); }); </script> <div id="comments" style="display:none"> ...... </div> This is what I achieved (scroll down to "Commenta l'articolo!"): http:

Embeded comment paging in mongodb

≡放荡痞女 提交于 2019-12-24 04:32:17
问题 if I got a collection for storing Articles with it's Comments embedded, when retriving data from db, I will get a Article object with a completely Comment list, support there are a lot of comments, so this could be a problem of loading efficience, how can I handler this by paging Comments? do I have to use a seperate collection for Comments? or what else? thanx in advance. 回答1: You looking for the $slice operator. To retrieve comments by paging you need code like this: db.articles.find({},

Embeded comment paging in mongodb

你说的曾经没有我的故事 提交于 2019-12-24 04:32:07
问题 if I got a collection for storing Articles with it's Comments embedded, when retriving data from db, I will get a Article object with a completely Comment list, support there are a lot of comments, so this could be a problem of loading efficience, how can I handler this by paging Comments? do I have to use a seperate collection for Comments? or what else? thanx in advance. 回答1: You looking for the $slice operator. To retrieve comments by paging you need code like this: db.articles.find({},

Can JAXB get XML comments when unmarshalling?

吃可爱长大的小学妹 提交于 2019-12-24 03:52:33
问题 Im parsing a XML with JAXB but the XML have a comment at end and i want parser it to store it. Xml: <xml>...</xml> <!--RUID: [UmFuZG9tSVYkc2RlIyh9YUMeu8mgftUJQvv83JiDhiMR==] --> I need to get the String of the comment. JAXB have a function to give me the comment ? 回答1: You could use JAXB in combination with StAX to get access to the trailing comment. import javax.xml.bind.*; import javax.xml.stream.*; import javax.xml.transform.stream.StreamSource; public class Demo { public static void main

Javadoc @link references in Android Studio to build.gradle

走远了吗. 提交于 2019-12-24 03:19:19
问题 First of all, this is not a duplicate question. This question is inspired by the comment on this post. I know how to do Javadoc comments in Android Studio. And I am able to link java files using @link like this: {@link FileName#methodName()} some text to display but I am not able to figure out a way to link build.gradle file in the comments. The reason why I need this that we are storing buildConfigField in the Gradle file like this: buildTypes.each { it.buildConfigField('int', 'LANGUAGE

How do I migrate Facebook Comments from one site to another?

[亡魂溺海] 提交于 2019-12-24 02:43:23
问题 Hi i'm The owner of a Facebook app with this ID: 187382088033833. I've made new website, and i want to recover my old comments made with my application. E.g. in this page, in the old version i got a lot of comments: http://www.youris.com/Environment/Bees/Bees_restored_to_health_in_Italy_after_this_springs_neonicotinoidfree_maize_sowing.kl why now i can't see the old comments? can you help me? 回答1: According to the Facebook Comments Social Plugin documentation, comments are tied to a URL for

Anonymous posting facebook comments?

孤人 提交于 2019-12-24 02:02:50
问题 Based on this https://developers.facebook.com/docs/reference/plugins/comments/ people can post using other third party services, but can users post anonymously on a web-site using FB comment system? 回答1: AFAIK, it is impossible to post anonymously using Facebook's comment system. Whatever the website, your comment will be associated to your facebook profile, if you are commenting using the facebook log in. 来源: https://stackoverflow.com/questions/10463718/anonymous-posting-facebook-comments

Xcode4 - Is there a key binding for block comments?

两盒软妹~` 提交于 2019-12-24 01:44:39
问题 I'm new to Xcode4 and looking for a key binding that inserts block comments to methods and classes. For Example a written function: void test(int i) {}; I'd like to have an block comment to this: /** test * * @param int i * @return void */ void test(int i) {}; 回答1: command option / /// <#Description#> /// /// - Parameter i: <#i description#> func test(i: Int) {} 来源: https://stackoverflow.com/questions/5497063/xcode4-is-there-a-key-binding-for-block-comments

Getting Disqus html code to show in source for SEO purposes

限于喜欢 提交于 2019-12-24 01:37:13
问题 Recently started using Disqus on a site & was wondering if there was any way possible to have it so the actual html code will show up in the source page? I noticed this site is doing it.. http://adamkaras.com/blog/2009/06/24/disqus-custom-css-styling-in-3-easy-steps/ But I'm not sure how? 回答1: The WordPress Disqus plugin and Drupal's plugin use the Disqus API to mirror all comments into their local databasees. There may be equivalent plugins for other CMSes, and it'd be fairly easy to