Skip to:
Content
Pages
Categories
Search
Top
Bottom

Suggestions and misc

  • Where do i put them? here? if so..

    i think bbp should have 2 options at install, standalone or integrate with WP .. and since so many ppl want this under WP it should be default :)

    So i added

    require_once($_SERVER . ‘/kent/wp-blog-header.php’);

    in my config and it seems working fine. Can i now use functions as is_user_logged_in() and wp_list_categories() in my bbp templates ?

    Can either sides registration/login be totally skipped? ex. remove bbp´s registration?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey.. wtf .. think it works .. im havin wp and bbp in the same dir, root dir .. just renamed bbp´s index.php to forums.php ..bbl with a report :)

    hmm seems working .. have wp cats and stuff to the right .. same theme :)

    forum root is.. ehh.. root :( cant find where to change that to forums.php

    Update: Found at the top in my-templates/topic.php and forum.php .. changed <?php bb_option(‘uri’); ?> to forums.php and it works fine :) i feel happy

    Update2: changed in my-templates/footer.php. Removed almost all code

    <?php do_action('bb_foot', ''); ?>
    <?php wp_footer(); ?>
    <?php
    include($_SERVER['DOCUMENT_ROOT'] . '/myname/wp-content/themes/themename/footer.php');
    ?>
    </body>
    </html>

    So it runs with my WP theme footer :)

    Need to slice up my WP header so i can do the same

    Im just hacking and testing so if there is something i can do better say it ;)

    Looks a bit weird to have two admin/logins at my top right corner :D

    Update3: Since i had forums.php i change in config.php

    // What are you going to call me?

    $bb->name = ‘Forum index';

    Looks better :)

    Keep up the good work developers!

    Now .. ive managed to make WP and bbp share same theme. Dont know if its god but it works.. im running right now.

    wp-content/theme/header.php

    <?php
    include(ROOT . '/theme/header-start.php');
    ?>
    <title><?php bloginfo('name'); ?> - <?php if ( is_single() ) { ?> &raquo; Archive <?php } ?> <?php wp_title(); ?></title>
    <?php
    wp_head();
    include(ROOT . '/theme/header-end.php');
    ?>
    <body>
    <?php
    wp_head();
    include(ROOT. '/theme/body-start.php');
    ?>

    my-themes/theme/header.php

    <?php
    include(ROOT . '/theme/header-start.php');
    ?>
    <title>MyWebsite - <?php bb_title() ?></title>
    <?php
    bb_feed_head();

    if ( is_topic() && bb_is_user_logged_in() ) : ?>
    <script type="text/javascript">
    var lastMod = <?php topic_time( 'timestamp' ); ?>;
    var page = <?php global $page; echo $page; ?>;
    var currentUserId = <?php bb_current_user_info( 'id' ); ?>;
    var topicId = <?php topic_id(); ?>;
    var uriBase = '<?php bb_option('uri'); ?>';
    var tagLinkBase = '<?php bb_tag_link_base(); ?>';
    var favoritesLink = '<?php favorites_link(); ?>';
    var isFav = <?php if ( false === $is_fav = is_user_favorite( bb_get_current_user_info( 'id' ) ) ) echo "'no'"; else echo $is_fav; ?>;
    </script>
    <?php
    bb_enqueue_script('topic');
    endif;

    bb_head();
    include(ROOT. '/theme/header-end.php');
    ?>
    <body id="<?php bb_location(); ?>">
    <?php
    include(ROOT . '/theme/body-start.php');
    if ( is_bb_profile() ) profile_menu();
    ?>

    my-themes/theme/footer.php

    <?php
    do_action('bb_foot', '');
    include(ROOT . '/theme/body-end.php');
    ?>

    wp-content/theme/footer.php

    <?php
    include(ROOT . '/theme/body-end.php');
    ?>

    theme/header-start.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head profile="http://gmpg.org/xfn/11">

    theme/header-end.php

    <link rel="stylesheet" href="<?php echo URL; ?>/theme/default.css" type="text/css" title="Default style" media="screen" />
    <link rel="alternate" href="<?php echo URL; ?>/?feed=rss2" type="application/rss+xml" title="RSS Feed" />
    <link rel="pingback" href="<?php echo URL; ?>/xmlrpc.php" />
    <link rel="EditURI" href="<?php echo URL; ?>/xmlrpc.php?rsd" type="application/rsd+xml" title="RSD" />
    <link rel="wlwmanifest" href="<?php echo URL; ?>/wp-includes/wlwmanifest.xml" type="application/wlwmanifest+xml" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="generator" content="WordPress 2.3.1" />
    </head>

    theme/body-start.php

    <div id="wrapper">
    <?php
    get_sidebar();
    // Etc...
    ?>

    theme/body-end.php

    <?php
    // Etc...
    wp_footer();
    ?>
    </div>
    </body>
    </html>

    Hope its all there.. ;)

    URL and ROOT is defined in wp-config.php

    Edit: you can of course cut BODY to include different sidebar wp / bbp :)

    Im getting these lines in the middle of the admin page: wp-admin/post-new.php

    Error:
    Warning: Missing argument 2 for bb_bozo_pre_post_status() in D:xxxxxbb-includesbozo.php on line 173

    Warning: Missing argument 3 for bb_bozo_pre_post_status() in D:xxxxxbb-includesbozo.php on line 173

    then.. i get when i post..

    Warning: Missing argument 2 for bb_bozo_pre_post_status() in D:xxxxxbb-includesbozo.php on line 173

    Warning: Missing argument 3 for bb_bozo_pre_post_status() in D:xxxxxbb-includesbozo.php on line 173

    Warning: Cannot modify header information - headers already sent by (output started at D:xxxxxbb-includesbozo.php:173) in D:xxxxxwp-includespluggable.php on line 391

    So .. how do i.. should i let ppl register via WP or bbp ?

    Are you using bbsync, or requiring bb when you run wp?

    Whatever you like. Makes no difference.

    Im using bbpress-integration.php first then installed bbsync .. seems working ok. Think ill let users signup via bbp and add admins trough wp.

    OT: trac … is there a similar web-based management of software projects without the python stuff, written in php out there?

    strange .. i have “Topic — Add New »” when im not logged in and just “Topic — ” when im in.. ?

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

You must be logged in to reply to this topic.