Search Results for 'code'
-
Search Results
-
Topic: It's over
Vanilla 2 is here (http://vanillaforums.org) and they are working on a full integration with WordPress.
Even Matt M. is supporting it. Start packing your bags
trying to integrate bbpress to use my wordpress theme… but running into problems. when i put the code into the bb.config file
require_once(‘../blog/header.php’);
if (file_exists(‘../blog/header.php’))
require_once(‘../blog/header.php’);
else
if (file_exists(‘../../blog/header.php’))
require_once(‘../../blog/header.php’);
it stacks the path on top of the forum path instead of where it belongs… giving me the error:
Warning: require_once(../blog/header.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxx/public_html/forum/bb-config.php on line 70
Fatal error: require_once() [function.require]: Failed opening required ‘../blog/header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/xxxx/public_html/forum/bb-config.php on line 70
has anyone else had this problem… and can you share how to fix it?
I’m using the method of replacing the header.php file content with <?php get_header(); ?> and the footer with <?php get_footer(); ?> if there is a better way of going about this, I’m open so please share

thanks!
This may seem like a strange request so I’ll try to describe the whole situation. I have a couple of web applications I have tied together by creating an OpenID Provider server for the main app, and configured bbpress as a Consumer using a modified version of the OpenID Plus plugin. Everything works great except logout. Since each app controls its own session information separately, logging out of one does not log out of the other. I can hook into bbpress’ logout to call the appropriate function in my main app, but the opposite direction is proving difficult.
In my logout function external to bbpress I have the following:
require ('../forum/bb-load.php');
bb_logout();
but receive this error when its executed:
Fatal error: Call to a member function suppress_errors() on a non-object in ***/forum/bb-includes/functions.bb-core.php on line 63
Line 62 and 63 from the file in question
global $bbdb;
$bbdb->suppress_errors();
I don’t understand how it could get as far as this line without setting $bbdb in bb-settings.php. Any ideas?
Hi, i need help with code. When I try to reactivate my password, I get this error:
Parse error: syntax error, unexpected ‘,’ in /home/iportalc/public_html/iOglasnik/bb-templates/iBlogProForum/password-reset.php on line 12
this is the original code:
<?php bb_get_header(); ?>
<h2 role=”main”><?php _e(‘Password Reset’, FTDOMAIN); ?></h2>
<?php if ( $error ) : ?>
<p class=”notice error”><?php echo $error; ?></p>
<?php else : ?>
<?php switch ( $action ) : ?>
<?php case ( ‘send_key’ ) : ?>
<p class=”notice”><?php _e(‘An email has been sent to the address we have on file for you. If you don’t get anything within a few minutes, or your email has changed, you may want to get in touch with the webmaster or forum administrator here.’, FTDOMAIN); ?></p>
<?php break; ?>
<?php case ( ‘reset_password’, FTDOMAIN ) : ?>
<p class=”notice”><?php _e(‘Your password has been reset and a new one has been mailed to you.’, FTDOMAIN); ?></p>
<?php break; ?>
<?php endswitch; ?>
<?php endif; ?>
<?php bb_get_footer(); ?>
Hi! Sorry if my English is not perfect.

If I’m the Admin of a bbPress forum (this one: http://www.focoblog.com/focoforo), can I see the identity of the author(s) of the different tags or is it completely anonymous?
Thanks a lot,
Tones
Hey there I had an integrated WP + BB website, then I installed also BuddyPress and used it for a while, everything integrated, using BB as forum engine for BP too.
I then decided to get rid of BP and now I just want to go back to my initial configuration of WP + BB, using the same old DB that still contains BB forum posts.
Everything is working and the user integration still works, but I have the damn “keymaster lost” problem: My admin user can’t access the BB Admin in any way.
I’ve tried all the solutions proposed around here and on the internet, changed my capabilities on the DB to a:1:{s:9:”keymaster”;b:1;} etc.. no way.
If I try to access the /bb-admin area it redirects me to the root.. and there’s no “admin” link near my profile name.
My tables have different prefix:
$bb_table_prefix = ‘wp_bb_’;
I just have WP_USERMETA table as the integration is already done..
What’s the meta key I have to set?!?
I’ve tried “wp_capabilities”, “wp_bb_capabilities” and “bb_capabilities”, but no-way.. no admin access for my user.
I’ve also tried to create new users and assign the keymaster.. same thing, no admin access.
Maybe Buddypress changed something that I have to reset?
Please help!