Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Single activity item display layout and style discrepencies (16 posts)

Started 2 years, 2 months ago by: snark

  • Profile picture of snark snark said 2 years, 2 months ago:

    Trying to figure out how to make the single Activity item display pages match the style of the rest of the site, and also to understand why this difference exists in the first place. You the discrepancy in action here on this single activity item display page of testbp.org:

    http://testbp.org/members/hollers105/activity/68390/

    Compare that to the other pages, and you can see that the page is a few hundred pixels narrower.

    Now, I see in the style sheet this code:

    body.activity-permalink {
    min-width: 960px;
    max-width: 1250px;
    }

    – and changing the max-width to 1250px works to increase the page width to match, but I’m having other display issues on the individual Activity display pages, including:

    The “content” and “padder” divs are missing
    The sidebar is missing

    I want to make this page match the others, but I can’t figure out where and how it is making the layout changes above that I want to remove. Or if it has a good reason for behaving the way it does, since as far as I can tell this is a deliberate choice and not a bug.

  • Profile picture of nexia nexia said 2 years, 2 months ago:

    i have the same problem… it’s default to the original theme, and as i add a block of widgets just above the footer, the look is horrible… ;(

  • Profile picture of Andy Peatling Andy Peatling said 2 years, 2 months ago:

    In a child theme you can change this to whatever you’d like (add back the sidebar and content div etc). Just override this template file:

    members/single/activity/permalink.php

  • Profile picture of nexia nexia said 2 years, 2 months ago:

    would be amazing if simply put as a popup… we click the activity and a popup show the content of it… :)

  • Profile picture of r-a-y r-a-y said 2 years, 2 months ago:

    @nexia

    It’s doable. You’ll need to modify the theme and use a lightbox-type script.

  • Profile picture of nexia nexia said 2 years, 2 months ago:

    i know it is doable @r-a-y, i did it already… ;) the point is a suggestion… rofl

  • Profile picture of r-a-y r-a-y said 2 years, 2 months ago:

    Good job! ;)

  • Profile picture of PH (porsche) PH (porsche) said 2 years, 2 months ago:

    Wow. judging from the forum posts; transitions to 1.2 is not smooth.. and many dont like the changes. cant wait for the next set of changes that will force me to redeploy my site again!

  • Profile picture of Paul Gibbs Paul Gibbs said 2 years, 2 months ago:

    PH: I’ve just read a post where you’ve written exactly the same. I don’t even see how *this* post has anything to do with a 1.1-1.2 upgrade. Please keep on topic and your posts relevant to the thread.

  • Profile picture of agrundner agrundner said 2 years ago:

    @apleating thanks for pointing us to the location of the template file. Easy enough to fix for a child theme, though it probably would have been better if the activity permalink page template followed the theme’s default template.

    Fix:

    1. In your child theme create the following folders members/single/activity/
    2. Copy over permalink.php from the default bp theme (/wp-content/plugins/buddypress/bp-themes/bp-default/members/single/activity/permalink.php)
    3. Modify the permalink.php code to show the following — replace the asterisk with the appropriate tag:

    *?php get_header() ?*

    *div id=”content”*
    *div class=”padder”*

    *div class=”activity no-ajax”*
    *?php if ( bp_has_activities( ‘display_comments=threaded&include=’ . bp_current_action() ) ) : ?*

    *ul id=”activity-stream” class=”activity-list item-list”*
    *?php while ( bp_activities() ) : bp_the_activity(); ?*

    *?php locate_template( array( ‘activity/entry.php’ ), true ) ?*

    *?php endwhile; ?*
    */ul*

    *?php endif; ?*
    */div*

    */div*
    */div*

    *?php locate_template( array( ‘sidebar.php’ ), true ) ?*

    *?php get_footer() ?*

    #####################

    In your child’s style.css file add:

    body.activity-permalink {
    min-width: YOUR-PIXEL-NUMBER !important;
    max-width: YOUR-PIXEL-NUMBER !important;
    }

  • Profile picture of stwc stwc said 2 years ago:

    @agrundner Thanks for that — one of the thousand little things I noticed and forgot and was going to go back to. And just did!

  • Profile picture of brayne Brayne said 1 year, 9 months ago:

    I simply removed the css code

    body.activity-permalink

    altogether and it worked nicely for me.

  • I have spent a couple of days trying to find out how to do this on my child theme. Thanks a lot now nealry fixed except for some reason the styling on my side bar on the single activity page is all over the place compared to the sidebar on all my other pages. ?

  • Profile picture of remotedevice remotedevice said 1 year, 5 months ago:

    @brayne thanks – so simple

  • Profile picture of James James said 1 year, 2 months ago:

    hi @nexia,

    wouldn’t you mind sharing your approach on activity-popup, or at least some direction on how to do it?

    thanks.