This is exactly what I need. I tried adding this into my-plugins. It shows up correctly but doesn’t seem to work. Has it been verified to work with bbPress 0.8? Or am I doing something wrong?
What is happening: I put in my “display name” into the allowed user field and get back an error that there is no such user. I also tried putting in “admin” and get the same error.
I tried putting in another user and got no error message – however the user wasn’t displyed in my allowed user field. Is this what is supposed to happen?
Help is greatly appreciated. Let me know if I have missed something obvious.
Cool stuff. I like the new sticky colors by the way.
Trent, maybe I misunderstand. There is a box on the edit tab of my user’s profiles that says “this user is a bozo” and it’s normally unchecked (there was an issue with .73 and the admin being checked bozo, but that doesn’t appear to be an issue any more.)
See this admin user screenshot and normal user screenshot, both of the edit tab in the profiles. Is that what is missing from the OP’s install? I wasn’t asking for anything that doesn’t exist. It sounded to me like this box that I see does not show up sometimes. That’s the confusion for me.
edit: also, I saw on the source somewhere that users of a certain level could be whitelisted to skip the akismet check, but maybe that’s not implemented yet.
In akismet.php, around line 119:
function bb_ksd_check_post( $post_text ) {
global $bb_current_user, $bb_ksd_pre_post_status;
if ( in_array($bb_current_user->roles[0], bb_trusted_roles()) ) // Don't filter content from users with a trusted role
return $post_text;
That I asked about before, for sure:
https://bbpress.org/forums/topic/728?replies=1
Hey,
I just wanted to say that I just installed bbPress in a subdomain from my forum and got the cookie syncing to work fine.
Much thank to Trent, who provided half the solution:
$bb->cookiedomain = '.lumanation.com';
$bb->cookiepath = '/';
made it so that forum-generated cookies worked for the entire website. I had to go into wordpress root and edit wp-settings.php line 190:
define(COOKIE_DOMAIN, '.example.com');
I do not understand how it worked previously, as it defined it simply as false (I assume that the browser will automagically substitute the domain that the user is currently on?). However, hardcoding the domain worked for me, and as long as I remember to change this in future upgrades I should be fine.
I did have troubles, especially logging out, while testing all this, and found that it’s vital to clear your cookies manually as the wordpress/bbpress logouts were clearing different cookies and you could stay logged in despite trying to log out.
But yeah, I’m all good.
Thanks guys.
I do not think that the rewrite rule alone will do it. You also need to change the way the links are generated by bbPress.
Ok, this is the solution that worked for me. I did have to add the rewrite rule, as multiviews isn’t working on my server??? (I think I’m running on php4, is that why?) So, for others who want a wal-mart type bb build
here’s a recap of what I did:
I created a page in my bbpress root called contest.php. Inside of that page I put:
<?php
require('./bb-load.php');
bb_load_template( 'contest.php' );
?>
I then created my contest.php page with the content I needed (the template)
The last thing I did was to put these two lines in my .htaccess file IN MY FORUM ROOT FOLDER, (not my wordpress root folder):
RewriteRule ^contest/$ /forum/contest.php [L,QSA]
RewriteRule ^contest$ /forum/contest.php [L,QSA]
This basically says that myurl.com/my/forum/directory/contest (without the trailing backslash)
and myurl.com/my/forum/directory/contest (with the trailing backslash)
will both point to the contest.php page in the root forum directory.
As so1o said, this last part in .htaccess may be unnecessary if you have multiviews enabled (if your .htaccess file in your FORUM directory has this line: “Options +MultiViews”). Maybe someone else can confirm/deny this, as my configuration is different.
Hope this helps someone else who needs some custom functionality out of bbpress.
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.
You’re correct I missed a word out – htaccess isn’t be needed.
I’ve not got much experience with bbPress but recently integrated WP and Vanilla. To confirm, are you intending to have 1 user table shared between your blog and forum? (so users can move seamlessly between the two)
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…
The last phpBB to Vanilla converter doesn’t work perfectly with the latest Vanilla so needs some fiddling. Both Vanilla and bbPress could do with investing in a universal converter similar to what punBB has. It’s a lot of work but will be worthwhile.
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)
This bug and sucurity fix is hot off the presses.
http://bbpress.org/blog/2007/02/bbpress-081/
Any luck on this? I’m having this problem too. WP 2.1 bbPress 0.8, integration seems to be working other than this. Thanks!
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.
Is there a vanilla to phpbb deal? That seems like the easiest way to go…
the bbPress folks ought to consider hiring a team member or somebody to just work on importers. Without them it makes getting people to make the move just that much harder.
I am currently having a problem where when I log in to wordpress (or bbpress) at url:myurl.com, then click a link that is directed to http://www.myurl.com, then I am no longer logged in. (Cookie issues). I am trying to figure out how to define either *.babyquestions101.com (preferably), or if that won’t work then babyquestions101.com AND http://www.babyquestions101.com.
Give it a shot here:
http://babyquestions101.com/
and the forum is here:
http://babyquestions101.com/forum/
PLEASE CREATE ANY ACCOUNTS WITH THE WORD “TEST” AND ANOTHER WORD/NAME IN THE ACCOUNT NAME, unless of course you intend on keeping the account.
UPDATE:
My wordpress options blog url (in the wordpress admin panel) is listed WITH the “www” in front of the domain.. I am digging into mod_rewrite directives, but to be honest, I’m not really grasping it. Right when I think I have it figured out, it throws me. I have been able to get requests going to http://babyquestions101.com to redirect to http://www.babyquestions101.com/ using mod_rewrite in the .htaccess files. However, when I try it out in the forums, (http://babyquestions101.com/forum/) it just resolves at that address, and doesn’t insert the www. Any ideas?
Here’s mine:
a:2:{s:8:”throttle”;b:1;s:13:”administrator”;b:1;}
Mine is in wp_usermeta though since I am integrated (not sure if that matters or not.)
Also, “administrator” is there since I changed /bb-includes/capabilities.php to make the title administrator rather than key master. Did you make a similar change in your capabilities.php?
It’s also possible that this might help you:
https://bbpress.org/forums/topic/185?replies=6#post-909
Just take a look here https://bbpress.org/plugins/topic/30?replies=4 or try the demo here http://www.la-school.com/bbpress/ .. I’m working on this thing! … I’ve just not that much time at the moment, sorry.
Maybe this will help:
https://bbpress.org/documentation/faq/#pretty-permalinks
https://bbpress.org/forums/topic/13?replies=13
In addition to making the change to true in the config, you need to create the rules in an .htaccess file in your server root. Your server needs to support it too.
>>Now, if there’s any interest, where do I send it?
Certainly.
Marky,
I have the same issue. I want to switch from PHPBB to bbPress and keep the internal links the same. You can try to adjust my plugin for this:
https://bbpress.org/forums/topic/771
Depending on how the links are right now at PHPBB you may be able to do it.
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?
Yes, I encountered this problem last night. I had to manually add the topic_resolved field to the bb_topics table then it worked fine.
other than that – superb script – worked a treat – thanks very much!!
ebo