At least the system can find the file now.
The Cannot redeclare errors are usually because a function of the same name has already been declared, thus it can’t be redeclared.
What versions did you integrate?
hey chris, thanks i just did that.. but i still get an error, it some what smaller though but its this:-
Fatal error: Cannot redeclare _http_build_query() (previously declared in /home/eraxeco1/public_html/massbase.com/community/bb-includes/backpress/functions.compat.php:21) in /home/eraxeco1/public_html/massbase.com/wp-includes/compat.php on line 45
now i haven’t touched any other file, i havent touched compat.php either.
Try using the file path to the file rather than a relative path. The system is telling you it can’t find the file in that location. Try this:
require_once('/home/eraxeco1/public_html/massbase.com/community/bb-load.php');
Im using the latest alpha version, My wordpress is on root, and my forum is on a folder called /community.
I put this on wp-config.php :-
require_once('/community/bb-load.php');
im getting this error:-
Warning: require_once(/community/bb-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/eraxeco1/public_html/massbase.com/wp-config.php on line 2
Fatal error: require_once() [function.require]: Failed opening required '/community/bb-load.php' (include_path='.:/usr/lib/php') in /home/eraxeco1/public_html/massbase.com/wp-config.php on line 2
This?
https://bbpress.org/forums/topic/i-want-to-use-bbpress-function-on-wordpress
Most of the posts I’ve seen have been old regarding including bbPress inside WordPress.
There is this for the newer alpha versions, but it only does a couple things:
https://wordpress.org/extend/plugins/bbpress-live/
Sorry, I deleted the first one as a dupe of this by mistake. Should have undeleted it. My mistake.
You can set a cookie and make it semi-permanent.
Because there is also a filter in that function, you do not need to hack the core.
$locale = apply_filters('locale', $locale);
You would make a mini-plugin something like this
add_filter('locale', 'language_switcher');
function language_switcher($locale) {
if (!empty($_REQUEST['lang'])) {$locale=substr(strip_tags(stripslashes($_REQUEST['lang'])),0,30);}
return $locale;
}
You still have to write the code to make some kind of pulldown/menu to select the language and set the cookie.
There is a language switcher for wordpress that could be ported to bbPress, I think there was some talk about it around here and someone else made their own too.
Oh here it is:
https://bbpress.org/plugins/topic/user-languages
im getting the same error, but the reference above (chrishajer’s) doesnt help.
iv looked everywhere and the documentary, it just shows for WP functions to go in bbpress… i need a vice versa
i just want to add bbpress functions to wordpress what header files do i have to include where?
how can i use bbpress functions like: – <?php bb_new_topic_link(); ?> in my wordpress theme?
what header files do have to add where?
please dont delete this topic.
i would like to know how to do the other way round of adding BBPRESS functions in wordpress.
HI sway,
I dont think it does work like that. It’s a confusing name choice as a Category means something different in wordpress. Category in this instance means and equivalent of “section” or a parent group of forums so…
Category
– – Forum
– – – – Topic
– – Forum
– – – – Topic
– – – – Topic
– – Forum
– – – – Topic
If i can link to an old example i made (from September last year) , you can see that the different categories have forums as ‘children’: http://kevinjohngallagher.com/___alpha/bbpress_as_phpbb/
The reason the language does not match up is because .0.9.04 is not cookie compatible with WordPress 2.7.1. That’s why the keys are named differently.
To integrate those two versions, there are a couple solutions:
https://bbpress.org/plugins/topic/freshly-baked-cookies/
https://bbpress.org/forums/topic/bayanimecom-wp26-and-bbpress-09-complete-cookie-integration
https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101#post-17409 (the bold parts)
You might think this is another question about integrating bbPress with WordPress, but it’s not! I’m building a new website, and I would like to use bbPress as the support forums for it. The website has it’s own users table and stores the usernames as a varchar(255) and the passwords as varchar (255). All passwords are stored as sha1 hash. Basically what I want to do is to only have one place to login, that being on the main site, when the login is successful it’ll also set a cookie so the user may also use the bbPress forums. I would also like to use the avatar people upload to that site for the avatars on the forum. So here’s a few questions:
1. Is this even possible to set the cookie for bbPress from the login outside of bbPress?
2. Where should I start looking or poking?
3. For the avatars where should I start looking?
Thank you very much and if you need more information about my setup, please ask!!
Can you log in to WordPress?
What version of WordPress?
Did you try flushing all your browser cookies?
I admit, I’m using the same tool (but I force all registration through WP so I run a plugin there). It’s actually used with Bad-Behavior and Akismet, since those were catching about 90% of the forum spam (and 99.99999% of the blog spam). Dunno what it is but you get more spammers able to make accounts via bbPress than WordPress.
My bbpress shares a database with wordpress.
This was fine in 0.9.0.1. Is it a problem now?
I checked the database, reset my password (which in fact still works perfectly on the blog side of things).
At least one user has logged in and posted to the bbpress forum, but I can’t.
But I can’t login. I registered a new account, and the password did not work.
By the way, what does “deep” integration involve? When I think of integration, I think of sharing logins between WordPress and bbPress, and possibly using the same template system so both sides share the same header and menu system.
On another side I solved the template issue by having a single “master” template system and CSS file that handled the page header, main menu, footer, and sidebar, leaving the specific bbPress and WordPress templates to only handle the stuff inside the main content box.
As for handling logins, I made the login button go to the bbPress login page (in all its themeable glory) no matter where you click it.
What are you doing when you get that error? Are you integrated with WordPress? What version of bbPress did you install? Are you using a language other than the default?
Can you compare the version of bb-admin/functions.php to the default one for whatever version you’re using (to make sure the whole thing was uploaded properly)?
Do your secret keys have any weird characters in them (things that work properly in WordPress have created problems in bbPress before. Things like ‘ / > <.)
Can you post what you were trying to do and the whole error message?
Hi there,
I am trying to find solution for following issue:
– Wordpres with a plugin extending registration (such as CYC, Register Plus, other user-field-extending ones)
– BBPRESS uses only the “basic” WordPress fields on the “Edit Profile” page
Now I want to enable the editing of the “custom user fields” from the wordpress plugin in the BBPRESS “edit profile” page
Any ideas? For now I am open which plugin to use in WordPress (CYC or Custom User Fields, …)
Help much appreciated, thanks,
PB
Hello there!
I used 2 local copies of bbPress. One for integration with WordPress and another one for developing the theme. I finished the work in their respective copies but when I used the theme in the integrated copy, I lost admin access again (had to use the fix admin access plugin) and now when the forum page is opened in the browser it says
“Fatal error: Call to undefined function bb_uri() in C:xampphtdocsjecforumsmy-templatesbbfameheader.php on line 56”
Now I don’t get it. Why the bbPress is not able to fetch the definition of its own function?
Any help will be highly appreciated. Thanks in advance!