Do not show comments on Buddypress activity page. - android-activity

I would like the comments on my Buddypress Activity page to be like Facebooks. At the moment, the default shows comments.
I would like it, if the comments did not show on the activity page but shows when the reader clicks through to read the full post.
Any help would be great thanks.

If you're using bp-default then you can edit bp-default/activity/entry.php to display the comments only on the full activity item page - I do believe this page is referred to as the activity 'permalink' or the 'single activity' page.
Wrap the comment output in a conditional check like this:
if ( bp_is_single_activity() ) {
// comment output
}

Related

How to display a single post with wordpress menu?

I have converted a joomla website to wordpress. All categories and joomla articles are converted as wordpress categories and blog post. Now I want to show this posts (articles) with different menus. But I saw I can assign catagories in word press menu. But How can I display a single post with a menu ?
Like I have about us post , for which I want to create a menu. How can I do that ? I can convert those to pages. But I dont want to loose tags and URLs . Can anyone help please ?
Thanks
You can add any post to a menu from the "posts" box in the menu admin screen. If you don't see that box, go to the screen options for the menu screen and check "posts".
There is an option named Custom Links in wordpress menu configuration. Just name label as "About Us", and give your post link in url field.
create separate page template for every single menu. In these page templates write a php code to fetch content from single category. Create pages in admin and assign a page template to each page into admin. This will fetch content from different category on different menu that u want.

How to show facebook comments box multiple times on a page?

I have a page for a bakery site, and on the page, there will be a list of cakes. There will be a picture of the cake, followed by a comments box, to let people comment on that specific cake. Each cake will need to have its own set of comments, separate from each other.
But unless I'm mistaken, facebook comment plugin is linked to a page's url, and can't be shown multiple times?
Is there any way to show it multiple times per page, and to link it individually to each cake, so the comments don't mix up?
But unless I'm mistaken, facebook comment plugin is linked to a page's
url, and can't be shown multiple times?
It can be shown.Though it is linked with your site url,you always have the privilage of appending custom string after the ternerary operator in your URL.
Is there any way to show it multiple times per page, and to link it
individually to each cake, so the comments don't mix up?
The trick here is to make a url unique.
This can be done in various ways:
1)www.something.com#commentbox1
2)www.something.com?section=commentbox1
I am using this on my current website where there are more than 10 comment boxes:http://www.arrowlife.com/
In addition to unique anchor tags per product, you may also add the product ID in a query string such as www.yoursite.com?productID=44
In my case I was dynamically creating a div showing the product detail. It was also necessary to force the Facebook script to show the comment section using the FP.XFBML.parse command

Like button not working properly on site, stays depressed

On my blog I added the like button to the end of the posts. I have had it installed for about seven months now and it still does not work properly. I added the Javascript SDK and then the appropriate code to my Blogger template (develops.facebook.com) and while it appears on the blog it does not work properly.
Basically, if you click "like" at the end of any post, it will appear in the person's newsfeed but NOT as the individual post. Instead, the generic homepage of "Bases and Baskets" appears in the newsfeed. The interesting thing is that even though the generic logo and blogger description appears, if you click the link itself it sends you directly to the appropriate page. Not sure why...but as you could imagine I would prefer it to work properly and show the article. Also, I want the image at the beginning of the post to appear rather than my Facebook page's profile picture (which you can see here).
Not only is this a problem, but if you click "like" at the end of any one article, the like button remains depressed for ALL posts on the site. For example if one "likes" article A, and ventures to article B, the like button at the end of article B is depressed. Furthermore, the "like" tally at the end of ALL articles is exactly the same (~615).
I can attach a couple pictures that hopefully help, as well.
This has been quite frustrating as you could imagine, and became even more so when I made a new blog, Left Coast Chronicle, recently and everything works! If anybody can help me fix this I will give you all of the info I have to help (email address, chat info, complete HTML template of my blog) if you need it.
Thank you so much!!
First of all: omg...this page is HUGE to load!
Secondly: you have missed one important parameter in your like button: the href attribute.
Your script:
<fb:like font='' href='' layout='button_count' send='false' show_faces='false' width='450'></fb:like>
Solution:
<fb:like href='LINK_TO_BLOG_POST' layout='button_count' send='false' show_faces='false' width='450'></fb:like>
Otherwise, the like button will like the current site it sits on (which is - you guessed it - the home page http://www.basesandbaskets.com/)
Third: you have the <div id='fb-root'></div> before each like button. Please use this only ONCE!
Hope this helps.

A graph-api post with a caption fails to show caption in friends feed

Posts show with caption on the original timeline but in a friends feed, the domain of the link is used instead of the caption. This is a big problem for us - clients are complaining, they want to see the proper caption on all iterations of the post.
Steps to repro:
1) log onto facebook
2) go to http://developers.facebook.com/tools/console/
3) enter this code (adapted from example code):
<fb:login-button scope="read_stream,publish_stream">
Grant Permissions to make more examples work
</fb:login-button>
<button onclick="doPost()">Post to Stream</button>
<script>
window.doPost = function() {
FB.api(
'/me/feed',
'post',
{ message: 'testing caption friend view',
link:'http://xetra.tunegenie.com',caption:'caption' },
Log.info.bind('/me/feed POST callback')
);
};
</script>
4) click "run code" button under code input box
5) click the "post to stream" button (you may need to click the button to add permissions first)
6) note that this post is on your logged in users timeline with the caption text in place of the link (if it is not you may need to click the "add permissions" button")
7) log in with a friend of this user and note that the caption text is not used here and is replaced with the domain of the link used.
Expcted: the caption text should be carried to all iterations of a post.
I think this is a facebook bug, but I was not able to enter a bug report there (maybe you need special privileges for that?) as it appears you should be able to as described here:
http://developers.facebook.com/blog/post/559/
any info, confirmation or workarounds would be greatly appreciated.
From your description it definitely sounds like a FB bug. You have to start searching for a bug in order to create one.
Just start typing text in the bug search bar (not the main top search), and you'll see a "Create a bug" option in the resulting dropdown menu -

get fbml comments to automatically show form

I'm writing facebook app in fbml (not in iframe).
I added comments with <fb:comments ...> and it appears to work.
However, to add a comment, user has to click Add a comment... link to see the textarea and post button.
I am wondering is there a way to automatically show the form?
I want it to really look like here:
developers.facebook.com/docs/reference/plugins/comments
(with or without the like button)
well... to answer my own question:
it's documented at
developers.facebook.com/docs/reference/fbml/comments
The showform parameter.
Maybe it will help someone.