Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] BP Compatibility plugin with an Artisteer theme…

  • @ronnie_fantastic

    Participant

    Hi,

    I’m looking for some help with making BP compatible with a theme I created using Artisteer 3.14.

    I’ve tried following the instructions to modify the code, but… maybe it’s because I’ve got a cold at the moment and my brain isn’t operating at full capacity… I just can’t figure it out.

    While no expert, I’m usually pretty good at just looking at code and figuring out what I need to adjust to get the results I want, but… not this time.

    I see from other posts that the way it seems to work is, I post pastebin links to my code here, and the legendary creature known as @mercime (must be a creature of magic it seems, that needs no sleep and can fix everyone’s code problems) waves a wand and highlights the failings of us mere mortal code fiddlers.

    Anyway, the instructions say I should look for my page.php or index.php to find the code that should be replicated in the bp pages. My theme has both a page.php and an index.php, so I’ve posted both below. Don’t suppose I need to post the bp code, but in case it changes when the bp compatibility plugin is used, there’s an example of the activity/index.php code, too.

    My theme index.php page: http://pastebin.com/r7mBhnG7

    My theme page.php page: http://pastebin.com/b7kVsMWy

    Comparison BP activity/index.php : http://pastebin.com/b7u8ThP1

    Any help would be hugely appreciated, even if it’s just a pointer in the right direction… where I need to change code, and what elements of my theme code I need to put into the BP code.

    Sincerest thanks,

    Ronnie.

