I’m having the same issue it seems line 212 of functions.bb-topics.php is where things go south. I am running bbPress is 1.0-Alpha-6 and WPMU 2.7.
Effectively bbPress tries to insert an empty string into the topic_id field, which is an INT with auto increment and of course MY SQL returns in error “Incorrect integer value: ” for column ‘topic_id’ at row 1″.
Digging into the code further the defaults array is setting topic_id = false on line 151, remove topic_id from the defaults and things work fine. Looking at trac it seems this was fixed in r2014. I’m going to install and see what happens.
what am i supposed to do then?
Hi!
i am installing a bbpress forum for my website… Eveything is right but the translation to spanish its not running good. Some words are translated and some others no. I have modified the es_ES.po so to have all the english words translated to the spanish. But… some words are running and some others no… why could be that? What do i have to do so to fix it up? Do i have to touch all the theme fileĀ“s so to put each word directly to spanish or it is another way i am not seeing?… please HELP!
Thanks!
My website is: http://www.soyservicios.com/foro/
I run an integrated bbpress / wordpress site. It has been live for about a year. I check in at least ever 2-3 weeks or so, but infrequently based on most standards.
I tried logging into my bbpress site (cross log-in has never worked for me) using my administrator ID, and I get an error ‘user does not exist.’
I tried loggin in as other users (moderator, subscriber, etc.) and I get the same error for those as well.
I cleared cache, retried – same results.
I try logging into the WP side & can login without problem. I can get to my WP dashboard (2.5.1 btw) but not my bbpress dashboard (0.8.x – can’t recall & can’t access my dashboard).
I did try the ‘reset’ PW option from the WP side for one of my failed bbpress users. It gave me a new PW, and still not able to login to the bbpress side.
I see the database still has all of the users in wp-users, and the passwords are updating.
The last action I took ‘knowingly’ was to delete a spammer user ID from my role about 2 weeks ago. I tried logging in a couple days later & no access. I’m not saying it is correlated…
I also remember fumbling through my Yahoo domain management page, and I recall resetting the PW for one of my DB’s (but not my wp DB).
So – I’m inclined to think that I either accidentally reset an administrative PW that allows the link between BB and WP to hit the same wp-users table?
Or – something far more nefarious from my spammer friends (who seem to be the ONLY readers of my blog…thank you!).
Thanks for any input / advise. I hope to have included all the relevant info.
Im using BBpress Version 1.0-alpha-6 with WP 2.7.1.. i also have it intergrated cookies and database.
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');
bbPress
I really really wish he would put it in bbPress subversion. Would be a lot easier for me to make sure the plugin is updated.
Ok, I’ll take a look at that. I’m actually planning on converting my phpBB2 forum over instead of moving to phpBB3. I have made mods for phpBB2 and would like to make the same plugins for bbPress, but not if they already exist.
Wow, thanks for that. Any specific action or filter you’d recommend I attach this to so I can insert it without modifying template code? Like the sidebar? I’m new to bbPress and I don’t know what all the plugin API’s are. If I attach it to the sidebar, do you want the code?
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.
First: Thanks to all developers and coders for coding and working on bbpress and specially to ck for great plugins.
So, I have installed bbpress 0.9.0.2 installed (http://spinus.info/forum) and Topic Icons plugin 0.0.5
Trouble: sticky topics are displayed only on front page in “latest discussions” field. If I try to open a sub-forum, where sticky topic is situated in separate window, a topic is not visible.
So, there is a sticky topic: http://spinus.info/forum/topic.php?id=102&replies=1
You can see it in a latest discussions field as sticky.
But if you would open its parent forum http://spinus.info/forum/forum.php?id=30
Sticky topic is not shown
what’s a matter? Please, HELP!!!
It’s definitely possible to integrate bbPress with outside authentication systems!
There are some great posts about it here… it mentions that there are four places to tie into bbPress’s auth:
https://bbpress.org/forums/topic/integration-with-non-wp-software
What bulletin board system are you using? Maybe you could write a bbPress plugin to call your outside avatars inside of bbPress…
Just install my bbpress theme switcher plugin, disable the dropdown.
Then replace function bb_ts_get_theme() {
with something like this (untested, will need some editing)
function bb_ts_get_theme() {
$theme="kakumei"; // default fallback
$domain=strtolower($_SERVER['HTTP_HOST']);
if (strpos($domain,"first-domain.com")!==false) {$theme="1st-theme";}
if (strpos($domain,"second-domain.com")!==false) {$theme="2nd-theme";}
return $theme;
}
I’ve now made a full plugin that uses cookies so any user can switch languages.
https://bbpress.org/plugins/topic/bbpress-language-switcher/
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
There is a mini-plugin for i18n usersnames.
https://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran#post-14205
But there are fundamental flaws in how bbPress uses usernames and unicode characters might interfere with proper operation.
I also don’t see any real attempt to sanitize in there, so there might be security risks.
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.