Search Results for 'code'
-
Search Results
-
Who can help us to keep bbPress as standalone CMS engine?
We will clear up all wp trash from code and will continue bbPress life as new engine.
Simpler, faster, more elegant
I’ve updated the layout of my forum last night and I ran into a few problems. I didn’t update bbPress from 0.9.0.2 because the Unread Posts plugin wouldn’t work. I have not changed anything internally, I have not updated the Unread Posts plugin, but even when I turn on my old template, it doesn’t seem to show that I have already read the topic in particular. It stays bold. And it also goes bold when I post in it myself.
Now I have read the plugin page, where someone said something about changing the login code because a certain code wasn’t called for, but that doesn’t seem to do the trick. I’m really lost here and since _ck_ has gone, no one seem to figure out how this thing works.
Other plugins that do the same just don’t seem to work either.
Please help.
Topic: BuddyBar in bbPress
Hi gerikg,
i saw your post about your problems with the integration of the BuddyBar in bbPress – (http://bbpress.org/forums/topic/buddypress-default-theme-for-bbpress). I found it after a short research in Google – because I’ve the same problems yesterday.
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bp_core_admin_bar_css' was given in /homepages/0/00/htdocs/wpbpbbp/wordpress/wp-includes/plugin.php on line 339Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid call
But … I think I have an “hack” for you – I changed a few lines of code in my installation and now it seems to work.

These was “myWay”:
1. Deep Integration between WordPress and bbPress
2. Plugins on bbPress: buddybar-in-bbpress
3. Edit bp_buddybar.php – I only comment out the following lines
/* add_action( 'bb_head', 'bp_core_admin_bar_css', 1 );
add_action( 'bb_head', 'bp_core_add_js', 1 );
add_action( 'bb_admin_head', 'bp_core_admin_bar_css', 1 );
add_action( 'bb_admin_head', 'bp_core_add_js', 1); */
4. Edit bp-core-adminbar.php
Here I’ve a error code because auf “$wpdb” – so I commet out:
/* $blog_prefix = $wpdb->get_blog_prefix( $current_blog->id );*/
5. header.php in my theme
I put the Stylesheet-Link to my header.php file.
<link rel=”stylesheet” href=”http://www.mysteria3000.de/wp/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css” type=”text/css” />
…
No the best solution – but it works for me.

Greetings
Markus
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
0but I wanted:
–Welcome
Topic–Post—Welcome to Our Site
0
0-Support
Topic–Post—PHP Help
0
0SO 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
0Or 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
0So 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
0Make sense?

