Search Results for '"wordpress"'
-
AuthorSearch Results
-
September 16, 2008 at 2:18 am #66092
In reply to: WordPress + bbPress Integration 101
doyle640
MemberThe absolute path works completely, I don’t understand why, but it does.
Thank you so much.
September 16, 2008 at 2:15 am #67674In reply to: bbPress 1.0 Stable
cartmanffc
MemberI was tired of self pingback and just a few days ago I installed no-self-ping for wordpress and now it turns out it’s going to be a new cool feature in final version of bbPress! omg…
so how abou adding some kind of post revisions? good idea as well…
September 16, 2008 at 2:10 am #66091In reply to: WordPress + bbPress Integration 101
nekita
MemberChris,
thanks for your reply. You are right, there’s not much general sense in that problem to begin with.
Unfortunately the issue already starts with the use of a relative vs. an absolute path because the absolute variant isn’t even recognized. The only two options available seem to be either the relative take with
require_once(‘../wp-blog-header.php’);
or something that could be called absolute, but is pretty inconvenient to use:
define(‘WPPATH’, dirname(dirname(__FILE__)) . ‘/’);
require_once(WPPATH . ‘wp-blog-header.php’);
Both of these result in the availability of WP commands like get_header etc. which would be needed to visually integrate bbP with WP, but with the major problem that all my accounts in bbP are Inactive for some weird reason.
Every other attempt where the path to wp-blog-header.php would really be false would just result in the forum link to not work any longer. Therefore it does seem much more likely that different elements of bbP are more or less able to deal with this way of WP integration or access to that file. I would love to give you more detailed error information about the 500 error but I’m not sure where to aquire it.
Furthermore, that problem with Inactive accounts doesn’t seem to be entirely new. I did some research via google and it does pop up every now and then, here’s an example even from way back in 2006: http://comox.textdrive.com/pipermail/bbdev/2006-September/000719.html
> > > There is an issue with posting:
> > > bbpress shows the users (admin) as Inactive. This lets me login, but
> > > I cannot post since the post form is hidden.
> >
> > You must have integrated an old bbPress install with WP (that is, you
> > must have run the bbPress install script before integrating the
> > two). If that's the case, none of your bbPress users exist anymore
> > (they're not defined in WP's user table), and your admin account is
> > inactive. To fix your admin account, you'll have to change the usermeta
> >
> > bb_capabilities = a:1:{s:8:"inactive";b:1;}
> >
> > to
> >
> > bb_capabilities = a:1:{s:9:"keymaster";b:1;}
> >
> > for your admin account. (Where 'bb_' is your $bb_table_prefix.)Unfortunately the usermeta in my database is already set as a:1:{s:9:”keymaster”;b:1;}, but it’s still acting as if users are inactive.
It really is pretty tiresome and after many many database restores and bbP reinstalls I come to the conclusion that integration of WP Functions is somewhat poorly treated so far.
For now my best bet seems to be to either try and replicate my WP scheme within bbP which would take a lot of double work and maintenance when I apply changes to my blog or go with a different forum solution altogether. : /
September 16, 2008 at 1:03 am #67673In reply to: bbPress 1.0 Stable
_ck_
ParticipantThat roadmap is wildly inaccurate and just guesses.
Not only does 1.0 gut huge sections of code that were perfectly working under 0.9 and need to be replaced but it also replaces entire concepts (like the new object cache). There is a huge amount of work to do and I don’t envy Sam and Michael’s jobs right now. Then it will need lots of testing and debugging.
Then there is plugin stability since everything is in a state of flux. I can’t even keep up with the changes anymore, I’ve stopped updating my plugins until things settle down a bit.
Sam is currently working on trackbacks (pingbacks) now which was suppose to be the big new “feature” for 1.0 IMHO it’s a huge waste of time that could be spent elsewhere in the code but pingbacks on forums was something Matt wanted, so he gets what he wants obviously. However it will be the first feature I delete (not just disable, but delete) since XML-RPC was the #1 security problem with WordPress over the years. It’s also going to be a spammer’s delight.
September 15, 2008 at 11:53 pm #67635In reply to: Fulltext searching very slow
_ck_
ParticipantActually, the best thing to do is completely replace the search facility. That’s what I do in Super Search. bbPress’s search is very weak, so weak that there wasn’t even a link to it on any page in 0.9 (it’s similar to WordPress’s search, which also sucks, it’s the ugly truth no one seems to talk about).
I assume you are using the bb-benchmark plugin to watch those queries happen (if not, you should be).
Stupid question but you DO have the mysql cache turned on? I only ask because on many server configs (like CPANEL) it’s turned off by default. What does your
my.cnf
look like? (do acat /etc/my.cnf
in your shell)Try going into phpmyadmin (or command line) and test that first test query against adding
AND post_text REGEXP ':<:%test%:>:'
to the query like so:SELECT p.*, 0 AS search_score, MAX(post_time) AS post_time FROM bb_posts AS p JOIN bb_topics as t ON ( t.topic_id = p.topic_id ) WHERE p.post_text LIKE '%test%' AND p.post_text REGEXP ':<:%test%:>:' AND p.post_status = '0' AND t.topic_status = '0' GROUP BY t.topic_id ORDER BY p.post_time DESC LIMIT 5;
I suspect in the end due to your huge db size you are going to need to completely replace the search functions with something like this http://sphinxsearch.com which has a PHP api. Fortunately in bbPress it’s very simple to hook the internal search and bypass it entirely without even template hacks. A quick google shows that a few WordPress plugins have sphinxsearch support so that would be easy to copy over to bbPress. If you find the keyword “sphinxsearch” on this source for example, you can see how it’s done: http://svn.scriblio.net/plugin/trunk/scriblio.php
September 15, 2008 at 9:41 pm #67591In reply to: Can’t access admin on new install
chrishajer
Participantazsportshub: what version bbPress and WordPress did you install?
September 15, 2008 at 9:37 pm #66090In reply to: WordPress + bbPress Integration 101
chrishajer
ParticipantHmm – that makes no sense to me. What is the exact error you get if you do not include the
if (file_exists
statement?September 15, 2008 at 8:34 pm #66089In reply to: WordPress + bbPress Integration 101
nekita
MemberI’m using the functions get_header and get_footer in my front-page.php etc. and it’s working just fine as you can see on my site.
September 15, 2008 at 8:09 pm #66088In reply to: WordPress + bbPress Integration 101
chrishajer
ParticipantNekita – the reason that works is because it’s not including the wp-blog-header.php (can’t find it), but it doesn’t error out because you’re saying “if it’s there, then include it”: otherwise, just continue on, but it’s not included.
So, it errors out when you don’t have the conditional, but with the conditional there, do you have access to WordPress functions, or you can just access specific theme files? Accessing the theme files would not require integration. But using the functions like get_header, get_sidebar, get_footer would all rely on integration being correct.
This assumes that the errors are the same as doyle640:
PHP Fatal error: require_once() [function.require]:
Failed opening required '../wp-config.php'
September 15, 2008 at 7:35 pm #67615In reply to: Integrated WP Installation – Can’t Login
nekita
MemberDiscussion taken to this thread: https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101?replies=92
September 15, 2008 at 7:31 pm #66087In reply to: WordPress + bbPress Integration 101
nekita
MemberTo give you an idea of what I’m talking about:
http://chocolatebydeath.com/forum/
User: Rauko
PW: IIlCuxOmYRpn
This is a test user I just registered. Once you log in with this data, you’ll see that this account is extremely restricted for whatever reason. It’s the same with my own admin account and other user accounts.
September 15, 2008 at 7:11 pm #67667In reply to: Can’t see posts if not logged in
Clicknathan
ParticipantThe error was from a Private Messaging plugin (note: not a private forums plugin).
I have the default Akismet & Bozo plugins installed, and also the “Use Display Name” (which just changes your username to your nicename) and BBPrivate Messaging Plugin (as mentioned above) plugins installed. Removing them does not allow me to see the forums content either.
I just noticed that actually only admins can see the forum content.
You asked:
You didn’t make all your forums categories in the admin, did you?
I’m not sure what you mean, I’m new to BBPress. I converted an old WordPress XDForum plugin to BBPress, so perhaps something happened with permissions there, but even so, any direction as to how to open these up to everyone would be great!
September 15, 2008 at 7:02 pm #66086In reply to: WordPress + bbPress Integration 101
nekita
MemberIn my case, yes, the relative path works just fine, given that I have access to my WP scheme files after I utilize it.
However, I just found out that adding:
if (file_exists(‘../wp-blog-header.php’))
require_once(‘../wp-blog-header.php’);
instead of just
require_once(‘../wp-blog-header.php’);
does the trick, at least to get access to the admin area.
I’m still stuck with the limitation of my admin account though. Once it’s integrated and I log on the bbP, I can’t write a post nor reply or edit my own profile because the admin user receives the status “Inactive”.
September 15, 2008 at 5:31 pm #66085In reply to: WordPress + bbPress Integration 101
chrishajer
ParticipantIs the wp-config.php actually located at ../ ?
Also, you could try the absolute path rather than a relative one. I have heard before that that might be a problem (although I’ve never seen that. I don’t use MAMP though.)
First verify if the wp-config.php is located ../ from bb-config.php. If it is, try the full absolute path rather than a relative one. Something like
/Applications/MAMP/htdocs/wp-config.php
.September 15, 2008 at 4:16 pm #66084In reply to: WordPress + bbPress Integration 101
doyle640
Memberhere is my errors when I try to access the bbpress admin section:
[15-Sep-2008 12:10:48] PHP Warning: require_once(../wp-config.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/forum/bb-config.php on line 34
[15-Sep-2008 12:10:48] PHP Fatal error: require_once() [function.require]: Failed opening required ‘../wp-config.php’ (include_path=’.:/Applications/MAMP/bin/php5/lib/php’) in /Applications/MAMP/htdocs/forum/bb-config.php on line 34
On the regular part of the forum, I do not get these errors.
September 15, 2008 at 2:46 pm #67654In reply to: Permalinks Not working
chrishajer
ParticipantWhy did you put bbPress into the wp-plugins folder? It’s not a WordPress plugin.
September 15, 2008 at 11:02 am #66083In reply to: WordPress + bbPress Integration 101
nekita
MemberSeems as if I have the same problem as doyle640. Integrated the Alpha with WP 2.6.2 and after adding “require_once(‘../wp-blog-header.php’);” to bb-config.php I can’t access the bbP Admin section anymore. the “Reply” and “New Topic” area is gone as well, Profile can’t be edited etc. The title under my Admin name (“Key Master” by default) will also change to Invalid.
The loading error for the admin section is indeed a 500 error. At first I figured it might be related to some class conflicts within the WP and bbP CSS structure but fiddling with that didn’t help either.
Now it seems more likely that the User Account looses all of it’s user privileges in bbP once it’s integrated with WP for some reason.
September 15, 2008 at 12:52 am #67614In reply to: Integrated WP Installation – Can’t Login
nekita
MemberNarrowing down on the problem, I’m now able to log in even with the integration code added (by using the exact same setting for WordPress address and Blog address as used in General Settings), however the account is extremely limited in use.
It’s basically the same issue described by user doyle640 here (https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101/page/3), the Admin screen is unaccessable (blank page) as well as the Profile edit options, even the form to add a new topic is completely missing.
This is true for the Admin account as well as any user account.
Once the line “require_once(‘../wp-blog-header.php’);” is deleted from bb-config.php, everything is accessable as usual.
The login synchronization now works both ways as it should though.
September 14, 2008 at 8:01 pm #67611In reply to: Integrated WP Installation – Can’t Login
chrishajer
Participant> Is this the reason why bbPress 0.9.0.2 shouldn’t be
> intergrated with WordPress 2.6 and I need to try bbPress
> 1.0 Alpha instead?
Yes. bbPress 0.9.0.2 and WordPress 2.6.* are not cookie-compatible.
https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101#post-17409
September 14, 2008 at 7:59 pm #3986Topic: Integrated WP Installation – Can’t Login
in forum Troubleshootingnekita
MemberHi there.
I just installed bbPress 0.9.0.2 and integrated it with my WP 2.6.2.
I also added WordPress functions via require_once in bb-config.php so I can utilize my blog’s header and footer for the forum.
Now everything looks the way I want it, but I just can’t login to a bbPress account anymore (direct login via bbPress interface). When I enter wrong login data, it takes me to the failed login screen as expected. When I enter the right login data it will just return me to a blank login form.
Is this the reason why bbPress 0.9.0.2 shouldn’t be intergrated with WordPress 2.6 and I need to try bbPress 1.0 Alpha instead?
Or should I still be able to login via the bbPress interface, just not synchronized via WP, and the problem is located elsewhere?
Thanks a bunch
Lars
September 14, 2008 at 7:50 pm #66082In reply to: WordPress + bbPress Integration 101
chrishajer
ParticipantIf the browser is blank when you load a page, it’s probably due to a 500 error. Do you have access to error logs to see what’s causing that error? I have not hear of that before when including WordPress in bbPress.
September 14, 2008 at 7:16 pm #66081In reply to: WordPress + bbPress Integration 101
doyle640
MemberDoes anyone know why the admin section is displaying blank when the wordpress functions are included in bbpress?
September 14, 2008 at 4:26 am #66080In reply to: WordPress + bbPress Integration 101
isaacgreenspan
Member@ck:
based on my recollections, as i’m on a road trip and can’t readily pull up the code, WP2.6 (maybe older, too, i don’t know), in the midst of their new cookies, has an action hook that can be tapped at cookie-creation to make an additional cookie for bbPress to read (in my instance, bbPress is in /forums/ so the new cookie is restricted to that path). the function that destroys the cookies at logout doesn’t have an action hook, so it has to be overridden (it’s pluggable). on the bbPress end, it’s virtually identical–use an action hook at login to create the various cookies that WP expects, override the pluggable cookie-destroying function.
there’s also some work in syncing up all the various secrets.
it’s worth noting that the cookie that’s now restricted to wp-admin/ in WP2.6.x is the same cookie that was unrestricted in path previously, so the mechanics of the cookie contents and whatnot aren’t any different, just the path restrictions.
September 14, 2008 at 3:25 am #66079In reply to: WordPress + bbPress Integration 101
doyle640
Memberthat works, however, i can no longer access the admin section, it only loads as blank, any ideas why? thanks for your help with this.
the rest of the functions work on the main pages of the forum.
September 13, 2008 at 3:51 pm #66078In reply to: WordPress + bbPress Integration 101
chrishajer
ParticipantTo use the WordPress functions get_sidebar and get_header, you need to include WordPress inside bbPress:
https://bbpress.org/documentation/integration-with-wordpress/#func
This might help as well:
-
AuthorSearch Results