Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)
  • Oops. Just started a new topic about this here… http://wordpress.org/support/topic/achievements-in-buddypress-activity?replies=1

    I seem to have the same issue of achievements not showing up in the activity stream. I get the notification but nothing permanent in the stream.

    No. It does not. I’ve often thought that it would be quite useful to have some default achievements to get you going rather than starting from scratch but it’s really straightforward to add your achievements and how you want them to be awarded.

    Thread Starter magichew

    (@magichew)

    Final Answer!

    This is the code that sits in my sidebar.php file. The code checks to see if it’s a BP docs post type or archive page and doesn’t show the sidebar if it is. Then it checks to see if there should be a sidebar on the page and shows it if there should be…

    <?php if ( 'bp_doc' == get_post_type() || is_post_type_archive( 'bp_doc' )  ) : ?>
    <?php else : ?>
    <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
    		<div id="secondary" class="widget-area" role="complementary">
    			<?php dynamic_sidebar( 'sidebar-1' ); ?>
    		</div><!-- #secondary -->
    	<?php endif; ?>
    <?php endif; ?>
    Thread Starter magichew

    (@magichew)

    Implemented these fixes and everything works as it should. Thank you.

    Thread Starter magichew

    (@magichew)

    No BBPress. I’ll try what you suggest in the link.

    I’m using TwentyTwelve and can’t deactivate any plugins as they’re all BuddyPress which would defeat the object.

    I’ll let you know how I get on.

    Thanks again.

    Thread Starter magichew

    (@magichew)

    Just for completeness.

    Adding the bod.archive rules effected other wordpress pages such as the post archive pages.

    The rule to add was body.tax-bp_docs_tag

    I have a twenty twelve child theme that I could upload to dropbox for anyone who might find it useful. Just let me know.

    Thread Starter magichew

    (@magichew)

    Hi

    I’ve tried the one that you’ve linked to which the functionality sounds perfect but it doesn’t work at all for me.

    When I activate the plug in and leave the dashboard for my site I just get a blank page whether it’s a BP page or not.

    Any thoughts?

    Thread Starter magichew

    (@magichew)

    I’ve noticed that there was the CSS class of full-width applied to the body tag on full width pages.

    I first thought about trying to add that class somewhere in the BP Docs files so that it’s added to every BP Docs page.

    I found where the class is added (includes/compontent.php) line 1003 but then I thought that this (as a lot of this so far) isn’t very upgrade proof.

    The simpler solution for me was to apply the CSS rules to the body.bp-docs and body.archive classes.

    I have it all working as required.

    Now I need to move my changes from my sidebar.php to a child theme to maintain update/upgradeablilty.

    Apologies for so many posts but I thought it might be useful to others who might want to do the same as I.

    Thread Starter magichew

    (@magichew)

    Currently have the above working for individual docs pages. Would love to get this working for the docs directory page at /docs and the archive pages.

    Sidebar doesn’t show and the secondary div isn’t in the html but for some reason the css for the primary is still set to 66%.

    Thread Starter magichew

    (@magichew)

    Got it.

    In the sidebar.php file add the conditional statements.

    I’m using twenty twelve and so there was one in there already (if theres widgets show the sidebar, if not then don’t).

    I just joined in with this one and said if the page is a bp_docs page don’t show the sidebar, if it isn’t then check to see if there’s any widgets, if there are show the sidebar, if there’s not then don’t.

    Code looks like this. Not sure if this should be done with an else if or not but it’s working and I’m happy.

    <?php if ( 'bp_doc' == get_post_type() ) : ?>
    <?php else : ?>
    <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
    		<div id="secondary" class="widget-area" role="complementary">
    			<?php dynamic_sidebar( 'sidebar-1' ); ?>
    		</div><!-- #secondary -->
    	<?php endif; ?>
    <?php endif; ?>
    Thread Starter magichew

    (@magichew)

    Okay. I’m starting to get somewhere with conditional formatting.

    I’ve used…

    <?php if ( 'bp_doc' == get_post_type() ) : ?>
    <?php else : ?>
    <?php get_sidebar(); ?>
    <?php endif; ?>

    to check to see if the page is a bp_doc and if it is then don’t show the sidebar, if it isn’t then do show the sidebar.

    I swapped the <?php get_siderbar(); ?> in my theme’s page.php file and it works.

    The problem that I have now is that my CSS isn’t doing the business and expanding my main content area to 100% width like it should when I remove all my widgets from the sidebar using the dashboard menu.

    EDIT:
    I’ve noticed that my secondary div where my sidebar usually would be still shows up which is why the primary div isn’t filling all the way.

    I’ll keep plugging away.

    Thread Starter magichew

    (@magichew)

    Thanks evrenk

    That’s kind of what I’m looking for but not quite. Doing that loses all of the styling and pushes my side bar down the page.

    I can get the look via CSS is the web inspector hiding the side bar and setting the main div to 100% but obviously this doesn’t stick.

    I’m sure there’s a technical reason why it’s not available but it’d be great if I could just choose a full width template.

    Thread Starter magichew

    (@magichew)

    I’ve used private buddy press on another site but I’m sure it was this one as this is the only one that I’ve had installed.

    Either way I’m grateful for your contribution and look forward to your next plugin.
    If I install the version from github will there be an upgrade path via the WordPress dashboard when it eventually hits the repository?

    Thread Starter magichew

    (@magichew)

    You’re absolutely right and I agree that you’re damned if you do and you’re damned if you don’t.

    I’m sure that this plug in used to allow me to chose the pages to block, rather than choosing the pages to allow. It’s not practical for me to choose the pages to allow as there are so many and every time I make a new one I’ll need to add it to the allow list.

    It was much better when I could simply block the activity pages etc.

    I really appreciate your work on the plugin, I certainly could not execute anything close to this.

    This issue appears to be solved in the version of Twenty Twelve that comes with the nightly build of the latest WordPress.

    Click here to download it.

    Browse to wp-content and find the Twenty Twelve folder. Replace your existing Twenty Twelve folder with this new one and shazam… pages will have any featured image you set.

Viewing 15 replies - 1 through 15 (of 33 total)