hello all.
I have tried some search about this but did not find anything.
I’d need the new users on a bbPress forum to be set to Inactive by default.
the reason is I need to set up a forum for an experiment in secondary schools. we have to take in account the possibility of rude behavior from people not participating to the experiment.
the administrator is not likely to be very present on line, so it would be a problem if anybody could just register and start posting indesiderable contents, that could sit there for a while.
a temporary fix would be setting the default role for users to Inactive (the administrator then has the possibility to verify that the user is really who he say to be). I’ve tried to look into the code, but was not able to figure it out how to do it. hints would be welcomed.
another option (the one I’m currently adopting) is removing the register function and putting something like “write to this email address if you want to be registered”, then using this plugin to allow administrator to add users:
http://bbpress.org/plugins/topic/admin-add-user/
but this is not how really we want it to be. an example of it is the “candidate” system used in vanilla forum: you candidate yourself to be a member of the forum, and if admin agree then you’re in. (why then not using vanilla? because there’s a graphic customization people have worked into, and we are running very short on deadline, say the url is in this morning newspaper…
).
I’d also be grateful for any other suggestions.
Change this line in your config.php:
$bb->mod_rewrite = slug;
to this:
$bb->mod_rewrite = false;
That should fix the problem. Your server configuration does not support the .htaccess rewriting rules you have set up. Changing this to false turns off the need for mod_rewrite and .htaccess. You can get them working later.
Also, it’s possible the might work if you spelled and quoted it properly. It should be
$bb->mod_rewrite = 'slugs';
and that will work if your server supports mod_rewrite and you have the proper .htaccess rewrite rules in place.
amazing ty so much!
BUT I discorverd a new big problem doh 
Look here:
http://www.jompen8.byethost13.com/wordpress/bbpress/
whatever i click on, for example the thread “Your first topic” , I came to my wordpress site 
I dont want that ;/ All this problems. I´m sorry but if u can help me for the 111 time i would be so happy.
Is it something with the config-file again?
Best Regards
Johan
I think for bb-plugins.php, you would need to make this change:
if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) {
foreach ( glob(BBPLUGINDIR . '_*.php') as $_plugin ) {
$_data = bb_get_plugin_data( $_plugin );
$_plugins[$_plugin] = $_data ? $_data : true;
}
}
That’s the whole block of code from trunk. Looks like they test now to see if glob is callable, then actually call it. That should fix your glob problem.
Regarding the glob thing – you are going to need the same sort of fix for the glob anywhere it’s used in bbPress since your host disabled it. You would have to grep through all the code and say something like:
if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) {
whatever test that used to use glob;
}
Not sure the best way to deal with that.
I would like to know if there is a particular template tag to check (in profile for example) what user that profile belongs to.
i.e if is user id=x then do sth.
It might sound strange, given that the profile already takes care of this. But I need to add some data to only a few users, and that data can’t be “user-editable”. If this could be done with the custom profile fields plugin (add some fields which are only admin editable) then, please, instruct me.
Otherwise, I just need to hardcode the data for these few users.
Thanks in advance.
Okey, i want to that integration and i have put the folders correct.
But why can´t i see the forum there then :S ?
It only a blank page as u see at http://jompen8.byethost13.com/?page_id=24/
sorry if i´m stupid but it would be so nice if i could get this forum to work on the site 
regards
johan
Interesting (16:12 CST):
Your bbPress URL (http://www.johnwade.ca/Forums/) is not a subdirectory of your WordPress URL (http://www.johnwade.ca/puppyplaydate).
Sharing login cookies is possible but is more complicated. See the documentation about integrating bbPress and WordPress.
In the meantime, remove the http://www.johnwade.ca/puppyplaydate setting from your config.php file, or you may not be able to log in.
The formatting of the config.php got jazzed up posting it here, so now there are lots of parse errors in it. Hard to say what it is without having the actual config.php in hand. It’s either on line 16 or right before line 16 and then it gets reported as line 16. This is line 14 in a stock config-sample.php:
$bb_table_prefix = 'bb_';
Maybe there’s a problem with that line in your config?
I’ve heard of this problem recently but have not seen a solution.
https://bbpress.org/forums/topic/rss-result-is-empty#post-13571
I thought I saw something regarding RSS checked into the code around revision 1044 – 1046 so maybe it’s fixed in development:
https://trac.bbpress.org/changeset/1045
There are lots of people out there who know how to fix it.
I think the problem you are having related to glob()
is fixed in revsion 1075. I would download that as a zip archive. It works around the fact that glob is not available on some servers.
You can download any revision you want right here (look at the bottom of the page for zip archive and download that, when you find r1075.)
https://trac.bbpress.org/
There is a quick fix also:
https://bbpress.org/forums/topic/php-error-messages#post-13143
Isnt it anybody out there who knows how to fix it?
thanks for the info. Have installed and sync’ed WordPress and BBpress on xammp now. Really there is nothing like an install you can play with without worrying about it all crashing 
Re the integration plugins with security issues, what is the situation with those?
Sam, this is great news. I’m not a coder but I’m fairly good with CSS. I could help with writing classes for some of the more popular themes.
I got this error when i tried to install :
Warning: glob() has been disabled for security reasons in /home/vol2/byethost13.com/b13_1521748/htdocs/wordpress/bbpress/bb-settings.php on line 169
http://www.jompen8.byethost13.com/wordpress/bbpress/bb-admin/install.php
Can anybody help me? Please
Regards Johan
Interesting…
I don’t know why it would redirect to the home page vs. giving you a failed login attempt. I registered, received my email, tried logging in, and it seemed like it just redirected to the front page of the forum again.
Is the WordPress installation going to be here:
http://www.johnwade.ca/puppyplaydate/ ?
If so, with integration, the bbPress installation should be here then (I believe):
http://www.johnwade.ca/puppyplaydate/Forums/
but it’s actually here:
http://www.johnwade.ca/Forums/
I wonder if the cookie path is wrong and that prevents bbPress from setting the proper cookie and thus thinks you’re not logged in, or that you logged back out since there is no valid cookie?
I checked the cookies that were set and I have a cookie path of /puppyplaydate/ for wordpressuser and wordpresspass. I would expect the cookie path to be /Forums/ with this setup.
As a test, I just stopped accepting cookies for my site (integrated with WordPress as well), then tried logging in. If I tried to log in while I was viewing a forum, it just silently redirected me to the forum home page. This seems like confirmation that it’s a cookie issue at this point. I can make mine do what yours is doing.
If I set the 2 cookies manually in Firefox, I am logged in! Check this out:
Screenshot of me logged into your forum:
http://www.chrishajer.com/bbpress/ppd-profile.png
Screenshot of the cookies I manually set (note path /Forums/
):
http://www.chrishajer.com/bbpress/ppd-cookies.png
Here is the response from your server where it tries to set the cookies with a path of /puppyplaydate/:
http://www.chrishajer.com/bbpress/ppd-response.txt
HTH
In your config.php, you should start with mod_rewrite being false. I suspect you have it set to true or slugs, and that is creating problems for you as well.
$bb->mod_rewrite = false;
That should take care of the bb-admin issue, unless you are currently logged in and NOT a keymaster or admin. If you are logged in as a regular member and try to access the admin page, I believe you are directed to the bbPress installation instead of admin.
UPDATED INFO after thinking about it: It’s also possible that this redirection is occurring because the creation of tables and modification of tables did not go well, and it’s not reading your user information properly and it does not know you are keymaster with access to bb-admin.
Regarding the SQL errors, is it possible your WordPress installation already used ppd_ as a table prefix, and then you used it in your config.php for the bbPress table prefix as well? If that’s the case, the errors are because it is trying to create tables that already exist or modifying tables with the wrong names. From the snippet of config.php you posted earlier, you showed $bb->wp_table_prefix = 'playdate_';
but also ppd_
in the line below (the ‘for example’ part), and the errors here show ppd_ as the table prefix. Oddly enough, there are some errors with just ppd and no underscore as the table prefix as well.
Seems like it’s a combination of configuration things at this point. Maybe the $bb_table_prefix was set to the same thing as the $bb->wp_table_prefix with the exception of the underscore (so, ppd vs. ppd_). That info doesn’t agree with the piece of the config.php you posted though where you said $bb->wp_table_prefix = 'playdate_';
I suspect the whole picture has not been posted since you’re working on it and trying things and then you make a change and the old information no longer applies.
Right now, you have the database connection issue figured out. You should be using different table prefixes for wordpress and bbpress: wp_ and bb_ are the defaults. In the bbPress config.php, the $bb->wp_table_prefix should be the same as whatever it is in your wp-config.php and THAT should be different from the bbPress table prefix, set earlier in the config.php at $bb_table_prefix.
Is it possible the problem lays in my use of local host in spite of the “99% chance you won’t need to change . . .”
What does one change it to when one is the 1%? Is this even a possibility if the same info was used in wordpress installation?
I cut and paste just the actual db name, password and username and nothing else.
I don’t know whether I’m using a port or socket, that’s getting out of my pay grade. I’ve done multiple installs though of wordpress without problems.
jw
sigh …
I cleaned house and started from scratch, and still:
Cannot select DB.
As a side question (2)
In the section of the code for “What are you going to call me?” Can the content have punctuation?
Second, I’m not clear on the slug reference. I think I understand the end result but do you actually type in the word ‘slugs’?
jw
Thanks a million Chris! All that was needed was some extremely simple html as you have pointed.
This error points to a problem in the config file:
Parse error: parse error in /home/cust2/user1080446/html/bbpress/config.php on line 4
Line 4 is the first line of the database config stuff, starting with database name. This error was not mentioned previously by you and maybe there is a new problem there.
The bb_walker
error is interesting. In your error message, it’s lower case, but in the source, it appear like this, with some uppercase: BB_Walker_ForumAdminlistitems
and BB_Walker
. Not sure if that’s a typo in the source or a problem with the upload or something else.
My guess is that it’s used in lowercase for the function call, and it’s defined in uppercase, which doesn’t work, I don’t think. I’ve had that happen before when the development of a plugin or function is developed on a Windows machine where the case does not matter, and it’s loaded onto a Linux server where the case does. Maybe it’s something like that?
Looks like your server is Linux, so case matters there.
This is not a comforting note from the trunk: backPress: BOOM! this will break *everything*
Did you download the 0.8.3.1 release or a trunk release? I am fairly certain trunk is broken right now, but 0.8.3.1 should work. There was a post from sambauers here about a month ago saying that r980 was the best version to try:
https://bbpress.org/forums/topic/broken-profiles-for-users-with-spaces-in-the-names?replies=5#post-12769
bbPress is in flux right now. It’s not normally anywhere near this difficult to get up and running. Sorry for the troubles.
Hi there.
I am working in a post preview plugin. you can see it here http://www.klr20mg.com/dev/bbpress/.
I dont know if that is enough to release a beta version.
The plugin only sends the textArea text, applies filters and shows the text using ajax.
The preview only works with replies and has no design at all
.
What you think?
Test url http://www.klr20mg.com/dev/bbpress/
see ya.
Fel64, you are totally right. That wasn’t so much an appeal to inferiority as it was an appeal to the bandwagon: I simply think people tend to judge a product based on what’s included, moreso than what’s excluded. I could have worded that better.
I could try to make a better case for an attachments plugin, but I run the risk of becoming “that crazy dude who’s always whining about attachments.” Besides, I don’t feel like I should try to argue the point, because I don’t really hear anyone arguing *against* it.
The best case I can see for any plugin is a chorus of users singing the same tune, asking for such an extension and offering what resources they have to contribute to it. I appreciate the input from everyone on this discussion, and hope we can continue it to the eventual development of this feature. As I mentioned before, I will look at the code, and do what I can (hack around) but then I’ll run the risk of being “that crazy dude who thought he could write a file attachment plugin.”
Which might be slightly better than being the dude who was just whining about not having one. But still.
(which if I remember from my signatures plugin has no action hook unfortunately and templates will need to be edited)
No, there’s been hooks for the post form for as long as I can remember.
pre_post_form
post_form
post_post_form
Charlie: ticking off boxes because other software ticks those boxes is feature creep. Goes against, as you say, what bbpress is about. And even if it didn’t, it makes no sense; feature ideas should be evaluated on their own merits. I’m not saying attachments shouldn’t make it in (personally, I don’t much like file attachments), but that you can make a much much better case for it than saying that it’s a square on the Forum Matrix that bbpress doesn’t have.
I can’t speak for the world at large, but I think that many people might be passing up a great product (bbpress) because they are looking for forum software with a few more “essential” features. A great number of other forum packages on the ForumMatrix offer multiple file attachments, and while I agree with the developer’s dream of keeping this thing nice and lite and agile, I think anytime a red X on the ForumMatrix is eliminated, it increases the overall appeal of bbpress to the forum dev community.
HowToGeek, I don’t know how much use I’d be to you as a coder, but I’m willing to do whatever I can to help you start a plugin like this.