Search Results for 'bbpress'
-
Search Results
-
I figured this out by accident after not finding much in the forums about it, so I thought I’d post it fresh.
In wordpress, we use
<?php bloginfo('template_url'); ?>
to go straight to your template directory (i.e. “http://mysite.com/wp-content/themes/mytheme”).In bbPress, to go yout theme directory (i.e. “http://mysite.com/bb-templates/mytheme”), you use
<?php bb_option('template_uri'); ?>
I’m using bbPress 0.902 and WPMU 1.3.3. Integrating the bbPress with the user database works, but then I can’t access the bbPress admin console anymore. Here’s what happens:
1. install bbPress without integration and in the process create an admin account bbadmin.
2. The bbadmin account works, I can access the bbPress admin screens, etc.
3. Change the integration settings to point to the WPMU users table. I do NOT do the cookie integration as this is problematic with the new password hashing.
4. bbPress immediately logs bbadmin out. I can login with WPMU user accounts, but none of them can access the bbPress admin console. More importantly, the bbadmin account can’t login anymore.
I’ve replicated this problem 7 times.
The bottom line is that I can’t use the db integration feature at all.
Question – how can I integrate the WPMU users and still access the bbPress admin console?
Topic: Login out
I have <?php login_form(); ?>
When at the home page of BBpress when I click logout it doesn’t log out. Actually it does but it shows like I’m still logged in. When I click on a different forum it shows that I’m logged out. When I click to the home page of the forum it shows that I’m logged in.
Thanks.
kiaspeed2.com/forum/ is the site
Topic: GMT Offset
I’ve been playing with bbPress for a few days and noticed that when I started posting the time was set all wrong and the posts I imported were dated wrong (only ones from that day).
Since I’m in South Australia (+9.5 GMT) I had set the gmt_offset option in the admin interface to 9.5 to accomodate my differences but it wouldn’t set the post date/time to my timezone when posting.
The only way around it was to modify the bb_current_time function and change this line:
$d = gmdate(‘Y-m-d H:i:s’);
to this:
$d = gmdate(‘Y-m-d H:i:s’, time() + 3600*(bb_get_option(‘gmt_offset’)+date(“I”)));
So that it actually uses the GMT offset.
Of course, doing this only means that current posts are displayed at the right time but previous ones are wrong because they’re all set to the current time when posted and the system then adds 9.5hrs onto them when being read.
I’m assuming either I’ve missed something in the config or the time option just isn’t using the gmt_offset value from the db for anything.
Can someone confirm or refute this please? I’d like to be able to change it back and do it the proper way if possible.
I would like to put some plugins from bbpress into the WP widget.
For example: The Simple Online By Thomas Klaiber would be great on a widget.
If I put the code on WP widget it errors when on WP but comes up when on BB.
I guess I just need an if-then statement? but I don’t know how to write it.