Skip to:
Content
Pages
Categories
Search
Top
Bottom

[RESOLVED]CSS bp problems – The Global Sport theme

Viewing 17 replies - 1 through 17 (of 17 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @nsbalgcom I see you’ve installed the BP Template Pack plugin. Now you need to fix the alignment within the BP template files to be compatible with your WP theme WPSN – via 1st method of changing 16 BP template files or via 2nd method of creating only the header-buddypress.php, sidebar-buddypress.php and/or footer-buddypress.php.

    Initial scan of online source code shows that you need only to implement the 2nd method and adding some styles to fix the alignment of your theme. http://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/#fixalignment

    Avatar of nsbalgcom
    nsbalgcom
    Member

    @nsbalgcom

    @mercime I am confused where to start with changing the template files

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @nsbalgcom Open up your theme’s header.php file, copy all, paste in pastebin.com, click submit, and post the generated URI here.
    Do the same for your theme’s (The Global News Theme, right?) index.php, page.php, sidebar.php, and footer.php

    Avatar of nsbalgcom
    nsbalgcom
    Member

    @nsbalgcom

    @mercime here are the files you requested. Here is a my site link: http://nsbalg.com/ssn3 and here is the preview of the demo theme – http://demoserver.pressjunkie.net/theglobalsport/

    Hope to hear from you soon regarding how to fully fix my alignment. Sorry the directions given did not help me.

    DELETED – do not post large blocks of code here. please follow instructions and paste code to pastebin.com for each file — mercime

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    > paste in pastebin.com !! ?

    Avatar of nsbalgcom
    nsbalgcom
    Member

    @nsbalgcom

    @hugo I did, am I suppose to take the raw code?

    Avatar of nsbalgcom
    nsbalgcom
    Member

    @nsbalgcom

    @hugo ohh am I suppose to post the URL, hmm..

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    yep :) not to worry it’s done now

    Avatar of nsbalgcom
    nsbalgcom
    Member

    @nsbalgcom

    @hugo whats done?

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @nsbalgcom do not paste long blocks of code here. Let’s try that again.

    Open up your theme’s header.php file, copy all, paste in pastebin.com, click submit, and post the generated URI here.
    Do the same for your theme’s (The Global News Theme, right?) index.php, page.php, sidebar.php, and footer.php

    Also, something was wrong with your index.php file. It should be of your theme’s index.php and what I saw was the members/index.php file.

    Avatar of nsbalgcom
    nsbalgcom
    Member

    @nsbalgcom

    @mercime everything I’ve copied and paste was taken from the correct file. I was confused with the index.php file as well, but that what what was given.

    index.php = http://pastebin.com/JbiEchdi
    page.php = http://pastebin.com/5vEEpkVN
    footer.php = http://pastebin.com/gZn20UJE
    header.php = http://pastebin.com/r13m7W6R

    There is no sidebar.php? I think it’s because of the format of my template.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @nsbalgcom before proceeding with the alignment fix, re-upload TheGlobalSport theme files again in your server. Something went awry and the BP Members index.php file should not be at the root of your TheGlobalSport theme folder that you would paste it here as your theme’s index.php file.

    Looks like we’d only need to create two files, upload to theme folder and you’re good to go.

    Last thing though, where do you want your sidebar to be –
    a) in default sidebar on the right
    OR
    b) sidebar on the left?

    Avatar of nsbalgcom
    nsbalgcom
    Member

    @nsbalgcom

    @mercime
    on the right will be the sidebar.

    http://pastebin.com/nd2MtXdL = index.php

    The left column will be the news/content/buddypress area, sidebar on right for widgets and everything else. Can you assign the sidebar to the Sidebar (page) widget/coulum. I think I said it right, but what I am saying is that, there’s types of sidebars in my theme theme such as:

    Sidebar (page)
    sidebar (post)
    sidebar (archives)
    sidebar (category)
    etc

    PAGE sidebar will be the most efficient to use on the right.

    Avatar of nsbalgcom
    nsbalgcom
    Member

    @nsbalgcom

    @mercime

    a problem just recently occurred when changing the first pastebin’s index.php I sent you, to the default version of index.php. The members and few pages stopped working. Is there a fix? or should I just use the previous code? pages were working fine then.

    I think WP/BP fixed the code at the set up so the pages worked fine? That index.php pastebin you had previously with the members in the header of code was my main index.php for my theme.

    I guess that

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @nsbalgcom You will only need to create two new files, header-buddypress.php and sidebar-buddypress.php

    If you’ve revised any of the BP template files transferred to your theglobalsport theme folder in server during the BP Compatibility process, please delete the 6 BP folders transferred to your theglobalsport theme folder in server – /activity, /blogs, /forums, /members, /groups, /register – then re-run Appearance > BP Compatibility again to make sure that you have clean template files.

    A. COPY your theme’s header.php and Save As > header-buddypress.php

    Open up header-buddypress.php and at the BOTTOM of the file, below other code contained within, add this:
    `

    `

    Save file.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    B. Create a BLANK sidebar-buddypress.php

    Open up the blank sidebar-buddypress.php and add the following code:
    `

    NOTE: This sidebar is empty, <a href="/wp-admin/widgets.php”>click here and add widgets to the Sidebar (Page) widgetised area.

    `

    Save file.

    C. Upload header-buddypress.php and sidebar-buddypress.php to your theme folder in server wp-content/themes/theglobalsport/ at the same directory where your regular header.php and sidebar.php files are in

    D. Final note: Copy the style modifications for some BP elements http://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste those at the bottom of your theme’s stylesheet, then adjust to taste.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    Deactivate BuddyPress and any other BP plugin. Re-upload theglobalsport theme files like I mentioned previously and check that the WordPress section – posts/pages – are working as expected.

    If everything’s working on the WP side, then activate BuddyPress and BP template pack plugin.and run Appearance > BP Compatibility. Only then do you implement the instructions I posted above.

Viewing 17 replies - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.