Reinstall won’t help you!
When you log into bb, you also log into WordPress, but not the other way around, right? Trouble logging in is usually a cookie problem.
Add this to your config.php:
$bb->cookiepath = '/';
$bb->cookiedomain = '.example.com';
and this in your wp-config.php for wordpress:
define('COOKIE_DOMAIN', '.example.com');
define('COOKIEPATH', '/');
I think that those are all the things you need to set. Give it a go.
To get www.community.example.com
you need to set up a subdomain. This is usually done in your control panel. Bear in mind that some hosts have restrictions on numbers etc.
“The black, green and white really works.”
-> I agree!
I’m thinking that literally translating “tags” is not a a good idea because in spanish it doesn’t sound very meaningful. Same with wordpress “categories”, it sounds strange.
I’d like to suggest anyother word but I still haven’t found a good one
Hey, fel 64!
Then this is a bad new because it is not smart at all changing core files.
However I have a half working “B plan”
You can get rid of that streams.php error by pointing the ‘BBLANG’ to the wordpress .mo file.
You have to change bbpress config.php like this;
define('BBLANGDIR', '/wp-includes/languages/es_ES.mo');
The problem is that when you copy the bbpress .mo to the wordpress .mo it doesn’t translate anything but the wp itself.
Translation files come in two files; a .mo file and a .po file that I think is the source code.
Perhaps you need to add anything to this .po file but I didn’t find out yet.
Some permalinks are showing up fine and some are not for me. What do you have in your .htaccess file in the /forum/ folder? Is it just:
+ Options Multiview
That seems to work for me. Without having a seperate .htaccess file for your bbPress folder, it will get messed up and try and use the wordpress .htaccess.
As for speed, nothing changed for me with and without permalinks on.
Trent
To get bbpress login integrated with WPMU I had to add the following lines to config.php, after $bb->wp_xxx settings:
if ( isset( $bb->wp_table_prefix ) ){
$bb->usercookie = ‘wordpressuser’;
$bb->passcookie = ‘wordpresspass’;
}
Because WPMU does not use HASH in its COOKIES.
Does editing your .htaccess to just having the following and nothing else work?:
Options +MultiViews
Does that work? Having it of course in your /bbpress/ folder only so that it is not screwing up your wordpress .htaccess file. Does that work for your installation?
Trent
Thanks for your explanations, i hope bbPress will be as clever as WordPress.
Did you put the .htaccess file in your http://bqtrademark.com/bbpress/ from the instructions? I see that you are using ‘slug’ based entries. Maybe try putting the config.php back to false instead of slugs and see if that helps you. Since it is getting your wordpress installation, i am thinking it is the wordpress .htaccess file and not the bbPress file.
Trent
For error: “Cannot redeclare class streamreader …”, read this…
https://wordpress.org/support/topic/111411?replies=9
like i said, i haven’t implemented this plugin as of yet (haven’t even installed bbpress, just planning to in the near future), but will this plugin allow me to put the “Add this topic to your favorites” link on the wordpress post page? i would like to have that capability to allow the users who don’t comment to create a list of their favorites without having to follow the link to the thread in the forum to do so.
I got to thinking… being that it renames the image to their usernames, I thought that the following might work, but it doesn’t…
<img src=”http://yourkahil.com/forum/avatars/<?php echo $strtolower($user->user_identity); ?>.jpg” alt=”avatar” />
Shouldn’t that work? I’m trying to get it to display the current username of the person visiting the site, provided they are logged in. If they aren’t logged in it shouldn’t display anything. Later I’d like to figure out how to do an if else statement so that if the visitor isn’t logged it, it will display a default image.
do you mean that “after upgrading and changing the permalink structure of a forum; the old permalinks does not redirect to the new one” ?
No, I just meant that with the current code, if you’ve somehow managed to change the slug, you’ve broken the old links. But, as you point out, bbPress knows how to move “sideways” across different kinds of permalinks.
WordPress allows you to change the slug and automatically redirects your old links to the new slug; it’s more clever than bbPress is at the moment
Thanks! I went ahead and put the two as different prefixes. Can you make sure the developers put a note about that in config.php!
Yes, it will. WordPress has (what is usually) wp_posts and bbPress has (ditto) bb_posts, with a different table structure, so there’d be issues.
What are the dis/advantages of putting tables in the same database, does anyone know?
karaboga, permalinks should be permanent. Perhaps we can work on redirecting old permalinks to the new ones. Better yet, that’d be a great plugin
mdawaffe, do you mean that “after upgrading and changing the permalink structure of a forum; the old permalinks does not redirect to the new one” ? In this forum, for example we if write
https://bbpress.org/forums/topic/100
it is redirected to the 100th topic with the new permalink structure.
—
Yes, permalinks should be permanent. But, in WordPress we can change the post slug, and then the permalink of the post is changed. Why cannot we do so in bbPress?
“But after what I’ve integrated both of api’s: the wordpress and bbpress; this resulted in the following error:
Fatal error: Cannot redeclare class streamreader in /var/www/pm/forum/bb-includes/streams.php on line 26″
-> same error here
Before I break things, I wanted to know if I can use the same table prefix for both BBPress and WordPress? The reason I ask is because I have several sites in the same database and I’d like to pick a convention. Anyone know if this will cause any problems?
Well, your guess was correct! Your tip got me to thinking about cookies – I’m a little rusty on my setcookie() syntax! Anyhow, I decided to install WordPress, even though I don’t need it just now, because if I could get that to integrate across directories, then I could surely do what I’m hoping for with the gallery.php page.
That helped me to understand the interactions of the cookies and directories and domains. All that to say, I was able to get it to work using the following in config.php:
$bb_cookiepath = "/";
$bb_cookiedomain = ".mydomain.com" ;
I believe that if cookie domain is not specified, then it will default to be the root of the directory in which the script is running, i.e. mydomain.com/forums/, making it unavailable to any other directory, including parent directories. You probably already knew that, but just putting it out there in case someone else has the same issue.
For anyone else who gets the same error in future, its the WordPress config file, the only way I got round it was to do raw database calls, but including it generates errors.
Hi,
In our forum, we can see the topics filed under any tag. But if we open the all tags page (wordpress-tr.com/forum/tags/, we cannot see the tags, and we see the error message, “No input file specified.” What can be the problem?
A similar problem was discussed here, we use pretty permalinks and Options +MultiViews works, but still has that problem.
I really do need to know what your .htaccess
file looks like in order to help you.
Also, there may be some issue with your bbPress running on http://www.bqtrademark.com and your WordPress running on bqtrademark.com
by looking at the code for the “upload avatar” plugin I found this…
strtolower($user->user_identity);
This is what I have now, but nothing displays for the filename, just yourkahil.com/forum/avatars/.jpg
<?php
/*
Plugin Name: WP Avatars
*/
function wp_aud( $felID ) {
$avatar = strtolower($user->user_identity);
$bburl = ‘http://yourkahil.com/forum’;
echo ‘<img alt=”avatar” src=”‘ . $bburl . ‘/avatars/’ . $avatar . ‘.jpg” class=”avatar” />’;
}
?>
Hi, my request will be useful especially for people using non-English bbPress versions.
There are some permalinks which are not translateable or changeable in bbPress. For example, in WordPress, we can change the slug of the permalinks for “category”.
I think it will be very appropriate if that kind of property is added to bbPress. These are some of that slugs:
topic, profile, forum, view, no-replies, untagged, tags, replies
(By the way, can we change these slugs by any hack?)