Skip to:
Content
Pages
Categories
Search
Top
Bottom

P2 Theme


  • Scotm
    Participant

    @scotm

    Wondering if anyone has successfully converted the P2 theme with BuddyPress theme template pack. It’s proving to be a tricky one.

    Cheers

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

  • peterverkooijen
    Participant

    @peterverkooijen

    I’m trying to integrate P2 in the bp-groupblog plugin. Haven’t tried BP theme template pack.

    P2 apparently only works on a regular blog index.php. On a group home (and probably other BP pages like members home etc.) it can’t find the right blog and the Ajax breaks.

    The fix probably involves setting the blogID somewhere and changing settings in P2’s js.php. If it’s possible at all…


    Scotm
    Participant

    @scotm

    Well P2 will work with BuddyPress, but finding a way to make the PS2 style sheet take effect has proven tricky. The page makeup for P2 is queer at best, with the sidebar called for just inside the top wrapper <div>.

    But even after duplicating the page format in the BP template files as directed, the styles don’t seem to take effect. The only solution I’ve found is to hack the bp.css file extensively but even this is less than satisfying.


    Mariusooms
    Participant

    @mariusooms

    We are actually working on this. As the co-author of the Group Blog plugin we are adopting the P2 theme as a base and making a child theme that ‘s based on buddypress’ look.

    To integrate with the Group Blog plugin we added new functionality that allows deeper blog integration inside your group which enables P2 to exist within the group. It will be very nice and we have some additional goodies coming which I don’t want to spoil yet :)

    Some of the templating functionality is already in trunk of the plugin for those who are adventurous or curious. It shouldn’t be to long out for a release as we are actively developing for BP1.2.

    I’ll keep ya’ll posted on the forums on the progress.


    Scotm
    Participant

    @scotm

    @Mariusooms so the child theme will have the P2 look and feel with BuddyPress features and Group Blog functionality intact? Let me know if you need testers.


    Mariusooms
    Participant

    @mariusooms

    :-) Actually…The child theme will have P2 features with BuddyPress look and feel AND features in tact! It will be mix of both themes strengths. At least that is the goal, once I have a theme for trunk I’ll give a shoutout to testers.

    The largest goal will actually to allow wpml play nicely with P2 as we have to support that plugin.


    Avi M
    Participant

    @avim

    This sounds very promising Mariusooms. I look forward to testing it out.


    peterverkooijen
    Participant

    @peterverkooijen

    To integrate with the Group Blog plugin we added new functionality that allows deeper blog integration inside your group which enables P2 to exist within the group. It will be very nice and we have some additional goodies coming which I don’t want to spoil yet :)

    Do you mean you have figured out how to use a P2 post-form on a group home page? Or should I continue working on that? I’m not really a programmer, but it has become an obsession…


    Mariusooms
    Participant

    @mariusooms

    In short…we define a page template which we redirect to from the group blog. Since the child theme resembles the group exactly, it won’t matter. So it will be like your posting from the Group structure. Since our child theme page template loads its own css file, you can still style the main P2 blog theme the way you want.

    We don’t want you to work hard, so we are prepackaging a P2 child theme that works out of the box and looks like bp-default. With some more effort you can create your own child them too, but not everybody can theme.

    So, yes, I would wait if you can and see if we can meet your needs. If not, you can always continue your journey, but it is up to you :)


    Mariusooms
    Participant

    @mariusooms

    Made a lot of progress already. Group blog page looks like bp-default with posting using P2. Test site coming soon.


    raoulduke
    Participant

    @raoulduke

    oh man – can’t wait!


    peterverkooijen
    Participant

    @peterverkooijen

    I’m now integrating P2 in my own messy custom theme. When logged in as one test user I can edit status updates of another. That’s not supposed to be possible!

    Also commenter links don’t work; they include a display name in the URL where they’re supposed to use the username.

    Has anyone else seen these problems? Are there issues between WP-WPMU-BP to watch out for, different handling of user ID’s etc.? Best approaches to make sure only authors of the blog can post/edit and only their own posts/comments?

    I’ll revert to original code where possible to see if I can get it to work and find out where it breaks…


    peterverkooijen
    Participant

    @peterverkooijen

    I’m trying to integrate the P2 theme into my custom theme. I only want all the required P2 files loaded with the home.php, the javascript in particular because it tries to ajaxify all edit links and is causing problems with some other jquery.

    I tried modifying this:

    function init() {
    if ( !is_admin() ) {
    add_action( 'wp_print_scripts', array('P2JS', 'enqueue_scripts') );
    }
    add_action('wp_head', array('P2JS', 'print_options'));
    }

    …to only load in the header.php only when the page is_home, like this:

    if (is_home() )
    {
    p2_head();
    }

    That sorta worked, but most of the other crap in P2’s js.php still gets loaded.

    I tried put if (is_home() ) around the js.php, but that didn’t work at all.

    How do I make lines like these conditional – if that’s the right term…?:

    wp_enqueue_script( 'p2js', P2_JS_URL . '/p2.js', array( 'jquery', 'utils' ), filemtime(P2_JS_PATH . '/p2.js') );

    Or is there a better way to limit all the P2 code to the home.php? I had to just merge the P2 functions.php with my theme’s functions.php, because I couldn’t figure out how to make them load with a custom p2_functions.php files.


    peterverkooijen
    Participant

    @peterverkooijen

    I’ve integrated P2 in my custom theme. Works nicely in Firefox and Safari, but in IE the Ajax is broken again. Just throwing this out there: Has anyone else, Marius Ooms or others working on this, encountered problems in IE? Is there a difference in how IE handles javascript/ajax that I could focus on?

    Any more news on this new theme combining P2 and BP? Has an announcement been made?


    Phil Meyer
    Participant

    @philmeyer

    I realize this is a three year old topic, but can anyone tell me whether anything ever came of this?


    @mercime
    Keymaster

    @mercime

    @philmeyer basically some issues still remain on @mentions https://buddypress.trac.wordpress.org/ticket/5565


    Phil Meyer
    Participant

    @philmeyer

    @mercyme Thanks for the reply and info, much appreciated. Good to see it’s still ongoing – I have the ideal project I’d like to use it for.


    Phil Meyer
    Participant

    @philmeyer

    Oh sorry – that should be @mercime 🙂

Viewing 18 replies - 1 through 18 (of 18 total)
  • The topic ‘P2 Theme’ is closed to new replies.
Skip to toolbar