Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Single Activity URL

  • @meruud

    Participant

    Hello all,

    I don’t like the fact that the activity feed shows all the comments, when there are a lot of people active on the site an insane amount of comments will be shown which really kills the fun of browsing through the activity feed.

    So I decided to remove comment-ability (and viewabilty) and that when I user clicks on “Comment (0)” it will redirect them to the single activity entry where you can see all the comments and reply as you wish. But I have a difficult time getting the url of the single entry.

    I know entry.php and permalinks.php but how do I get the url of the specific entry?
    Is there something as get_entry_url() ?

    The default buddypress theme has
    `

    `
    where the header of the activivity is defined which shows
    ` Administrator replied 1 hour, 36 minutes ago `
    when you click on the time you go to the single entry.
    Which call is used for this?

    Thanks in advance, I appreciate the help.

Viewing 1 replies (of 1 total)
  • @meruud

    Participant

    Found the answer, was looking at the wrong place.
    Not sure if this is the way to go but to get the permalink of the activity use:
    `bp_activity_get_permalink`

    So I used a variable then echo the variable in the comment link like this:
    `activity->id, $activities_template->activity ) ?>
    <a href="” class=”button acomment-reply bp-primary-action” id=”acomment-comment-“><?php printf( __( 'Comment %s‘, ‘buddypress’ ), bp_activity_get_comment_count() ); ?>`

    UPDATE:
    Use “
    Thanks,

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Single Activity URL’ is closed to new replies.
Skip to toolbar