Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do you customise the bp_activity_action() and get the permalink


  • kraigg
    Participant

    @kraigg

    Hi all,

    In the activity stream I’m trying to get the permalink from the activity header.

    The activity header is in the following format by default:
    – replied to the topic in forum
    – started the topic in forum

    I’m trying to get the which is a hyperlink. Any idea how to do this?

    I’ve tried bp_activity_get_permalink( bp_activity_id() ); but it only grabs the ID of the current topic, and it doesn’t come in the form of a hyperlink.

    Can anyone please help me?

Viewing 1 replies (of 1 total)

  • kraigg
    Participant

    @kraigg

    I had to repost this, as my original topic stripped out a lot of the information
    ———————————————————————————

    Hi all,

    In the activity stream I’m trying to get the permalink from the activity header.

    The activity header is in the following format by default:
    – (username) replied to the topic (topic name) in forum (forum name)
    – (username) started the topic (topic name) in forum (forum name)

    I’m trying to get the (topic name) which is a hyperlink. Any idea how to do this?

    I’ve tried bp_activity_get_permalink( bp_activity_id() ); but it only grabs the ID of the current topic, and it doesn’t come in the form of a hyperlink.

    Also, is there a way to strip out (username) and (forum name) into separate variables?

    Can anyone please help me?

Viewing 1 replies (of 1 total)
  • The topic ‘How do you customise the bp_activity_action() and get the permalink’ is closed to new replies.
Skip to toolbar