To change where the user is redirected, add a hidden field to the login form called redirect_to, with a value of where-ever you want the user to end up (default is in the dashboard).
“Location” is in the user Profile, but doesn’t appear when they post. I’d like to add it, so that it reads “Location: Ohio” or whatever.
I tried guessing and inserted this:
<?php post_author_location(); ?>
But that didn’t work. 
And finally, are all these functions listed somewhere?
I found out that most people’s bbpress has this code in index.php
<link rel=”stylesheet” href=”http://yourdomain.com/style.css” type=”text/css” />
however my index.php shows
<link rel=”stylesheet” href=”style.css” type=”text/css” />
in the bbpress root there is no css file, so I think that’s why it didn;t work.
Can anyone told me how to fix it?
Right now I just dump my css file in the root so index can reads it.
At my site I have a login form put in the header (generated by wordpress, with wordpress functions) that displays either the form for the user to login or the welcome text with the username etc.
The reason I don’t want to use wordpress own login function is because that forwards the user to their wordpress profile which they shouldn’t be using.
The problem I now encountered using the usernames_i18n_fix.php plugin is that wordpress doesn’t display the usernames properly. For the time being I’ve removed the username from the welcome text. But is there any way to make this work through wordpress without including bbpress every time wp loads?
Is it possible somehow to redirect the user to the page they logged in from instead of sending them back to the forum main page?
To echo the username I use
<?php $user = wp_get_current_user(); echo $user->display_name; ?>
Thanks a lot Sam!
Another problem I have is that the bb Post plugin doesn’t automatically add a slug. I tried addressing this but couldn’t make it work. The function bbpress_bb_new_topic is responsible for adding the topic to bb.
function bbpress_bb_new_topic( $title, $forum, $author, $author_name, $now ) { // making new topic in bbPress
global $wpdb ,$otherdb;
$bb_table_prefix = bbpress_getoption('bb_prefix');
if ( $forum && $title ) {
if (bbpress_getoption('bb_other_base') === "no") {
$wpdb->query("INSERT INTO <code>". $bb_table_prefix ."topics</code> (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id ) VALUES ('$title', $author, '$author_name', $author, '$author_name', '$now', '$now', $forum)");
$topic_id = $wpdb->insert_id;
$wpdb->query("UPDATE <code>". $bb_table_prefix ."forums</code> SET topics = topics + 1 WHERE forum_id = $forum");
$wpdb->query("UPDATE <code>". $bb_table_prefix ."forums</code> SET posts = posts + 1 WHERE forum_id = $forum");
} else {
$otherdb->query("INSERT INTO <code>". $bb_table_prefix ."topics</code> (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id, topic_slug) VALUES ('$title', $author, '$author_name', $author, '$author_name', '$now', '$now', $forum, $feltopic_slug)");
$topic_id = $otherdb->insert_id;
$otherdb->query("UPDATE <code>". $bb_table_prefix ."forums</code> SET topics = topics + 1 WHERE forum_id = $forum");
$otherdb->query("UPDATE <code>". $bb_table_prefix ."forums</code> SET posts = posts + 1 WHERE forum_id = $forum");
}
return $topic_id;
} else {
return false;
}
}
What needs to be done? I need to change the INSERT INTO statement, by adding the column name to the list of columns and the variable I want to insert for that to the list of variables?
oh neat!
You’re very welcome.
UPDATE: The sample ad file now includes the code necessary to display different ads based on the context. For example, if it is a topics page, it will display one ad and if it is a forum page, it will display a different one.
The code is something like this:
<?php
if ( strpos($_SERVER['REQUEST_URI'], 'topic.php') ) { ?>
<div>An ad for a topics/posts page</div>
<?php
} elseif { another specific page;
} else { default ad;
} ?>
The sample file includes elseif checks for topic.php, forum.php, profile.php, and a “default” if none of the above pages are detected.
This would allow you to have one file per sponsor/advertiser, with a different context-based ad for each situation.
I couldn’t make a plugin for it, but you can restrict users without the “administrate” capability from accessing the site by appending this line to bb-settings.php:
if ( ! bb_current_user_can( 'administrate' ) ) { die('<p>The site is down for maintenance.</p>'); }
I followed the discussion in “Updated to Desmond But Theme Not Working”, however the proposed solutions are not working for me.
I have a IIS 6.0, windows 2003 server, MySQL 5.x and PHP 5.0 installation. Both directories “my-templates/” and “my-plungins/” are in the bbpress root. The “patch-to-URL.php” plugin is inside the “my-plugins” folder.
When looking at the source code in Firefox 2.0 I get
“<link rel=”stylesheet” href=”http://129.82.32.135forums/my-templates/kakumei/style.css” type=”text/css” />” (notice the “” before forums) and inside the admin section for the forum the themes previews are not visible, tough their names and the options to select are present.
However when using IE 7.0 the source code I get
“<link rel=”stylesheet” href=”http://129.82.32.135/forums/bb-admin/style.css” type=”text/css” />” and the themes previews are visible.
Any ideas how to fix this errors. Thanks.
HParticipant
It’s possible, but I think it’s difficult (much work).
What about making a template which looks the same as your XHTML document? (Featuring the same menus, navigation system etc. as your XHTML document). Then the bbPress forum looks like it’s integrated without being so.
thanks for the hack vincent, I’m glad to see you got it integrated into bbpress. I’m using your hack myself
Hi, i’ve downloaded bbPress because i’m a lover of WordPress amb because i like bbPress very much. But now i’im in a big trouble.
I want to integrate bbPress in an standard XHTML website with any line of WordPress code, and so i need to know how i can integrate it from the beggining of the process.
Now i’ve just installed bbPress in a url rute like /mydomain.com/bbpress but i need to be shown in a basic xthml document, like mydomain.com/phorum.php
How can i do this?
I think it’s possible, but can you help me?
Regards guys from Mediterranean sea. 
I’m waiting a good response form you as soon as you can, thanks guys.
<?php if ( !is_topic() ) : ?>
<p>
<label for="topic"><?php _e('Tytuł:'); ?>
<input name="topic" type="text" id="topic" size="50" maxlength="80" tabindex="1" />
</label>
</p>
<?php endif; do_action( 'post_form_pre_post' ); ?>
<?php do_action( 'post_form_pre_post' ); ?>
<p>
<label for="post_content"><?php _e('Treść:'); ?>
<textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"></textarea>
</label>
</p>
<?php if ( !is_topic() ) : ?>
...
it’s post-form.php. doesn’t work
e.g: http://ram.org.pl/forum/topic.php?id=3&page&replies=9 still doesn’t have any quicktags. should i use tiny MCE?
I can’t find the Category Patch plugin, sorry. That plugin browser is annoying. >_<
The statistics are included by default, but not linked to in the default theme. Just go to www.example.com/forums/statistics.php and it’s there. The file for it is in your root forum folder.
I hate Tiny MCE. It’s slow and nannies you too much.
Archasek, I think you haven’t called some hooks or something. Find something like
<p>
<label for="post_content"><?php _e('Post:'); ?>
<textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"></textarea>
</label>
</p>
and insert
<?php do_action( 'post_form_pre_post' ); ?>
In front of it, on a new line. That should make it work.
http://am-fem.com/candy/
A small, 18+ forum community for my online friends
. I belong to alot of forums and wanted to run one of my own that was 18+ and more low-key then the typical XMB, SMF and PHPbb forums out there. I wanted a script that could have as little or as much as I wanted through plugins without all the un-necesary bloat and bbPress does that for me
!
I’m using my own modified theme off of Kakumei.
Plugins include:
– Allow Images
– Avatars
– Memberlist
– Post Count
– BBCode
– Forum Restriction
– Onlinelist
– Since Last Visit
– User Time Zones
– Category Patch
A few more plugins and the forum will be exactly what I’m looking for.
HParticipant
archasek, if I were you, I would have installed the Tiny MCE WYSIWYG editor instead of any quicktag plugin. The Tiny MCE It outputs valid XHTML and is by far easier to use than any bbcode system!
The CSS is fine in IE 7 at least.
Looking good.
It’s got a lot more of a consistent feel to it now, which is very nice. But when you hover over links they still turn green, as do the rows in the thread listing.
Look for the a:hover item in your CSS file to change links when hovered, and look for something like tr:hover for the thread rows. I think the specific item for thread rows is
#latest tr:hover, #forumlist tr:hover, #favorites tr:hover
Just keep playing with it until you’re happy is the best advice.
Not sure what the DXX theme is, but if it’s the one you’re using on your site yeah it’s ultra-easy.
First of all, don’t try to force bb into the WP theme … that rarely works. Your best bet is to open (or make if it doesn’t exist) your my-templates folder and start a new theme by making a new folder (call it dxx or something). Go back up into your main bb folder, open bb-templates > kakumei and copy style.css, then paste it into your new my-templates > dxx folder.
Using CSS you can then modify how your page looks (not what’s on it though). The basic way to do css is like this:
html element {
property: something;
}
For example, the code to colour links red with NO underline is like this:
a {
color: red;
text-decoration: none;
}
To change the way your forum looks, you therefore open the copy of style.css you made and change properties like that. There’s much more info at http://www.w3schools.com/css/. That is all you need to know.
So for example, what you would do for your theme is make links blue and no underline, make the header green, change the background of the page and put a border on the main div element. Some knowledge of HTML will be helpful but you can also pick this up.
Works perfectly Pravin, any chance I could get you to add the conditionals to the code snippet?
I would like anywhere the topic list is displayed, a small arrow or link next to the topic_id (or just a link) to click this and the current sort order would be changed. So if it is a normal, chronological display and the link is clicked, for it to display in reverse chronological display.
Or is this something that is too complicated?
This one too:
http://www.informedbanking.com/resources/forums/
Its not nearly as big as Technorati but I’ve been tweaking it slowly but surely, integrating it in with a custom CMS / Wiki, WordPress, and now bbpress.
Thanks for the awesome software. I sent in a patch of themes.php last night – it needs a urldecode() in the current subversion revision.
If anyone is using ‘ Avatar pluginsuleiman, here’s a hack I use to show the WPMU’s avatar in BBPress:
In post.php, after the <small><?php post_author_title(); ?></small> bit I use the following:
<?php
$userid = get_post_author_id();
$wp_avatar = '/full/path/to/public_html/wp-content/avatars/' .$userid. '.jpg';
$wp_avatarURL = '/wp-content/avatars/' .$userid. '.jpg';
if (file_exists($wp_avatar)) {
echo '<img class="avatar" src="'. $wp_avatarURL.'" />';
}
?>
Probably not the most elegant, but it works:
http://blognola.org/forums
Vincent
look for these lines (20-23) in topic.php
if ( !$bb_db_override ) :
$posts = get_thread( $topic_id, $page );
$forum = get_forum ( $topic->forum_id );
change to
if ( !$bb_db_override ) :
$posts = get_thread( $topic_id, $page, 1 );
$forum = get_forum ( $topic->forum_id );
get_thread function changed
Quoting dictionary.com:
bo·zo /ˈboʊzoʊ/
–noun, plural -zos. Slang.
1. a fellow, esp. a big, strong, stupid fellow.
2. a rude, obnoxious, or annoying person: Two or three bozos tried to cut in ahead of the rest of us in the supermarket line.
Users marked bozos means that Akismet (the part of the code responsible for spam detection) has identified these as spammers, or you have manually set their status. They can post, however posts will be visible only to themselves – they will not realise that their posts are showing up to noone else. Useful precaution against spammers (it bothers no-one, they don’t try harder since they think they’re succeeding) and perhaps against trolls, although I haven’t tried that.