Search Results for 'code'
-
Search Results
-
I get these strange errors after trying to install bbPress
Forum could not be created!
Key master email not sent!Referrer is OK, beginning installation…
>>> Setting up custom user table constants
Step 1 - Creating database tables
>>> Database is already installed!!!
Step 2 - WordPress integration (optional)
>>> WordPress address (URL): http://nightheaven.co.cc/
>>> Blog address (URL): http://nightheaven.co.cc/
>>> WordPress cookie keys set.
>>> WordPress "auth" cookie salt set from input.
>>> WordPress "secure auth" cookie salt set from input.
>>> WordPress "logged in" cookie salt set from input.
>>> User database table prefix: main_
>>> WordPress MU primary blog ID: 1
Step 3 - Site settings
>>> Site name: forums
>>> Site address (URL): http://forum.nightheaven.co.cc/
>>> From email address: address@yahoo.com
>>> Key master role assigned to existing user
>>>>>> Username: username
>>>>>> Email address: me@yahoo.com
>>>>>> Password: Your existing password
>>> Description: Just another bbPress community
>>> Forum could not be created!
>>> Key master email not sent!
There were some errors encountered during installation!Topic: Any fix for bbcode_lite?
Hi guys,
I just download bbcode_lite hoping it would work, but it didn’t. So anyone has a fix for this?
Or perhaps another plugin that does work?
Thanks,
Mitchell
OBSERVED BEHAVIOUR:
In Installation Step 3, the ‘”Key Master” Username’ is a text entry box, with no pre-populated values.
EXPECTED BEHAVIOUR:
The ‘”Key Master” Username’ should be a drop-list, with the admin IDs of the primary blog in it.
DETAILS
When integrating with an MU site, Step 2 asks for the WordPress Primary Blog ID.
In step 3, the install program uses the value entered to find administrators for the specified blog. The function
populate_keymaster_user_login_from_user_tablesconcatenates the database prefix, the blog ID specified, and the constant ‘_capabilities’. For example, if the prefix is ‘wp_’ and blog ID is 1, you get ‘wp_1_capabilities’.There’s only one problem with this. When you install WordPress, you have to complete the standard installation, and then reconfigure it to be a multi-site blog. For the standard installation, the first blog does not contain the numeric ID, and neither does the capabilities meta_key – it is simply ‘wp_capabilities’.
SUGGESTED FIX:
In Step 2, the pop-up help text for the “WordPress MU primary blog ID” field states:
“If you are integrating with a WordPress MU site you need to specify the primary blog ID for that site. It is usually 1. You should probably leave this blank if you are integrating with a standard WordPress site.”
Change the wording, to more accurately reflect what needs to be entered:
“If you are integrating with a WordPress MU site, you need to specify the primary blog ID for that site. If you have changed the primary site, enter the site ID. You should probably leave this blank if you have not changed the primary site, or if you are integrating with a standard WordPress site.”
If you install bbPress integrated with WordPress, the installation fails with a message “Your installation failed with some minor errors.”
Looking at the error log, the message was:
“Forum could not be created!”
I dug through the code, and found the problem, in bb-admin/includes/functions.bb-admin.php, in the function bb_new_forum:
// Expects forum_name, forum_desc to be pre-escaped
function bb_new_forum( $args ) {
global $bbdb;
if ( !bb_current_user_can( ‘manage_forums’ ) )
return false;
bb_current_user can ONLY return true if you are currently logged into WordPress as an administrator. I recommend changing the ‘if’ condition to:
if ( !BB_INSTALLING && !bb_current_user_can( ‘manage_forums’ ) )
Topic: Sub Forums
Example:
Let’s say front-page.php lists 3 categories
Fruits
Veggies
Meats
If you were to click on Fruits; I’d like the next page to show the subforums of that parent excluding veggies, & meats forums. Any comments appreciated.
Basically, I want categories with sub-forums but in a format/structure that you would find in phpbb where subforums are cleanly kept on the next page. Why? Because showing everything in one location can get a bit messy. Especially with subforums.
I have searched through the bbpress forum for this and was able to get the following to work related to the front-page.php portion. Now I just need to get the 2nd page to show the children of the category. Currently it isn’t doing that.
*****front-page.php which works in only displaying the categories****************
<?php foreach( $forums as $forum ) : if( !$forum->forum_parent ) { ?>
<tr<?php alt_class(‘forum’); ?>>
<td>“><?php forum_name(); ?> <small><?php forum_description(); ?></small></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
</tr>
<?php } endforeach; ?>
Now I would like the child accounts to show up in forum.php
Any suggestions? Or where I could look? Once you click on the parent forum it just takes you to that category forum.php page, with no children. i need the children to show up but only for that parent.
*****forum.php which I need to show the children*********************
<?php bb_get_header(); ?>
<?php if ( is_bb_profile() ) profile_menu(); ?>
<?php login_form(); ?>
<div id=”main”>
<div id=”forums”>
<h3 class=”bbcrumb”>“><?php bb_option(‘name’); ?> » <?php forum_name(); ?></h3>
<?php if ( $topics || $stickies ) : ?>
<table id=”latest”>
<tr>
<th><?php _e(‘Topic’); ?> — <?php new_topic(); ?></th>
<th><?php _e(‘Posts’); ?></th>
<th><?php _e(‘Last Poster’); ?></th>
<th><?php _e(‘Freshness’); ?></th>
</tr>
<?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php _e(‘Sticky:’); ?> <big>“><?php topic_title(); ?></big></td>
<td class=”num”><?php topic_posts(); ?></td>
<td class=”num”><?php topic_last_poster(); ?></td>
<td class=”num”><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td>“><?php topic_title(); ?></td>
<td class=”num”><?php topic_posts(); ?></td>
<td class=”num”><?php topic_last_poster(); ?></td>
<td class=”num”><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; ?>
</table>
<p>“><?php _e(‘RSS feed for this forum’); ?></p>
<div class=”nav”>
<?php forum_pages(); ?>
</div>
<?php endif; ?>
<?php post_form(); ?>
</div>
</div>
<?php bb_get_footer(); ?>
</div>
******************************************************************************
Thank You —