Yep, you have to sanitize yourself, the database objects presume anything they’re passed has been already
My case is a little different then the search results I had, so a new topic.
As soon as I change my permalinks for bbPress, I get 404 errors for bbPress (even for bb-admin) so I lost control of everything and i had to manually delete the .htaccess file
Now when I switch to the 2nd permalink option then the forum loads up, admin panel is accessible too but any topic page or forum page gives a 404. And now when I switch back to none settings of the permalink everything works fine.
I delete the WP .htaccess too but it looks like that its permalink are working without any .htaccess file
I am a little lost here to what could be the problem.
Also when I delete the .htaccess file, the admin panel keeps redirecting me to the front page until I log out and login again from bbPress side.
I am stuck with the default permalinks option now.
Ok…after further testing and striking out, here is what a guy helping me and I have found out. We go through the ‘deep integration’ process, requiring the wp-load.php file in bb-config.php. Then we change all the bb_get_header(); with get_header();. That passes through the Hybrid News header’s style information but not the navigation.
When you link directly to the front-page.php, it shows the whole header, which is navigation, a banner ad I have in the header, everything. The same applies when you link directly to any of the affected pages in bbPress. However, it stops executing from there. So you just have the header and that’s it. There aren’t any errors showing up either.
So using my limited knowledge of PHP and my only slightly more developed since of deduction, one thing we can think which is different is we are bypassing:
path to bbpress / index.php
Here is that code:
<?php
require('./bb-load.php');
bb_repermalink();
$bb_db_override = false;
do_action( 'bb_index.php_pre_db' );
if ( isset($_GET['new']) && '1' == $_GET['new'] ) :
$forums = false;
elseif ( !$bb_db_override ) :
$forums = bb_get_forums(); // Comment to hide forums
if ( $topics = get_latest_topics( false, $page ) ) {
bb_cache_last_posts( $topics );
}
if ( $super_stickies = get_sticky_topics() ) {
bb_cache_last_posts( $super_stickies );
}
endif;
bb_load_template( 'front-page.php', array('bb_db_override', 'super_stickies') );
?>
This has to be easy (for those who really know PHP and WP). Right? Sadly, I’m not that kind of guy. It’s a bummer to have this kicka$$ WP theme and not have it be able to merge thematically with bbPress.
The steps I did:
* install bbpress without setting any WP integration,
* access the dashboard as admin, and configure the WP integration, but I did not touch the roles mapping,
* install and configure the bbPress WP plugin,
* relog in bbPress with my WP admin account…
and then I was not able to access the dash board…
Any idears?
¡Muchas gracias Fernando por tú colaboración!
un saludo
There was a similar report on the plugin comments page:
https://bbpress.org/plugins/topic/bbpm/page/7/
The developer said you don’t need htaccess if you have pretty permalinks on… try removing your htaccess, and see if that helps? (Make sure to back it up, of course!)
have the latest version of bbpress and installed bbpm
when i try to send a pm all i get is a 404 Not Found message.
any idea why?
We should be ok. Best case scenario, Automattic will bring on someone to continue developing bbPress. Worse case scenario, we can fork the code from bbPress and continue development on our own…
Since WordPress is open source, maintaining cookie/user integration is definitely possible.
But we can discuss all that in a separate thread… mostly just wanted to express appreciation for Sam in this thread! He wrote a huge amount of code and chimed in a lot of threads here on the forum – thanks again!
Sam, I hope the team at Automattic appreciates how hard you worked, and just how much they lost when you stepped down!
I really don’t hope that too.
Wow, really hope development doesn't stop on bbPress.
Olaf – The big reasons for me to stay on the older version are:
* Many plugins work on 0.9 but aren’t compatible with 1.0.
* 0.9 is really stable and battle-tested, while 1.0 is just a few months old.
* 0.9 is very fast, but 1.0 has a lot more overhead (like BackPress) which slows it down considerably.
It’s really a decision that each webmaster has to make for themselves!
In my case, I’m sticking with 0.9… but I recognize that as time goes on and 1.0 matures, the upgrade will become more compelling for me! But YMMV…
I used the 0.9 branch until version 1.02 got released. While there are not so much reasons to upgrade from 0.9 to 1.02, people should always use latest versions. Why should I start with an older version?
makes no sense…
Thanks Sam
Wow, really hope development doesn’t stop on bbPress.
I also hope the 1.0 release wasn’t rushed solely because Automattic knew Sam was about to leave.
yeah but putting the same name on two “different” product is confusing. It can be called something else rather than lite, the reason I said it is because I think someone said that .9 is almost half the size of 1.0+
Ah interesting gerikg!
If 0.9 is Lite and 1.0 is Full… wouldn’t most people want the Full version? I guess I’m not sure why 0.9 is Lite and 1.0 is Full…
Someone suggested once that bbPress 0.9 should’ve been named bbPress 1.0… and bbPress 1.0 should have been released as bbPress 1.7 or something. That sounds about right to me…
Why not call v0.9 “BBpress Lite v0.9″and call 1.0+ just BBpress (or BBpress Full v1.0.3)? or something in that nature
When you come first to this site you see the two versions. Most of us I think pick the higher version not thinking about the other. Some of us (the people who understands bbpress better as a stand alone) prefer 0.9 version still after the “higher” version came out.
The reason is not to confuse the new users that 0.9 is not a lesser version or that 1.0 is a more updated version. What I’ve read the two version are different enough to continue it’s own path. and it shows because you’re asking for users to test the new .9 version. “call for testers on the 0.9 branch and 1.0 trunk” If I wasn’t around for a couple of years I would think 1.0 is more stable than 0.9.
more findings, I have cleaned up the users to have their own respective blogs, excluding the main domain.tld
going to forums admin area and access user role map where I have:
WP Administrator: bbPress KeyMaster
WP Editor, Author, Contributor and Subscriber: bbPress Member
just click “Save” on this mapping settings (no changes from before) and when I get back to WP SiteAdmin I can see all users have been added to the main domain again.
Can anyone help me with this issue ?
wpmu + bbpress integration
the blog is installed in the root domain: domain.tld
This is the case: user1 registers on the wpmu site and gets the email notification, clicks and activates his account.
On admin site I can see the user being registered to his blog: user1.domain.tld
Perfect so far.
As soon as user1 access the forum (bbpress), the user gets access to the domain.tld – which is the main blog.
So now when the user1 goes to his “my blogs” he has access to http://user1.domain.tld and http://domain.tld
Fortunately when he clicks on http://domain.tld dashboard he has very limited options.
Any ideas to have user1 accessing only his own blog ?
Many thanks.
The code he uses calls the WP theme header.php but the WP header is showing null when he is in his forums.
Now…we can at least state between the require code and the get_header();, it works on an otherwise blank page. So this can’t be a WP template issue. Using just the following:
<?php
require_once('/home/jwrbloom/public_html/wp-load.php');
get_header();
?>
I get this: http://www.hoosierhoopsreport.com/wp-test.php
That works as it should. When I put the code in the bbPress template (the require code in bb-config and the get_header wherever bb_get_header is, it doesn’t work.
What if I say I want the User Activity & Topics Started to show on the side instead of the profile, would that make a difference?
I saw this in my bbpress header, what does it do?
<?php
$_head_profile_attr = '';
if ( bb_is_profile() ) {
global $self;
if ( !$self ) {
$_head_profile_attr = ' profile="http://www.w3.org/2006/03/hcard"';
}
}
?>
It might be something I need to pull the User Activity & Topics Started???
can someone help me with this? Just change the top into a call function that pulls from the db?
using this method: https://bbpress.org/forums/topic/heres-how-to-show-bbpress-info-inside-wordpress-without-full-integration
Thanks for your reply. I copied your code and deleted my own code.
The WP things in my bbPress are still working, but the “next page” problem is there still too.
Anyone a solution for the “next page” problem?
Thanks in advance!!
$limit was passed something which wasn’t numeric because… I guess that’s what do_action() does when it doesn’t have any arguments? Doing a var_dump(), it appears to be an empty string, so I guess it just passed the default value of the argument variable.
I found it because I noticed the SQL query wasn’t valid when it was run in phpMyAdmin and then noticed that there wasn’t anything after LIMIT.
I don’t know if there’s any performance gain, but it’s how bbPress code is written iirc and in the case of calling the user table, it’s essential when you’re working with a WP/bbP integration (as the table prefix is different).
So mostly it allows for the table names to be entirely variable, which is probably better practice in case a plugin changes them.
Dear fellow users,
after following _ck_’s advice to use 0.9.0.6 still – and after starting over with my bbPress project already assembled under 1.02 – I ran into the following problem today:
After installing XAMPPlite (Windows32) v1.7.2, several routines of bbPress started to flag the ‘Deprecated’ errors.
My provider 1&1 ist using PHP 5.28 still – but nobody knows when they would upgrade to 5.3 finally .
Any advice how to tackle the challenge – not only the messages?
TIA (from Germany)