Skip to:
Content
Pages
Categories
Search
Top
Bottom

Integrating BBPress with and existing (x)html site

  • @tominated

    Member

    Is it possible to integrate a bbpress forum into an existing site (so i don’t have to mess around with making a theme for bbpres) by using php functions? I am not very good (that is an overstatement) at php. I followed a tutorial that let me integrate a wordpress blog into my site, and this is the code it gave me

    <?php define('WP_USE_THEMES', false);

    require('wordpress/wp-blog-header.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">

    <head></head>

    <body>

    <div id="stage">

    <div id="sidebar">

    <?php if ( !function_exists('dynamic_sidebar')

    || !dynamic_sidebar() ) : ?>

    <h3>Categories</h3>

    <div id="blog-categories">

    <ul>

    <?php

    list_cats(FALSE, '', 'ID', 'asc', '', TRUE, FALSE, TRUE,

    TRUE, TRUE, FALSE, FALSE, '', FALSE, '', '', '', TRUE);

    ?>

    </ul>

    </div>

    <br />

    <div id="blog-archives">

    <h3>Archives</h3>

    <ul>

    <?php get_archives('monthly', '', 'html', '', '','TRUE'); ?>

    </ul>

    </div>

    <hr />

    <br />

    <div id="rss-links">

    <h3><a href="<?php bloginfo('url'); ?>?feed=rss2">RSS feed</a></h3>

    </div>

    <?php endif; ?>

    </div>

    <div id="content">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div id="unique-entry-id-<?php the_ID(); ?>" class="blog-entry">

    <div class="blog-entry-title"><?php the_title(); ?></div>

    <div class="blog-entry-date"><?php the_time('Y-m-d G:i'); ?>&nbsp;|

    <span class="blog-entry-category"><?php the_category(', '); ?></span>&nbsp;|

    <span class="blog-entry-permalink"><a href="<?php the_permalink(); ?>">Permalink</a></span>&nbsp;|

    <span class="blog-entry-language">

    <?php if(function_exists('lp_other_langs')) {

    //display existing language versions of the post

    lp_other_langs(' ','', '', '', '');

    }?></span>

    </div>

    <div class="blog-entry-body"><?php the_content(); ?></div>

    <div class="blog-entry-comments">

    <?php edit_post_link(__('Edit This')); ?> |&nbsp;

    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'), "",

    __('Sorry, comments are closed for this item.')); ?>

    </div>

    </div>

    <?php comments_template(); ?>

    <?php endwhile; ?>

    <?php else : ?>

    <h2><?php _e('Not Found'); ?></h2>

    <p><?php _e('Sorry, but no posts matched your criteria.'); ?></p>

    <form method="get" class="searchform" action="<?php bloginfo('home'); ?>/">

    <div>

    <input type="text" size="20" value="<?php echo wp_specialchars($s, 1); ?>" name="s" class="s" />

    <input type="submit" class="submit" value="<?php _e('Search'); ?>" />

    </div>

    </form>

    <?php endif; ?>

    <div style="text-align:center;">

    <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>

    </div>

    </body>

    what would i have to do to get bbpress integrated into my site? I heard somewhere that the function names are very similar to wordpress, so what code would i put in to get the forum categories then the recent posts, etc.?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @trent

    Member

    It is a bit of a complete thing if you don’t know CSS really well and the functions for bbPress. You can look at how the default theme is produced, or just take a look at this from So10

    wordpress and bbpress theme integration

    Trent

    @tominated

    Member

    I am quite proficient at CSS, but i am no good with php. BTW: I didn’t really understand that article, it wasn’t very good english. I do understand everything up from the cookies stuff, but not below it. Could you please dumb it down a bit? if you want to see what i am trying to do, visit http://blog.tominatedsoftware.com/ and you can see that i have integrated wordpress with the rest of my site at http://tominatedsoftware.com/

    @peiqinglong

    Member

    @tominated

    Member

    the thing is, i am not using a theme, per say. i have got an index.php file and then have a folder with the worpress installation. i have just followed a tutorial, i have not got a proper theme applied to WP. the tutorial i followed it here. It is a tutorial for an awesome mac-only program called RapidWeaver

    @bobomerenda

    Member

    In the end, is it possible to embed bbpress within any web site? i mean is it cumbersome?

    @chrishajer

    Participant

    Depends on what you mean by embed, and how much work you consider cumbersome. I don’t think it works too well to put bbPress into an iframe in your website. But other sorts of integration work just fine. There’s nothing special (that I know of) that makes WordPress integration any different than the presentation in any other website.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar