Search Results for 'bbpress'
-
AuthorSearch Results
-
October 17, 2007 at 9:19 pm #2508
Topic: Key master is not allowed to add forums
in forum TroubleshootingSimOnline
MemberI’ve installed bbpress and integrated it with an existing installation of WordPress, but I can’t add any new forums, even though I’m logged in as the key master. I just get a message that I don’t have permission to do that. What’s the problem?
jazbek
MemberActually, I figured out when in the felfunctions the “member” capability was being set (you may already know this) – line 36
I thought that maybe the globals should be changed to
global $bb_current_user;instead of
global $current_user;That seemed to work when I was posting in wordpress as an admin, but I just tried posting with another user account and got an SQL error, so no dice. I have some other stuff to work on right now, but will come back to this later. Maybe the global $bb_current_user needs to be set to the $current_user instead of doing
bb_set_current_user( $current_user->ID );?
October 17, 2007 at 7:20 pm #61130In reply to: WPMU + 404 error
jazbek
Membermy rewrite rules for the document root where wordpressmu is installed are (note, my bbpress is installed in the /discuss directory):
RewriteEngine On
RewriteBase /
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_URI} ^/discuss(.*)$
RewriteRule . – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
then, in my bbpress directory, i put in my .htaccess:
Options +MultiViews
if the +MultiViews thing doesn’t work for you, there’s something else you can put in there (only needed if you want to use the pretty-permalinks). Described here:
slexaxton
MemberThe fix that I made to that function has been tested now and it seems to work, but the fact of the matter is that it could have very well just broke that function all together. I think everything works to my satisfaction now though, so I probably wont worry about it until I run into some more problems. The only thing that gives me hope in that respect is that previously, that
if statementwas failing. meaning that the user was not a bb_user:if ( !( is_object($user) && is_a($user, 'BB_User') ) )so it would create new capabilities for the user (incorrectly at that). But when I changed it to wp_User, for some reason that
if statementcatches and just returns without creating the new capabilities that break access permissions. I don’t know why this works after looking into the code, but until I see negative side effects, I might turn a shy eye (<— i dont think thats a real saying…).Also, on the topic of redundant database entries, I think since we have the integration set up from the WP comment box, it wouldnt be incredibly difficult to simply take out the one database call (somewhere in the wordpress code never-never-land) that actually posts the comment to the database. So we’re not inputting a box from bbpress, but we would effectively stop wordpress comments from being saved to the database since we never actually look at them. This of course wouldn’t work if you were merely copying database entries in order to post the comments as posts in bbPress, but I dont think thats what you’re doing. It probably is two separate database
INSERTcalls, and I bet we can take the wordpress one out, and have identical functionality (assuming we took out wordpress comments and exclusively use felbbreplies()). It’s merely an optimization though, and unless the user base is larger than any of us probably are going to have it might not matter… I’ll look into it tonight when I get home, and let you know.sorry for the long post
-Alex
October 17, 2007 at 12:35 pm #61117In reply to: Key Master Doesn’t Have Permission to Add Forum
richsad
MemberOK I fixed it. It looks like we took some bad advice. There was a post saying to make wpmu and bbpress get along I should add:
if ( isset( $bb->wp_table_prefix ) ){
$bb->usercookie = ‘wordpressuser’;
$bb->passcookie = ‘wordpresspass’;
}
to the config.php
That is the code that was messing things up. Without it admin works fine as keymaster and I see no other problems yet.
slexaxton
MemberThis has been scarcely tested, but I think I have a fix for my bug… weird…
in the bb-includes/capabilities.php file there is a function at the bottom that looks like this:
function bb_give_user_default_role( $user ) {
if ( !( is_object($user) && is_a($user, 'BB_User') ) )
return;
$user->set_role('member');
}I changed it to look like this:
function bb_give_user_default_role( $user ) {
if ( !( is_object($user) && is_a($user, 'wp_User') ) )
return;
$user->set_role('member');
}Instead of checking to see if the bb_user existed, we wanted to check to see if the wordpress user existed, assuming we merged our user table. For some reason, this seems like a bug in the bbPress code. Shouldn’t that be a variable prefix to begin with?
October 17, 2007 at 7:24 am #61115In reply to: Key Master Doesn’t Have Permission to Add Forum
_ck_
ParticipantIf creating a new user and assigning them as a Keymaster works, then it’s obviously a problem where the user in the existing WP/WPMU table doesn’t have the correct role set by bbpress when it installs/configures itself.
For those that know what they are doing, you can examine the new, working admin user under phpmyadmin and compare them to the old non-working admin and see what’s different. I think roles are stored in the usermeta?
Unfortunately I personally don’t have the time/setup to try to hunt down the exact bug with this right now, but I bet there are plenty of people on those similar threads with experience who can tell you what’s wrong.
https://bbpress.org/forums/tags/wpmu
https://bbpress.org/forums/tags/keymaster
(also unfortunately this is yet another demonstration of bbpress integration weaknesses that must be fixed before it will be widely accepted by existing WP users. WP has a role editing table in the admin options, or might be a plugin, maybe that can be ported?)
joe12south
MemberThanks, Felix. Getting closer.
Okay, I added “$bb_roles”
– Now, I get no errors when creating an entry in WP. The topic is created in bbPress. Yay! Progress!
– If I post a comment from WP, I get a blank page back on submit. If I go back and look at the entry, the comment is actually recorded, though. It is also present in bbPress.
– If I post a reply from bbPress, it does not show in WP. Is this expected?
October 17, 2007 at 2:15 am #61128In reply to: WPMU + 404 error
jazbek
MemberNever mind. I was over-complicating things.. it had nothing to do with WPMU. I hadn’t set the .htaccess file for bbpress up yet.
October 17, 2007 at 1:54 am #60617In reply to: WordPress-MU and BBPress
Lifeischoice
ParticipantI am also interested in this type of integration where it seems you have not left the site to go from blog to forum etc….same theme for both? any help for this type of integration will be nice..
October 17, 2007 at 12:55 am #61114In reply to: Key Master Doesn’t Have Permission to Add Forum
Lars-Christian
MemberJust installed bbPress, and experiencing the exact same problem. Normal installation of WP 2.3 (latest version). No clue what might be wrong either.
Making another user KeyMaster works however. So as a workaround I’ve registered a “dummy” to use for this only. Awesome.
Edit: It turns out my “normal” account doesn’t have permission to edit tags either.
October 17, 2007 at 12:39 am #2506Topic: WPMU + 404 error
in forum Troubleshootingjazbek
MemberHey all,
Trying to get bbpress and WPMU to work together. Using a subdomain install of WPMU. I can view the front page of my bbpress install just fine, but if I click any topic, I get a 404 showing in my wordpress theme.
Is this something I have to fix in the .htaccess?
October 16, 2007 at 9:30 pm #61113In reply to: Key Master Doesn’t Have Permission to Add Forum
richsad
MemberHi _ck_, I’m an associate of livwest who posted this. I’ve tried various things. I found the user metadata. The admin account has the keymaster specification and can get to the dashboard. But it cannot add a forum. I added the magic bits to my own account directly in MySQL and became a keymaster too. I show up in the list of keymasters. But I don’t have the right to change a forum either.
This is a wpmu and bbpress mashup. It all went fine at install. Where is the data controlling rights to add forums stored?
October 16, 2007 at 4:14 pm #60978In reply to: Can’t add additional tags to post
jolaedana
MemberI’m still listed as a keyholder, but I’m wondering if perhaps the steps in this thread might fix the issue?
Thoughts before I create a new handle and give it a try? Would it hurt anything?
October 16, 2007 at 1:06 pm #49636In reply to: Emoticons For bbPress?
petitpoulain
Memberi see the emoticons but cant click them ;_;
i tried making this but didnt work yet

