Group Mods

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

Support: Installing BuddyPress

Problems with getting it running.

[Resolved] Another request for Theme Help – Trying to get Shoutbox theme to work in BuddyPress (8 posts)

Started 3 months, 2 weeks ago by: rhek

  • Profile picture of rhek rhek said 3 months, 2 weeks ago:

    Hello,

    This is another theme help request. I have spent about a week, off and on, trying to get the theme working. I think my problem is I am trying to make it harder than it should be. I have a habit of doing that.

    I currently have a test site at http://thorsoft.com/cyclistzone. The site is really slow, but I think that is because it is on a GoDaddy Windows hosting account which works great for .Net coding, but not too much for Wordpress. We are setting up a PSek hosting account for the live site.

    I have reinstalled the theme and automatically moved the template files using the BP Compatibility plugin. So I am on Step 3 and here is where I seem to be stuck. I have tried to follow some of the other suggestions I have seen here, but I am not getting anywhere.

    I have fresh copies of header-buddypress.php, sidebar-buddypress.php, and footer-buddypress.php in the theme folder. My initial thoughts were that sidebar-buddypress.php would need changed and
    maybe header-buddypress.php. I think footer-buddypress.php is not needed.

    I have 2 screenshots. The first is the home page which is fine. The second is the BuddyPress Profile page which is a mess.

    Home Page: http://www.thorsoft.com/shoutbox-home.png
    Profile Page: http://www.thorsoft.com/shoutbox-profile.png

    Here are some of the theme files:

    Page.php: http://pastebin.com/wykNeRLK
    Index.php: http://pastebin.com/KRzd92f9
    Header-buddypress.php: http://pastebin.com/aqReGuib
    Sidebar-buddypress.php: http://pastebin.com/uSmvqezL
    Footer-buddypress.php: http://pastebin.com/aemRUcEC

    If someone has a couple minutes and could guide me in the right direction I would greatly appreciate it. Maybe once I see what needs to be done I will be able to get my head around it and help someone else in the future.

    Thanks,
    Rhek

  • Profile picture of @mercime @mercime said 3 months, 2 weeks ago:

    == The site is really slow ==
    You know you’re right. And you only have BuddyPress and BP Template Pack plugins activated. Consider moving away from Windows server for WP/BP installation.

    == I think footer-buddypress.php is not needed. ==
    And you’re right again. Delete footer-buddypress.php from your shoutbox theme folder.

    Open up header-buddypress.php and add the following at the very bottom, below other code:

    <div class='container_wrap' id='main'>
    <div class='container'>
    <div class='template-page content'>

    Save file.

  • Profile picture of @mercime @mercime said 3 months, 2 weeks ago:

    Open up sidebar-buddypress.php and add the following at the very top, above other code:

    </div>

    then add the following at the very bottom of sidebar-buddypress.php [updated]

    </div>
    <?php if ( bp_is_register_page() ) : ?>
    	<script type="text/javascript">
    		jQuery(document).ready( function() {
    			if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
    				jQuery('div#blog-details').toggle();
    			jQuery( 'input#signup_with_blog' ).click( function() {
    				jQuery('div#blog-details').fadeOut().toggle();
    			});
    		});
    	</script>
    <?php endif; ?>
    </div>

    Save file.

    Upload both to wp-content/themes/shoutbox

    Use some or all of the styling mods on BP components used in Twenty Ten http://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/

  • Profile picture of rhek rhek said 3 months, 2 weeks ago:

    Mercime,

    Thank you so much! I thought it should be fairly simple, but I had a mess when I tried to do it. I will study what you did and why and hopefully I can help someone in the future.

    Thanks again,
    Rhek

  • Profile picture of rhek rhek said 3 months, 2 weeks ago:

    Mercime,

    Just curious, you seem to figure out what needs changed pretty quick. Could I ask if you do anything different from the instructions in the BP Compatiblity plugin?

    This is what I was working with…

    http://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/

    Thanks,
    Rhek

  • Profile picture of @mercime @mercime said 3 months, 2 weeks ago:

    You’re welcome :-)

    @rhek I’ve updated the additions to the bottom of the sidebar-buddypress.php above to include necessary script for the register page, please update your file.

    == Could I ask if you do anything different from the instructions in the BP Compatiblity plugin? ==
    Nothing different, just compared the HTML structures to determine whether compatibility could be done via the second method xxx-buddypress.php files or the 1st method (changing 16 template files). See how it’s done in Twenty Ten child theme and Twenty Eleven child themes

    http://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/

    http://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-eleven-bp-1-5/

  • Profile picture of rhek rhek said 3 months, 2 weeks ago:

    Thanks for all your help!

    Have a Great Weekend,
    Rhek

  • Profile picture of @mercime @mercime said 3 months, 2 weeks ago:

    You’re welcome. Marking this as resolved then :-)