macwise..
if you are ok hacking the code.. create a page contest.php in the root forum folder
add require_once('./bb-load.php'); on the top of the page. and write whatever code you want in the page.. that should create a static page with bbpress functions..
as far as rewrite is concerned.. im not 100% sure but i think multiviews will automatically translate /contest.php to /contest/. test it and see.
bbolman,
thanks for the idea. I would probably prefer to do this. However, I have a few bbpress functions being called in the code on the page, and though I could probably dig about and find out how to replace it with wp code, it was not the most pleasant thought. I figured I’d just throw a page up on the bbpress side, and have it resolve at a myurl.com/directory/ as is common with wordpress. I found out how to take care of this…I achieved this by adding two lines in the .htaccess file…
RewriteRule ^contest/$ /forum/contest.php [L,QSA]
RewriteRule ^contest$ /forum/contest.php [L,QSA]
I’m not trying to start a battle here, but I think your response, Null, might be a bit short-sighted and aggressive. After all, if I feel my software needs a static page, that may just be what it in fact does need.
I agree with bbolman that this would probably be more efficiently handled by wordpress. However, since bbpress is still in it’s infancy, and it’s not integrated fully yet with wordpress, (this is my way of trying to sound like I’m not a completely right-brained individual), I think it’s fair to say that these decisions aren’t so cut and dried. Anyway, I appreciate the responses all the same, and will post any further findings here…
Ziyphr,
Thank you so much for your reply. I think this is really the solution that I have been looking for. It just doesn’t make sense to me to only have one subdomain registered in the cookies, and I wasn’t sure how wordpress handled the adding of a subdomain.
I am still moderately new to php, so I’m not sure I follow the last paragraph in terms of proper form and syntax, and so I’d prefer to ask that “stupid question” rather than sound smart and fail.
. Can you let me know exactly what you think should go there, in terms of syntax? That would be greatly appreciated.
P.S. It sounded like you meant to say “You should NOT need to use .htaccess? Just checking to be sure…
Thanks so much for your help.
You should need to use .htaccess. Best thing is to override the way cookies are created. For WP these are in wp-settings.php around line 185. To have a shared cookie for the whole site I changed the cookie scope replacing:
codeif ( !defined(‘COOKIEPATH’) )
define(‘COOKIEPATH’, preg_replace(‘|https?
/[^/]+|i’, ”, get_option(‘home’) . ‘/’ ) );code
With:
codeif ( !defined(‘COOKIEPATH’) )
define(‘COOKIEPATH’, ‘/’ );code
Setting the www bits etc can be done in a similar way. Assuming you’ve integrated your users, if you set the cookie path to ‘/’ with domain .babyquestions.101.com you should be fine.
Hi,
What kind of items would you like to add? Is it a plugin page like the memberlist plugin, or a link to another website, or a link to your homepage.
The last one is technically hard to do cause of the way bbPress id’s there pages. bbMenu uses this to highlight the menu item when you are on a certain page. Since your homepage proberbly doesn’t support/use this, you can add an item in the menu, but it proberbly wouldn’t highlight when you are on that page.
Hope you understand what I mean…
If you want to add an “off-link” (the link goes to wikipedia or something) you could add this into bbmenu.php (not tested):
At the bottom find:
echo '<li ' . $first . '><a ' . $current . ' href="' . $rw['page'] . '">' . $rw['item'] . '</a></li>';
Underneeth it add:
echo '<li><a href="link-to-your-thingy.com">Thingy-name</a></li>';
(Ignore the this forum adds them when editing this topic)
This should add a new link ad the end in your menu, but you will not see it in the admin, or be able to put it anywhere else… It will also not be highlighted when you are on that page (in case you use it to go to your homepage)
OK, if you are lucky and the server isn’t dead as it usually is, you may get it here.
Remember, no guarantees. I hadn’t even read php before messing with that script.
FYI, I modified the plug-in slightly to prevent moderators from messing with other forums they are not assigned to by this plug-in in bbpress version 0.8.
changed function forum_moderators_process_capacities in forum-moderators.php, added some additional filters:
$filtering_caps = array(
'manage_topics' ,
'edit_closed' ,
'edit_deleted' ,
'browse_deleted' ,
'edit_others_tags' ,
'edit_others_topics' ,
'manage_posts' ,
'ignore_edit_lock' ,
'edit_others_posts',
'delete_posts',
'delete_topics',
'close_topics',
'stick_topics',
'move_topics',
'moderate'
);
added filters:
delete_topics’,
‘close_topics’,
‘stick_topics’,
‘move_topics’,
‘moderate
don’t know exactly what I’m doing but that hacked seemed to do what I want.
Don’t ask me how (I always find a way to do stuff like this), but I managed to delete the keymaster for my forum. 
Since my forum is “live” and I don’t want to lose posts, re-installing isn’t really an option for me. Is there some way I can modify the database directly to grant keymaster permissions to an existing user?
In bb_usermeta, I found a column with data like this: a:1:{s:6:"member";b:1;} that I think might be the key to doing what I want, but changing the word “member” to “keymaster” doesn’t seem to do the trick. What should I do?
Thanks! Worked like a charm.
I switched from phpBB to bbPress recently thanks very much in part to a script found in these forums.
Now, many of the existing posts contain links to each other in the old phpBB format /topic.php?t=123. Since the topic IDs have stayed the same in the conversion process, I’d like to use ModRewrite to automatically redirect to the new /topic/123 URL scheme. I’ve tried the following in my .htaccess, but it doesn’t appear to work. (Admittedly, my knowledge of ModRewrite is shaky at best.)
RewriteEngine on
RewriteRule ^/forums/viewtopic.php?t=([0-9]+)$
/forums/topic/$1 [R]
(In the real code there isn’t a linebreak on the second line.)
Does anyone have any advice?
I am using Basic-authentication for all of other authentication and access control on my site, and would like to have bbPress detect that and leverage $ENV{‘REMOTE_USER’}
Is this possible? Has anyone done it, that can share the code?
Thanks,
– Dave
cre8tive, I’ll try and get up a downloadable zip archive of the theme soon. I’ve just been so busy lately sigh, that I haven’t had much time on the bbPress/WP side of things.. I’ll keep you posted though..
spencerp
Is this going to get submitted into the SVN trunk for 1.0 soon, or..? I’m really hoping so, all this “applying patches” is getting tiresome and confusing, sigh.
It’s one of the main reasons I haven’t even upgraded my bbPress forums to the latest full .80, with category enhancement, just seems pointless… 
spencerp
Hi
thanks for the quick reply.
Yes the IP, userid, pass is correct.
The domain string is where i may be having trouble as i am not sure wat to put in there. I have tried multiple domain strings but no success.
Have tried both TLS on/off.
I am fairly certain that the firewall is set ok.
We have other applications using the ldap server successfully, however from different servers.
I have successfully used the following code example to produce a connection and return a result from the LDAP server. maybe this can help you debug the issue?
<?php
// basic sequence with LDAP is connect, bind, search, interpret search
// result, close connection
echo "<h3>LDAP query test 2</h3>";
echo "Connecting ...";
$ds=ldap_connect("192.168.1.73"); // must be a valid LDAP server!
echo "connect result is " . $ds . "";
if ($ds) {
echo "Binding ...";
$r=ldap_bind($ds); // this is an "anonymous" bind, typically
// read-only access
echo "Bind result is " . $r . "";
echo "Searching for (sn=S*) ...";
// Search surname entry
$sr=ldap_search($ds, "o=Lions", "sn=S*");
echo "Search result is " . $sr . "";
echo "Number of entires returned is " . ldap_count_entries($ds, $sr) . "";
echo "Getting entries ...";
$info = ldap_get_entries($ds, $sr);
echo "Data for " . $info["count"] . " items returned:";
for ($i=0; $i<$info["count"]; $i++) {
echo "dn is: " . $info[$i]["dn"] . "";
echo "first cn entry is: " . $info[$i]["cn"][0] . "";
echo "first email entry is: " . $info[$i]["mail"][0] . "<hr />";
}
echo "Closing connection";
ldap_close($ds);
} else {
echo "<h4>Unable to connect to LDAP server</h4>";
}
?
If it’s for a demo, wouldn’t an ad hoc patch be enough? I have not delved into the code, but I guess that adding the name of the chosen theme to the user cookie and changing the function that tells what template is in use to look there first (if necessary) would do. Well, and the dropdown box to select theme, of course.
I think template is simple enough, it’s just different 
I also personally feel “template” is more ‘correct’ than “theme”. Unlearning “template” when starting with WordPress was hard.
http://en.wikipedia.org/wiki/Template
http://en.wikipedia.org/wiki/Theme
I think bbPress is correct, and WordPress is wrong.
Also, if you’ve ever used K2 with WordPress, you know that they have something called schemes which are pure CSS modifications to change the look. To confuse things even more, the “schemes” in K2 are in a folder called “styles.”
sorry for all the edits …
The following is the encypted version of the password “test”
098f6bcd4621d373cade4e832627b4f6
If you go into the database and put that in, your new password will be “test”. That will get you going!
Trent
Ah ok can you tell me what attributes it contains? (so how the table is build) Does it have: set, item, page etc etc?
Some suggested using set and item isn’t smart and could cause problems. But if these excist in your table, then it isn’t a problem. I think there is something “wrong” with the insert but to be sure. I am gonna make a version where I change the set and item into other values. Perhaps you can test that version for me when it’s done?
Still funny, it works on my own 2 test servers
Why not put an hidden special key in it? We all hate spam, now we have to sign up to get a key, edit the config file etc etc…
I say, put in a special bbpress askimetkey in it so we dont have to bother about spam
When registering on a bbPress forum, this is displayed after you submit your registration:
Make sure to whitelist our domain (http://www.mywebsite.com) so the confirmation email doesn’t get caught by any filters.
That’s not really how whitelists work. Normally, you whitelist a domain or an email address, so wouldn’t it be better to say this in register.php on line 11:
<?php printf(__("A password will be mailed to the email address you provide. Make sure to whitelist our email address (%s) so the confirmation email doesn't get caught by any filters."), bb_get_option( 'admin_email' )) ?>
Make sense?
Hi,
I wanted to have tags separated by commas instead of spaces, to allow users to write tags with more than word.
I did two very small changes to the function add_topic_tags() in the file functions.php and it works, here it goes in case someone is interested:
function add_topic_tags( $topic_id, $tags ) {
global $bbdb;
$tags = trim( $tags );
$words = preg_split(“/[,]+/”, $tags); // removed s
if ( !is_array( $words ) )
return false;
foreach ( $words as $tag ) :
add_topic_tag( $topic_id, trim($tag) ); // added trim()
endforeach;
return true;
}
yeah, this forum is still online, feel free to play, I’ve been testing in this thread, but my css needs updating as not all effects are visiable (i.e. quotes are marked up in html, but css show’s white on white – doh !)
I agree with this all. This is also one of the reasons I’ve started the bbPortal project (bbportal.org) The idea is to use bbPress as the basic and build some nice stuff around it. It’s not much yet, I’ve just started it).
WordPress is great for BLOGGING and some people forget this. It’s designed for a personal blog not for a whole community. Sure you can extend it with plugins etc, but still.
bbPortal is/will be more for communities like clans/guilds that use the forum heavily. (so forum driven and not blog driven.)
You can also take a look at wordpressMU (multiuser), That can give every user a own wordpressblog that you can administrate. If I may be so bold I see it like this:
Personal/blog………….>>…………Community driven
..wordpress
……………………….wordpressMU
………………………………………………………. bbPortal
(ignore the dots, they where needed for outlining)
Joomla and Drupal are way bigger, but to my oppinion, needs some more understanding about php and coding aswell.
Though choise huh
Hi,
Did you use the beta aswell? Then delete the bb_menu first with phpmyadmin.
If not, then the table didn’t fill during installation of the plugin. Still don’t know why it doesn’t do that on certain servers.
Fill the table using this information:
mysql_query ("INSERT INTO
$bbdb->menu
VALUES ('active', 'Forums', 'index.php', 'front-page', 0)");
mysql_query ("INSERT INTO
$bbdb->menu
VALUES ('active', 'Search', 'search.php', 'search-page', 1)");
mysql_query ("INSERT INTO
$bbdb->menu
VALUES ('inactive', 'Statistics', 'statistics.php', 'stats-page', 0)");
I also found another bug. Somewhere I hardcoded bb_menu instead of using the prefix variable. As long as your prefix is bb_ (like most have) there is no problem. This will be fixed in the next release.
Also the ‘doubleclick-and-edit-the-menu-items’ function in the new release is getting along very well!
Greetz