https://bbpress.org/forums/topic/emoticons-for-bbpress?replies=55#post-819
October 16, 2007 at 12:04 pm #61127In reply to: Cant change theme – link to theme is wrong
petitpoulain
MemberA quick solution is changing where is “kakumei” to “mytheme” on all files.
But hope a better solution, i tried that too and didnt work

https://bbpress.org/forums/topic/theme-not-found-default-theme-applied?replies=8#post-4407
October 16, 2007 at 11:14 am #2505Topic: Cant change theme – link to theme is wrong
in forum Themespetitpoulain
MemberI installed on localhost. When i first try to change the theme it works, and them i have this message “Theme not found. Default theme applied.”, and can’t change anymore.
I looked to the link themes and they are wrong, pointing to
<br>
?theme=c:arquivosdeprogramaseasyphp1-8wwwwordpressbbpress/bb-templates/kakumeia/&_wpnonce=117154f828how can i fix it and remove that ‘c:arquivosdeprogramaseasyphp1-8wwwwordpressbbpress’ part?????
October 16, 2007 at 9:36 am #61112In reply to: Key Master Doesn’t Have Permission to Add Forum
_ck_
ParticipantThis might be a role assignment issue and you might have to edit the mysql tables by hand in phpmyadmin to fix it…
added – or try this?
https://bbpress.org/forums/topic/no-site-keymasters?replies=6#post-909
October 16, 2007 at 2:53 am #61104Sam Bauers
ParticipantAssuming you are actually talking about bbPress, the best solution I can think of is to make your cookies expire a long time in the future. Then you just need to login once for each user as long as the cookie is there. Anonymous posting doesn’t sound like a solution as you probably still want to know who owns which messages.
To set the cookies to expire after ten years, save this to a file called “_loginExpiry.php” in my-plugins:
<?php
function bb_login($login, $password) {
if ( $user = bb_check_login( $login, $password ) ) {
bb_cookie( bb_get_option( 'usercookie' ), $user->user_login, strtotime("+10 years") );
bb_cookie( bb_get_option( 'passcookie' ), md5( $user->user_pass ), strtotime("+10 years") );
do_action('bb_user_login', (int) $user->ID );
}
return $user;
}
?>October 15, 2007 at 6:39 pm #61107In reply to: Guess the integration is right, but can’t login
petitpoulain
Memberthe right links
http://www.chrismise.com/blog/bbpress
Now i cant login to my blog too(but i solved changing the pass thought phpmyadmin o_O)
. Must have done something wrong. $bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';
$bb->wp_home = 'http://www.chrismise.com/blog'; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
$bb->wp_siteurl = 'http://www.chrismise.com/blog'; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'
/* Stop editing */
$bb->usercookie = 'wordpressuser_2de49fc36f5359dc455c4965686f06d3';
$bb->passcookie = 'wordpressuser_2de49fc36f5359dc455c4965686f06d3';
$bb->cookiedomain = 'http://www.chrismise.com';
$bb->cookiepath = '/blog/';October 15, 2007 at 6:19 pm #61106In reply to: Guess the integration is right, but can’t login
Trent Adams
MemberTell us about the install….what is your wp URL and bbPress URL? What do you have for the integration portion of your config.php?
Trent
October 15, 2007 at 6:13 pm #2502Topic: Guess the integration is right, but can’t login
in forum Installationpetitpoulain
MemberA place all the code. but when i can login! When i use the right password to log on BBpress the page reload and nothing happens.
with the wrong pass i get the “Log in failed page”.
http://www.chrismise.com/blog/bbpres
October 15, 2007 at 6:02 pm #61105In reply to: Install at /bbpress/, run at /forums/?
Trent Adams
MemberStart off by editing config.php to see your wp installation and see if that works. It sometimes just does! Let us know if the cookies still don’t work after doing that!
Trent
October 15, 2007 at 10:34 am #61101_ck_
ParticipantWhat if someone within the company wants to pretend to be someone else and insult the manager on the forum? How would you authenticate who is who on the forum?
In any case what you probably want is the anonymous posting ability which I think a few people have tried hacking into bbPress with various success.
October 15, 2007 at 6:54 am #57814In reply to: Theme: Misty for bbPress
Omegacool
MemberThe new site to download the theme is carpinteriamx.com
-
AuthorSearch Results