Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Compatibility with InStyle Theme

  • @haxs1990

    Member

    I have been trying to get this running for quite some time but i don’t understand Step 3 of BP Compatibility which seems to be the problem
    (sidebar is on footer)
    I have little knowledge of coding

Viewing 16 replies - 26 through 41 (of 41 total)
  • @misterbdon

    Member

    Here’s a link to the activity page so you can examine the code if it helps:

    http://bit.ly/o5gG6z

    @misterbdon

    Member

    @mercime

    Participant

    Thanks for the link. The Sample Page made it all clear. I have revised all codes added to the bottom of header-buddypress.php and at the top and bottom of sidebar-buddypress.php in this post.

    As for donations, feel free to donate :-)
    American Red Cross – https://american.redcross.org/site/SPageServer?pagename=ntld_main
    Jesuit Refugee Services – https://www.jrsusa.org/donate.cfm

    @primesuspect

    Member

    Hello Mercime

    I have same problem.I cant complete step 3.I use Mammoth Theme.

    Can you please help me ?

    This is my theme’s page.php http://pastebin.com/n4jaeme2

    EDIT – Mammoth theme BP compatibility resolved in this thread – https://buddypress.org/community/groups/installing-buddypress/forum/topic/compatibility-issue-with-mammoth-theme/
    – mercime

    @namzar

    Participant

    hi @mercime,

    i am using the same theme as misterbdon (instyle theme) and followed your instructions. almost there, but buddypress is extending past the theme’s sidebar on the right side of the page still. why? can u explain more “The Sample Page made it all clear. I have revised all codes added to the bottom of header-buddypress.php and at the top and bottom of sidebar-buddypress.php in this post. ” u posted? really appreciate you help!

    @mercime

    Participant

    @namzar – screenshot of the problem or better yet, URL to specific page would be welcome.

    @namzar

    Participant

    @namzar

    Participant

    @mercime

    Participant

    You’re missing some styles in your theme’s stylesheet (which others I helped had) for some reason or another. For example:

    `.blogstyle-entries, #left-area {
    float: left;
    width: 71%;
    }

    #left-area {
    margin-left: -3%;
    }
    `

    @jomjom

    Member

    @mercime sorry to revive this topic, I followed your instructions, but buddypress is not correctly aligning yet (eg. http://www.linkin-park.it/newsite/members/linkin-park-italy/activity/). I’m using WordPress 3.4.1, Buddypress 1.5.6 and InStyle Theme 2.7. I’ve attached some code from my theme. Let me know if you can help me out, thanks in advance!

    Header: http://pastebin.com/XaLx9ixX
    Sidebar: http://pastebin.com/vnHV5FDA
    Footer: http://pastebin.com/puaLJRZg
    Page: http://pastebin.com/ZKi9QeUh
    Page-Full Width: http://pastebin.com/EdkA0Cfb

    @mercime

    Participant

    @jomjom will check this later today.

    @jomjom

    Member

    Thank you, let me know!

    @mercime

    Participant

    @jomjom No wonder the instructions for compatibility for instyle theme last year was not working for you, the code from instyle’s page.php from last year has changed a lot (see http://pastebin.com/1PcjiXK9 from original poster)

    Based on the HTML structure of your theme, you need to change 16 template files within the 6 BP folders transferred to your instyle theme folder in server during the compatibility process.

    Since you’ve revised the BP template files, replace all of them for a clean slate by deleting the 6 BP folders transferred to your theme’s folder in server during the compatibility process -> /activity, /blogs, /forums, /groups, /members, and /registration – then re-run dashboard Appearance > BP Compatibility.

    Download the 6 clean BP folders to your computer hard drive.

    A. At the top of each of those 16 template files I linked to above, replace
    `

    `

    with the following:
    `

    <?php if (get_option('instyle_integration_single_top') ” && get_option(‘instyle_integrate_singletop_enable’) == ‘on’) echo(get_option(‘instyle_integration_single_top’)); ?>

    `

    Save files.

    @mercime

    Participant

    B. At the bottom of the same 16 files, replace:
    `

    `

    with the following (except for registration/register.php):
    `
    <?php if (get_option('instyle_integration_single_bottom') ” && get_option(‘instyle_integrate_singlebottom_enable’) == ‘on’) echo(get_option(‘instyle_integration_single_bottom’)); ?>

    `

    with the following for registration/register.php:
    `
    <?php if (get_option('instyle_integration_single_bottom') ” && get_option(‘instyle_integrate_singlebottom_enable’) == ‘on’) echo(get_option(‘instyle_integration_single_bottom’)); ?>

    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();
    });
    });

    `

    Save files.

    C. Upload the 6 BP folders containing the 16 files you’ve just revised to your server wp-content/themes/instyle/

    D. Copy the style modifications made in BP Twenty Ten at https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste to your theme’s stylesheet. Adjust to taste.

    @jomjom

    Member

    I had to remove the “ call from the footer since it gave me an error. Now it’s looking good but still i can’t get rid of the sidebar content, it keeps showing under the buddypress content when I’m in “Full Page.” Thoughts? Thanks again for your help!

    @mercime

    Participant

    @jomjom the modifications I gave were for the page with sidebar -> page.php

Viewing 16 replies - 26 through 41 (of 41 total)
  • The topic ‘[Resolved] Compatibility with InStyle Theme’ is closed to new replies.
Skip to toolbar