Viewing 16 replies - 1 through 16 (of 16 total)
  • @mercime

    Participant

    @ronnie_fantastic flattery will get you nowhere :-) and this “legendary creature” cannot guarantee compatibility with Artisteer-generated themes. Having said that, we could give it a try. Do post the codes for header.php, sidebar.php and footer.php files as well.

    @ronnie_fantastic

    Participant

    Hi @mercime

    Twas not flattery! I was simply observing your legendary status on these here forums. ;)

    I also did not expect any guarantee of compatibility with Artisteer themes, so it’s perfectly cool if this is too much of a pain to figure out, or if it simply can’t be done.

    If the two can’t work together, then I will try and adapt a theme that is compatible to look like the theme I created with Artisteer.

    As you requested though, here are the codes you requested. Header and footer seems straightforward…

    Header.php: http://pastebin.com/5QjaczaG
    Footer.php: http://pastebin.com/jcHeRhms

    Sidebar… looks like it could be a real pain… there’s 5 code pages for the sidebar????

    sidebar-top.php: http://pastebin.com/JbghaYq6
    sidebar-bottom.php: http://pastebin.com/3bB7kTjf
    sidebar-footer.php: http://pastebin.com/6QtsLHmg
    sidebar-default.php: http://pastebin.com/899BRFgc
    sidebar-secondary.php: http://pastebin.com/0NMSe6mp

    As I’ve observed… you do an awful lot to help folks out with code fixes round here. If this one is too much of a headache because it’s been done with Artisteer… just say so and I’ll figure out another way to do it.

    Many Thanks.

    Ronnie.

    @mercime

    Participant

    @ronnie_fantastic please post the code for your theme’s content-page.php file. Initial scan shows that you might only need to create 2 files for compatibility process, but I need to see content-page.php

    @ronnie_fantastic

    Participant

    Thanks @mercime

    There are a total of 6 ‘content’ files in the theme, below is the content-page.php and also the content.php just in case it turns out you’ll need that, too.

    The other 4 are titled ‘content-aside.php’, ‘content-attachment.php’, ‘content-gallery.php’ and ‘content-single.php. Let me know if you need any of those.

    Here’s the two I mentioned above…

    content-page.php:http://pastebin.com/JUBm8Js2
    content.php: http://pastebin.com/aTWXKEQf

    Many thanks,

    Ronnie.

    @ronnie_fantastic

    Participant

    Hi @mercime,

    Just checking in.

    Is the fix for this just too fiddly, or not possible at all?

    No worries either way. If you think it would be much easier to alter a theme that does work with BuddyPress, to reflect the visual design I’m looking for, I’ll investigate that instead.

    Let me know.

    Many Thanks,

    Ronnie.

    @mercime

    Participant

    @ronnie_fantastic Missed your post, sorry about that. Looks like we’re going to get sucked into the web of artisteer functions. Not giving up yet. We could just hardcode the necessary HTML structure. Could you provide URL to your site’s default page? If not available online, I suggest you go to that default page, then View > Source, copy the generated HTML source code, and paste to pastebin.com

    @ronnie_fantastic

    Participant

    Hi @mercime

    For testing purposes I have the site in a directory of another site. You can see it by going to: http://www.liveanddangerous.co.uk/wptest

    As I said… I don’t know how easy it is to modify a theme that is compatible with BuddyPress, to look like the theme I created in Artisteer, but… if it’s easier then what you’re attempting to do, I’m quite happy to save your efforts and try to do that myself.

    But, If you want to continue to see if you can generate compatibility with the one I have, then I sincerely appreciate the help.

    Thanks,

    Ronnie.

    @ronnie_fantastic

    Participant

    Hi @mercime

    Was that what you needed, just the home page of the site I’m working on?

    Thanks,

    Ronnie.

    @mercime

    Participant

    @ronnie_fantastic thanks for following up. You will only need to create two new files, header-buddypress.php and sidebar-buddypress.php instead of changing 16 template files.

    If you’ve revised any of the BP template files transferred to your ronnie_fantastic theme folder in server during the BP Compatibility process, please delete the 6 BP folders transferred to your ronnie_fantastic 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 code from:
    http://pastebin.com/DYBuCJe0

    Save file.

    @mercime

    Participant

    B. CREATE a blank sidebar-buddypress.php file

    Open up the blank sidebar-buddypress.php and add content from:
    http://pastebin.com/W7tT40tw

    Save file.

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

    D. Final note: Copy the style modifications for some BP elements https://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.

    @ronnie_fantastic

    Participant

    Hi @mercime

    Looking at the link below… it looks like it’s almost there…

    http://www.liveanddangerous.co.uk/wptest/members/ronnie-fantastic/

    I just have one (probably dumb) question… how do I enabled registration? Going to the registration page: http://www.liveanddangerous.co.uk/wptest/register/ shows ‘User registration is currently not allowed.’

    I can’t seem to find the setting to enable registration.

    Oh… I lied… one other question… take a look at the bottom of a profile page such as http://www.liveanddangerous.co.uk/wptest/members/ronnie-fantastic/profile/

    It has what looks like a 2 cell table with ‘Base’ written above it and the name/username within. What is this, and if it’s not an included element that needs to be displayed… is there a way to remove it?

    Finally… thank you so much for your help so far. I sincerely appreciate it.

    Regards,

    Ronnie.

    @mercime

    Participant

    @ronnie_fantastic Looking good.

    1. Missing BuddyPress styles: Go to Appearance > BP Compatibility. and uncheck “Disable BP Template Pack CSS”
    – you need the BP template pack CSS to properly align the BuddyPress sections.

    2. Enable registration: Go to Settings > General and look for the line where you allow registration (it’s off by default)

    3. “It has what looks like a 2 cell table with ‘Base’ written above it and the name/username within”
    – This is the Profile page and it shows profile fields. BP Codex is your friend https://codex.buddypress.org/getting-started/configure-buddypress-components/

    @ronnie_fantastic

    Participant

    Hi @mercime

    So close now…

    Take a look at: http://www.liveanddangerous.co.uk/wptest/members/testy/profile/

    I’d like the background colour for the navigation menus and the profile fields to be either black, or better still, transparent.

    Is this possible? I’ve looked over the style sheet etc, but can’t find the function for this. If I view the source code for the page above, I can see the instruction for the background to be ‘rgb(254, 254, 254)’, but… can’t find that instruction anywhere in the css.

    If I can fix that, then… I believe… we’re done.

    Thanks,

    Ronnie.

    @ronnie_fantastic

    Participant

    Hi @mercime

    Aside from the final tweak mentioned above… given the effort to make it all work so far… should I avoid adding further plugins such as listed in the plugins directory on here, or… should they all integrate without any problems now we’ve fixed the theme compatibility issues?

    I’m thinking about things such as a login box, removing the WordPress bar from the top of the pages for anyone other than site administrators, adding one of the event management plugins, etc.

    Basically… I don’t want to have to keep asking you for help ever time I try to add something new. ;)

    Many Thanks,

    Ronnie.

    @ronnie_fantastic

    Participant

    Hi @mercime

    Just to let you know… I figured out the problem with the background on the menu tabs… all by myself, without any hand holding! ;)

    I do hope the instruction you gave me above, helps others that have used Artisteer to create themes and then try to incorporate BuddyPress.

    You’ve been a star and a huge help.

    I’ll press on with my site and *hopefully* not have to come back and pester you for any more help. ;)

    Many Thanks,

    Ronnie.

    @mercime

    Participant

    @ronnie_fantastic You’re welcome. Glad you’ve resolved issues on your own. Some finishing touches to your stylesheet you might like to consider:

    `
    Add these to bottom of stylesheet:

    div.item-list-tabs ul li {
    background-image: none;
    margin-left: 0;
    margin-right: 5px;
    }
    div#subnav.item-list-tabs {
    border-bottom: 0;
    }
    .padder div.pagination {
    margin: 0 !important;
    }

    CHANGE
    div.item-list-tabs ul li:first-child {
    margin-left: 15px !important;
    }
    to
    div.item-list-tabs ul li:first-child {
    margin-left: 0 !important;
    }`

Viewing 16 replies - 1 through 16 (of 16 total)
  • The topic ‘[Resolved] BP Compatibility plugin with an Artisteer theme…’ is closed to new replies.
Skip to toolbar