Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add new functionality called "Posts"


  • jankit
    Member

    @jankit

    Hello All,

    I am working on adding a new functionality called “Post” and it should show a list of posts made by a user. So how should I add a new link in BP’s default links which are activity, profile, messages etc Also where should I place its php files to pull data and information from the database?

    Regards

    Jankit

Viewing 3 replies - 1 through 3 (of 3 total)

  • Boone Gorges
    Keymaster

    @boonebgorges

    I’m afraid i don’t entirely understand. Are ‘posts’ like ‘blog posts’?

    Or perhaps it makes sense to think of them as a special kind of activity item? In newer versions of BuddyPress there is the ability to add metadata to activity items. Look in bp-activity.php for functions like bp_activity_get_meta and bp_activity_update_meta. An activity type called ‘posts’ could then be defined and displayed differently.


    ecurtain
    Participant

    @ecurtain

    Jankit, I think I have an idea of what you mean:

    Where members have tabs for their activity stream, friends, groups, etc…there would be a new tab to display their posts.

    This would behave like the normal WP loop, showing posts in all or a particular category, but showing only posts by that user.

    Is that what you have in mind? I’m converting my CMS site to BuddyPress (and deep in writing migration scripts), so I’m interested in this as well. Boone’s suggestion may be the way to go; will look into it.


    Andy Peatling
    Keymaster

    @apeatling

    I don’t see much point in this, just use the activity stream loop and filter on ‘new_blog_post’. BuddyPress used to have this functionality, but it was not very efficient and the activity stream handles it better.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add new functionality called "Posts"’ is closed to new replies.
Skip to toolbar