BuddyDev

BuddyBlog Update and Bug Fixes

Today, I am really happy to put the update for BuddyBlog plugin. First of all, I will like to thank you all for the tremendous response to BuddyBlog plugin. This update fixes a ton of issues and adds a few features.

Updates:-

  • Fixes delete post issue from front end
  • Fixes Pagination issue on profile page
  • Fixes Page title for BuddyBlog Pages(Single/Archive pages)
  • Adds post count in the profile menu
  • Adds a trick to open edit page if you click on the title of a post which is not yet published
  • Now, my-posts slug name can be changed via custom slug
  • Adds Custom permalink support to single post view on profile ( You can enable post slug instead of post id on single post page)
  • And some more cleanup here and there.

If you are just starting with BuddyBlog, please read my release post here.

Screenshots:-

Custom permalinks using slug:-

Posts count in the nav:- Paginated view url:- Page titles:-

Customizing Permalinks & Slugs:-

By default, the plugin keeps the old permalink structure(e.g http://example.com/members/username/buddyblog/my-posts/post_id), If you want to change that to something like this http://example.com/members/com/blog/posts/some-nice-looking-post-name, you can do that.

Using the slugs in permalink:-

Please put the following line in your bp-custim.php

To change the main slug from buddyblog to say just blog, you can define as below

To change the sub action slug 'my-posts' to say 'posts' you can use following:-,

Download & Installation:-

https://buddydev.com/plugins/buddyblog/

Please do share your feedback and further suggestions in the comments below.

20 Responses to BuddyBlog Update and Bug Fixes

  • Many thanks for the recent updates to the plugin! Especially the additions like custom permalinks! I've already installed it and are testing out the functions! I also jumped on getting a premium account so I can get further support and hopefully help the plugin grow! πŸ™‚

    I had a few questions while I'm trying the features out:

    The big one is that all post types are still redirecting to the member's blog page. We're looking for all user post marked in the "blog" category to be restricted to just the single post view by user on the user profile. Any other post category will be normal wordpress pages for news.

    Is there anyway to remove the category and tag options from the buddyblog front end? Since we're restricting all user blogs to the "Blog" category, they would have no need for any other category or tag option. Also since the uploads functions doesn't work at the moment, I would like to remove that as well until media uploader integration is up and running down the line.

    What is the function code to add post ids to the end of blog post?
    (http://example.com/members/com/blog/posts/some-nice-looking-post-name/1234)

    Is there anyway to remove the "my-posts" part of the permalinks?
    (So instead of http://example.com/members/com/blog/my-posts/some-nice-looking-post-name/1234/ it would be: http://example.com/members/com/blog/some-nice-looking-post-name/1234

    Is there a way to make the buddyblog front end editor redirect to the actual created post after they finish publishing it?

    Hopefully I can find some answers to these questions! Thanks again Brajesh for all the hardwork on this plugin! πŸ˜€

    • Hi Sam,
      sorry for the delayed reply.
      Thank you for getting a membership, I really appreciate that. It helps us a lot πŸ™‚

      1. here is the code to link only the posts from blog category to user profile. rest will be linked to the normal blog page
      https://buddydev.com/snippets/212-show-posts-from-a-perticular-categor/

      2. Yes, Category and tag can be removed, filtered and uploads can be disabled. Here is the code
      https://buddydev.com/snippets/230-buddyblog-change-settings-example-to-post-to/

      3. There is no way to add the post id after the slug. You can either use slug or the post id
      4. BuddyPress does not allow removing current action, so we may rename the my_posts as in the code above but can not remove it completely.

      5. Redirect to post on create/save. Here is the code snippet
      https://buddydev.com/snippets/221-buddyblog-redirect-to-single-post-on-new-post-cre/

      Hope that helps πŸ™‚

      • Many thanks Brajesh!

        You covered a great deal of what I was looking for! This all helps tons! πŸ™‚

        I was wondering for the Category and tag filter code you made could be adjusted so that any post created in the profile blog would be automatically categorized in the blog category without the user needing to see or check the actual blog category check box below in the front end. Since it's all going to same category in the first place, one less thing for the user to check would make the process of posting a blog a bit more easier!

        Also, is there a way to have the "My Post" section only display post created in the "blog" category instead of all post created by the user? Since the news writers will be using the blog as well, it would be best to just have the blog section display just blog post.

        A big thanks again for all the help you've already provided for this plugin! I can't wait to launch this new site with this feature built in! Any word on the better media uploader integration and Front End post editor additions for future releases?

        Thanks once again Brajesh! πŸ˜€

        • Hi Sam,
          Thank you.
          My apologies for delayed replies.

          Please Use css to hide those two fields. It will be automatically used for the post .

          About the posts created only in blog category, yes, We are simply using WP_Query to list the posts. Please take a look at buddyblog/templates/buddyblog/posts.php and pass cat=>the id of blog category.

          That should do it.

          I have manged to add the uploader and It looks awesome. I am looking at the restrictions and will have some update for front end post by the end of the month πŸ™‚

        • Thanks once again for the great help with this Brajesh! πŸ˜€

          That manage to do the trick for what I was looking for! Though now in the blog tab is still counting non-Blog categories in the total. What file and where in it do I need to edit so that the blog tab only counts blog categories?

          Thanks again in advance Brajesh! Can't wait for the further updates at the end of the month! πŸ˜€

  • Hey Brajesh thanks for directing me to this post.

    When using BuddyBlog with a standard install of WP and BP I was able to customise blog post permalinks via WP Admin using something like /%author%/%postname%/

    This seems easier than customising the URLs by adding code to bp-custom.php

    Are there any drawbacks of using my approach?

  • A drawback I can see is duplicate content. A blog post seems as though it can be accessed by two URLs. For example username/post-name and also members/username/buddyblog/my-posts/post-id

  • Hi Brajesh! I hope you are doing well!
    I had some more questions about Buddyblog!

    At the moment I'm using the "buddyblog_show_posts_on_profile" filter on my Buddyblog. Problem is, the post in the blog section of profiles all have comments off, even when comments on are toggled on in the front end poster editor. Are comments just disable from the profile by default or is there a way to turn them on?

    Thanks in advance Brajesh!

  • Hi Brajesh

    I wanted to ask about pagination links.

    I currently have setup this which is good:

    members/username/buddyblog/my-posts/page/2/

    How difficult would it be to have something like the following?

    members/username/page/2/

  • @sbrajesh – Adding to my last post, picking up on something you said in an earlier comment "BuddyPress does not allow removing current action" – may I ask why you can't remove the current action? Does it have something to do with the actions variables needed for paging? Hoping you can give some info on this?

  • Hi again Brajesh! Hope you are doing well! πŸ˜€

    Just checking in again to see if there was any updates to the Buddyblog plugin yet. Any status on the better media uploader integration and Front End post editor additions for future releases?

    Also If you had any advice on fixing the counter int he blog tab of profiles? I managed to implement your suggestion to change the WP_Query in buddyblog/templates/buddyblog/posts.php and pass cat=>the id of blog category. Though now in the blog tab is still counting non-Blog categories in the total. What file and where in it do I need to edit so that the blog tab only counts blog categories?

    Another question! At the moment I’m using the β€œbuddyblog_show_posts_on_profile” filter on my Buddyblog. Problem is, the post in the blog section of profiles all have comments off, even when comments on are toggled on in the front end poster editor. Are comments just disable from the profile by default or is there a way to turn them on?

    Thanks again in advance Brajesh! πŸ™‚

  • @sbrajesh

    Found a bug in BuddyBlog. On a fresh WordPress install get_the_date() returns the creation date of a post. This is the intended behaviour of the function. However, if a post is updated with BuddyBlog, get_the_date() no longer returns the post creation date. It returns the post last modified date. This is unexpected and not how get_the_date() is intended to work.

    Hoping there is a fix?

  • Great plugin! Thanks so much.

    I was wondering how I'd change the label on the Buddypress Profile Links from "Blog" to something else.

    I tried adding this to bp_custom, "define('BP_BUDDYBLOG_LABEL','Stories');" but didn't have any luck. Any ideas?

    • Hi Amanda,
      I am sorry for the delayed reply. There is no constant at the moment for that purpose. Please use poedit to translate the included languages file.

  • Hi,

    I am using this plugin but unable to add a gallery/album for the blog.

    How can I also add the blog to a specifi categoy?

    I am looking for the below mentioned features, where users will be able to add photo albums for their blogs and once the blog is published, it should appear in the activity stream (For example: User XXXXXX has posted a blog on XXXXXXXXXX showing the featured image)

    Will I be able to get this done through bp galley plugin. I see that the cost is $25, will I get the updates for this plugin when ever wordpress releases a new version?

    • Hi Ajay,
      Thank you for the comment.
      I am sorry for the inconvenience. This plugin does have the functionality to allow uploading of N number of files( Though that needs code to activate).

      The gallery can not be enabled on BuddyBlog using BP Gallery or other plugin. Please give me a week and I will integrate WordPress Media uploader on the front end to make it easy.

      Thank you
      Brajesh

  • How do I hide the "Blog" link to non-authors? I only want those with the role of 'author' to see it

    • Hi Jeffrey,
      It is not possible at the moment to remove this. I will add it in a future release.

  • Dom #

    is it possible if i want to delete 'my-post' from url?

    • Hi Dom,
      It can not be deleted but if you want, you can rename it to something else by putting a line in bp-custom.php like this

      Hope that helps.