Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need Help Integrating BuddyPress Functions into User Blog Theme


  • GrandSlambert
    Participant

    @grandslambert

    I am setting up a new install of BuddyPress and have it working for the most part. It’s great, but I wish there was more documentation for those of us that want to really tweak it.

    So here is the site: http://geosee.com

    There are some tweaks I have to do for the main part of the site and the BuddyPress type pages, but I can handle that. What I am trying to do is build the theme for the users blogs. I want that to look very similar to the main site. So I want to have the header the same with the search bar and login bar, as well as the “admin” bar. So it’s close.

    Here is a member blog: http://grandslambert.geosee.com

    See the problems? The admin bar under “my account” has an error. The search bar doesn’t have the sections, and the login bar doesn’t have the username. In the theme, I added a require for the “bp-core.php” in the plugin folder. What else am do I need to include?

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

  • Burt Adsit
    Participant

    @burtadsit

    No I don’t see the problem. If there is a problem, only logged in users can see it. Can you give me a demo/test login username and password?


    GrandSlambert
    Participant

    @grandslambert

    Well, even from a logged out user you can tell the admin bar doesn’t work, nor does the login bar, nor does the search bar. Yes, they show up, but notice the following problems:

    1. Click the “BuddyPress” logo (to be changed yet) in the admin bar. It takes you to the blog home page, not the GeoSee home page like I thought it would.

    2. Click the “Login” link in the admin bar – 404 Not Found.

    3. Click the “Signup” link in the admin bar – 404 Not Found.

    4. Click the “Author” link in the admin bar – 404 Not Found.

    So the admin bar does not link back to the main blog like I would think it would do.

    Now let’s look at the Search Bar. Notice the drop down is empty and that all searches return a 404 Not Found Error?

    And finally the login bar. Try hitting the signup button – 404 Not Found.

    There is a demo account set up with the username demouser and password demo so you can see the same problems I listed in my original post.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    I’m not sure what you did exactly to make this so broken, but I can tell you how I did what you’re trying to do.

    1. Copy “buddypress-home” theme to a temporary folder.
    2. Rename “buddypress-home” to “buddypress-user”.
    3. Delete “buddypress-user/home.php”.
    4. Open “buddypress-user/style.css” and at the very least, rename the theme to include something with the words “User Theme”
    5. Upload this theme, and activate ONLY it in your admin panel.
    6. Make sure that theme is the ONLY active theme. This ensures users will only get that theme provided to them at default.

    That should do it.


    GrandSlambert
    Participant

    @grandslambert

    Yeah, I tried exactly that, but then I get all these errors when I try to activate the blog:

    Warning: require(BP_PLUGIN_DIR/bp-core/bp-core-signup.php) [function.require]: failed to open stream: No such file or directory in /home/grandsla/geosee.com/wp-content/themes/buddypress-user/functions.php on line 70

    Warning: require(BP_PLUGIN_DIR/bp-core/bp-core-signup.php) [function.require]: failed to open stream: No such file or directory in /home/grandsla/geosee.com/wp-content/themes/buddypress-user/functions.php on line 70

    Fatal error: require() [function.require]: Failed opening required ‘BP_PLUGIN_DIR/bp-core/bp-core-signup.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/grandsla/geosee.com/wp-content/themes/buddypress-user/functions.php on line 70

    So that doesn’t work. Using WPMU 2.7 and the latest TRUNK of bbPress


    Jeff Sayre
    Participant

    @jeffsayre

    WPMU 2.7 and the latest TRUNK of bbPress

    I assume you mean BuddyPress, and not bbPress. If so, then here are a few questions:

    1. What do you mean by “latest TRUNK”? Did you actually download the BP trunk from trac as a zip or use SVN? Or, did you obtain BuddyPress from the big, orange Download button that can be found on the top of any BP page?
    2. What version of BuddyPress are you using?
    3. Where exactly did you place the BuddyPress folder?
    4. You are using WPMU 2.7 and not WPMU 2.7.1-beta1 or -beta2, correct?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Grandslambert,

    In your buddypress-user/functions.php, take out ALL of the code besides what you need to make your sidebar(s) for your widgets.

    Forgot to mention that little part. :)


    Jeff Sayre
    Participant

    @jeffsayre

    @JJJ-

    Hum, I guess that could help… :)


    Burt Adsit
    Participant

    @burtadsit

    Failed opening required ‘BP_PLUGIN_DIR/…

    Not using latest trunk because BP_PLUGIN_DIR is not defined or just installed in some fashion that bp-core.php isn’t running on all blogs which means the latest 2.7.1 wpmu isn’t running and the bp plugins aren’t sitewide.

    maybe so?


    Jeff Sayre
    Participant

    @jeffsayre

    Burt-

    Well, that was one of my thoughts–and why I’m asking Grandslambert to clarify what he meant by

    Using WPMU 2.7 and the latest TRUNK of bbPress

    I assume he meant BuddyPress. If so, is he running WPMU 2.7 but with BP 1.0_RC2? Did he install the BP folder in the proper spot? You’ve seen my questions above.

    But, I’m tired and JJJ had an intriguing idea as well. So, perhaps I should get some sleep tonight and all the problems of the universe will disappear overnight!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Need Help Integrating BuddyPress Functions into User Blog Theme’ is closed to new replies.
Skip to toolbar