OK look at this:
$forum_restrict_keys = array(
"1" => "davidbessler,testman",
"3" => "davidbessler,",
);
function forum_restrict_check_name() {
global $bb_current_user,$forum_restrict_keys;
if ($bb_current_user){
$allowed = strpos($forum_restrict_keys[get_forum_id()], get_user_name( $bb_current_user->ID ));
if ($allowed == "") {
echo "[blocked]";
add_filter( 'get_forum_name', 'forum_restrict_blank_name');
} else {
echo "[Not blocked]";
}
}
}
function forum_restrict_blank_name (){
echo "";
}
add_action( 'get_forum_name', 'forum_restrict_check_name');
?>
That puts [blocked] instead of the forum name in a forum that user is not allowed to see, and [not blocked] on a forum he is allowed to see. How do I get the forum name back in there instead of [not blocked]?
By default, the bbpress-integration.php plugin that you are using in WordPress brings over the registrations from bbPress and gives them the default role that you have for WordPress. That would mean that if they are given author status then that would be the default role for new members in WordPress. Maybe check that out.
I tested this on my test forum and then changed the default role from subscriber to admin and sure enough the new user that I created came across in WP as an admin.
Trent
Yeah, I’ve got that. Seems like this might be something to add to the next version of that plugin.
Anyway, thanks again Atsutane for your great plugin and the fast updates!
i believe it is the latest version – i downloaded it today – .75 i think
it would be so so so nice if this works!
Cheers Trent
Short of the obvious stupid answer (upgrade or quit using IE
I think we need to test this out with more IE6 users. I think I have one old PC kicking around and will do some testing on this.
Trent
I tested it out and it sent me an email when I posted a new topic. That works for now. But, like we said, an “add forum to favorites” plugin is needed. For anyone reading this, what we are talking about is strictly for the plugin called notification_all.php which can be foun here:
https://bbpress.org/forums/topic/313?replies=34#post-1784
hehe, of course it’s that simple
. Thanks!
You can actually edit rss.php to get it to 50 if you want as well! Just search for the number ’32’ in that file ![;) ;)](smileys/wink.gif)
Trent
Alright. I’ve done some investigations and I think I know why I get a blank space: when a new user registers through bbPress it seems like he’s not given any “display name”.
i found how to make the 32 latest topics in the forum! just link to rss.php!
Correct me if i wrong .. by default when a user is regis. WP will set the “display name” equal to “username”. I try the code already and i dont get a blank name
Anyway maybe i will change the code to do a double check.
Does any one has a template test page already up? or is there a plugin, so you choose a template from a ddlb and the page shows the forum in the chosen template…
Great. Thank you! There’s only one little problem: if the user haven’t entered a nickname no name at all is shown. I guess it should be written so that if the user has a nick name – show nick name; if the user dosen’t – show username.
I update the plugin already .. Now it gonna show “display name” instead of “username” like before. Tell me how it going
Does anybody know how to combine this great little plugin with the Use display name plugin? I want the it to show my nickname instead of my username.
I updated to 0.75 and that made it work! I thought I had the latest version, but, you know… I didn’t.
Thank you!
great plugin, it cleaned up my front page quite a lot. Thanks
I have encountered exactly the same problem!
I have the latest version of bbPress (downloaded only a few hours ago), php version 4.4.4 and apache server.
Link to my forum: http://www.thecalmingseas.com/forums/
/Staffan
Oh nice!! Thanks for the link Michael!
I just manually adjusted the “latest” svn files lastnight, for .80 alpha, which is currently running on my forums now.. I manually implemented the [Resolved] codes back into the files, now I won’t have too!
![:D :D](smileys/bigsmile.gif)
Thanks again!
spencerp
Hahahaha.. I know.. tell me about it lmao..
I told this one guy on GoogleTalk before, I wish someone from Firefox corp, could sneak in as employment for a job in the Microshit Corp building, and some how replace/code in, for the Microshit IE6 upgrade tool.. and have it automatically upgrade them to a latest FF browser(s).. hahaha
spencerp
hey. I’ve integrated the login/registration no problem, but now I’m trying to do something about people having two separate profiles.
IMO the profile in bbpress is alot better than in WP (if only because it’s naturally not in the dashboard) so I’m wondering if just adding the users bbpress profile link in WP would be the way to go?
I was able to get the profile link to show up in WP, though I suspect that because it wasn’t in the loop (whatever the heck that is) it showed the link to admin on my test subscriber account.
Is there a way around this, or perhaps a better way to go?
Thank you chrishajer & madawaffe,
I am on BBpress 0.74, and I checked my server settings which are…
“
Support for PHP 5
With PHP 5 support, you can program using the latest version of this server-side scripting language and take advantage of existing applications and add ons written in PHP 5. You can also run both PHP 4 and PHP 5 simultaneously on the same site.
“
I also tried uploading an .htaccess file to my forum root with the first line stating:
AddType x-mapp-php5 .php
And I still received the same error. After that I moved the file to my template directory, and then to my site directory, and I still had the same problem. I thought this was strange because I am receiving the same results as those mentioned in the post chrishajer linked.
I then called up my hosting service, Diablo Valley Hosting, which is a reseller of Godaddy, so it was Godaddy support. They then told me that in order to assure php5 I would have to change all of my extensions to “.php5.”
I asked and .htaccess, and was told that there was a solution, but they couldn’t offer support on it.
Thank you so much for the help thus far. I am not sure if there is a problem with my .htaccess file or something else, for I entered the line “AddType x-mapp-php5 .php” into the first line of the file. Anyhow, any suggestions or direction would be greatly appreciated.
Thanks again,
Orion