Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to edit Activity item layout?

  • I have two similar questions relating to individual activity items and their layouts:

    1) When the user clicks on the date an activity item was posted he is given a url similar to http://www.mydomain.ca/members/admin/activity/117# . The layout for this url is messed up: the site width is confined, sidebars and footers are missing, etc. I’ve identified the layout for this type of url as being defined by entry.php inside the activity folder. The problem is that this same file is also responsible for the layout of the activity items when displayed in the activity streams and changing the file to add sidebars and footers messes up the layout of the streams!

    2) I want the date an activity item is posted to be displayed BELOW rather than next to the activity item.
    Current Example: User became a registered member 1 month, 2 weeks ago
    What I want:
    User became a registered member
    1 month, 2 weeks ago

    I’ve located the source of this layout to be inside a php function called bp_activity_content_body() but the codex says nothing about it and I can’t find where the function is defined in order to edit the layout.

    Anyone out there able to help?

Viewing 1 replies (of 1 total)

  • @mercime
    Participant

    @mercime

    #1) – If the user clicks on the date of an activity item re a blog post, the user is brought to the single blog post .
    – If the user clicks on the date of an activity item re a forum topic, the user is brought to the forum topic page
    – If the user click clicks on the date of other activity items, the user is brought to members/single/activity/permalink.php page. You could add HTML structure just after get_header as well as just before get_footer.

    #2) You can tackle that by adding something this at the bottom of your stylesheet:
    `div.activity-header p a.activity-time-since {
    clear: left;
    float: left;
    margin-left: 15px;
    margin-top: -30px;
    }
    .activity-inner > p:first-child {
    margin-top: 20px;
    word-wrap: break-word;
    } `
    Adjust to taste

Viewing 1 replies (of 1 total)
  • The topic ‘How to edit Activity item layout?’ is closed to new replies.
Skip to toolbar