Skip to:
Content
Pages
Categories
Search
Top
Bottom

Tabling the categories & non-categories on it's own.

Published on April 8th, 2010 by gerikg

This is going to be complex to explain but I’m going to try.

This is from front-page.php

<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">

<tr>
<th><?php _e('Main Theme'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<tr<?php bb_forum_class('bb-category'); ?>>
<td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
</tr>
<?php continue; endif; ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>

This basic says the table headings are Main Theme, Topics, and Post. I wanted each category to be in it’s own table.

So if you have a category, let’s say category “Welcome” and a child forum “Welcome to Our Site” and a category “Support” and child forum “PHP Help” it will display: (the dashes are spaces, ignore them)

-Main Theme


Topic–Post

-Welcome


—Welcome to Our Site


0


0

-Support


—PHP Help



0


0

but I wanted:

–Welcome


Topic–Post

—Welcome to Our Site


0


0

-Support


Topic–Post

—PHP Help



0


0

SO I thought it was easy so I did this:

<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>

<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<table id="forumlist">
<tr<?php bb_forum_class('bb-category'); ?>>
<th><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><?php forum_description( array( 'before' => '<small>', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?> <th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th></td>
</tr>
<?php continue; endif; ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><?php forum_description( array( 'before' => '<small>', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>

<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>

Which works great but I have to have every title under a category now. If I have a forum title “Websites” not under a category, this is what I get:

Websites00

–Welcome


Topic–Post

—Welcome to Our Site


0


0

-Support


Topic–Post

—PHP Help



0


0

Or it latches itself to another category

–Welcome


Topic–Post

—Welcome to Our Site


0


0

—PHP Help


0


0

-Support


Topic–Post

—PHP Help



0


0

So I need a statement that says if it’s not in a category it will print the title ONCE

<tr>
<th><?php _e('Main Theme'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>

So it will print:

–Welcome


Topic–Post

—Welcome to Our Site


0


0

-Support


Topic–Post

—PHP Help



0


0

-Main Theme


Topic–Post

—PHP Help


0


0

Make sense?

1.0 Upgrade Error

Published on April 8th, 2010 by kingscast

I realized I was not upgraded to the latest version. I followed the instructions as identified on the site and got this:

An invalid configuration file was found at bb-config.php

The installation cannot continue.

Usually this is caused by one of the database connection settings being incorrect. Make sure that the specified user has appropriate permission to access the database.

Any insight? Thanks in advance!

Facebook Connect

Published on April 8th, 2010 by kingscast

Any luck incorporating Facebook Connect (and others) with bbPress? I’m finding that users don’t want to create a separate account on bbPress in my situation. Offering them an alternative would be huge.

Continuing Topic Icons

Published on April 8th, 2010 by gerikg

https://bbpress.org/plugins/topic/topic-icons/

Can anyone create an admin section for this?

Where you can upload images and assign it to the forum title and you do all the settings through the dashboard not the php file.

Need a way to log in on wordpress side with integration

Published on April 7th, 2010 by dangerbronco

Hi. I have read the posts saying that deep integration has issues with cookies and authentication when logging in through the wordpress login, on wp versions 2.7 and higher (I am using 2.9). I am wondering if anyone has been able to do this, and what steps were taken. I can’t just “login through the bbpress side” because the wp-authenticate hook in my auth plugin won’t run. I’ve been racking my brain on this one and any help would be appreciated.

Link back to originating home site from logo in header

Published on April 7th, 2010 by Positics

I have a similar challenge to the earlier topic “Linking back to main website”. It is for a site I have configured for someone, who has asked for the same ability for their logo to have a link associated to it, that will take the user back to the home page of site that pointed them to the blog / forum.

I have installed bbpress 1.02

You suggested the following;

in header.php where the body tag starts.

===========================

<body id=”<?php bb_location(); ?>”>

<div id=”wrapper”>

How do I locate this logo in the top right hand corner of the header where the default bb_emblem was located?

“<a’x’ href=”http://www.reflexology-uk.net/site”><img src=”images/iior.jpg” alt=”ITEC” /><‘x’/a>”

===Note===== ‘x’ === added in string above to break code so it will print =====

At presentI have a logo situated in the CSS file as a background, which you suggest is not the right way to go about achieving this.

Any pointers will be useful. Thanks.

Thesis integration?

Published on April 7th, 2010 by Terence Milbourn

Can anyone give me a nice easy way to pull BBPress into a Thesis page?

Or come to that, a nice easy way to pull BBPress into any WP page?

I may have missed it but what I am looking for is something as simple as this…

1. Create a WP/Thesis page, with no sidebars, called “whatever”

2. Go to Page > Edit and edit the page you created, select HTML and insert “[BBPress]”

3. Create a menu item which opens the page.

That would do nicely.

Templates for 1.x ???

Published on April 7th, 2010 by Terence Milbourn

Is it me or are there really NO templates out there for BBPress 1.x out there?

I must say that, as a newcomer to BBPress, I find it very disappointing to find out that template developers not updating their products and leaving cryptic messages on their sites about how BBPress has no cogent leadership. Sorry, can’t remember where I read that or I WOULD leave the URL.

Code underneath and they way it works looks pretty neat though.

Oh well, I guess things can only get better… 8^)

Slow loading discussion board

Published on April 6th, 2010 by admingsc

Hi, all. Just wanted to confirm something:

We’re running a discussion board with bbpress that has 300 forums. Each forum has 14 subforums. We’re noticing a long load time with every click. We’ve tried running the board on a dedicated server, but it didn’t seem to improve the performance.

Is this a case where bbpress just isn’t built to handle that many forums and subforums?

Thanks for any help you might have to offer!

My topic at the top

Published on April 6th, 2010 by AndreaGS

Hi! I’m new in forum.

I’d like that the topic I create stay forever at top of topic list in my forum.

Can you suggest a method or plug-in to do that? If there is a way!

Skip to toolbar