Search Results for '+.+default+.+'
-
Search Results
-
This is so simple I bet I am duplicating what someone else has already done. I am not sure why this isn’t in bbPress by default and it doesn’t even begin to address what I would consider basic moderation tools but it’s a start.
Install and check under “content” submenu. Why the posts menu =deleted posts in bbpress’s default I have no clue.
<?php
/*
Plugin Name: bbPress Recent Posts
Plugin URI: http://bbpress.org/plugins/
Description: shows most recent posts with (extremely limited) moderation options
Author: _ck_
Author URI: http://CKon.wordpress.com
Version: 0.01
*/
function recent_posts_admin_page() {
if ( !bb_current_user_can('browse_deleted') ) {die(__("Now how'd you get here? And what did you think you'd being doing?"));}
global $bbdb, $bb_posts, $bb_post, $page;
$bb_posts=get_latest_posts(0,$page);
$total = bb_count_last_query();
?>
<h2>Recent Posts</h2>
<ol id="the-list">
<? bb_admin_list_posts(); ?>
</ol>
<?php echo get_page_number_links( $page, $total );
}
function recent_posts_admin_menu() {
global $bb_submenu;
$bb_submenu['content.php'][] = array(__('Recent Posts'), 'use_keys', 'recent_posts_admin_page');
}
add_action( 'bb_admin_menu_generator', 'recent_posts_admin_menu' );You may notice that the table row highlighting doesn’t work in IE (at least in IE 6.0 which many people use)
I found this easy, drop-in solution to use IE’s HTC support
http://www.xs4all.nl/~peterned/csshover.html
save this file into your template folder
http://www.xs4all.nl/~peterned/htc/csshover.htc
then add this to your stylesheet
body {behavior:url("/path-to-your-template/csshover.htc");}
optionally but recommended, you might also want to add this to your .htaccess in apache since it probably won’t serve the right mime type for HTC by default which breaks XP sp2
AddType text/x-component .htc
Now :hover can work on almost anything in IE just like real CSS browsers.
I have had wordpress 2.2.1 up and running for a while. I just tried to install bbpress, using the table prefixes ‘wp_’, since I think that is necessary to have any authors registered on my wp site to be able to get on to bbpress, and vice versa. My bb’s config.php has the same database info as my wp’s config.
When I ran the install.php file for bb, I recieved some errors:
Second Step
Now we’re going to create the database tables and fill them with some default data.
bbPress database error: [Incorrect table definition; there can be only one auto column and it must be defined as a key]
ALTER TABLE wp_posts ADD COLUMN post_id bigint(20) NOT NULL auto_increment
bbPress database error: [Key column ‘post_id’ doesn’t exist in table]
ALTER TABLE wp_posts ADD PRIMARY KEY (post_id)
bbPress database error: [Multiple primary key defined]
ALTER TABLE wp_tags ADD PRIMARY KEY (tag_id)
1. Created table wp_forums
2. Created table wp_topics
3. Created table wp_topicmeta
4. Created table wp_tagged
5. Changed default value of wp_posts.post_status from publish to 0
6. Added column wp_posts.post_id
7. Added column wp_posts.forum_id
8. Added column wp_posts.topic_id
9. Added column wp_posts.poster_id
10. Added column wp_posts.post_text
11. Added column wp_posts.post_time
12. Added column wp_posts.poster_ip
13. Added index wp_posts FULLTEXT KEY post_text (post_text)
14. Changed type of wp_tags.tag_ID from int(11) to bigint(20) unsigned
15. Changed type of wp_tags.tag from varchar(255) to varchar(200)
16. Added column wp_tags.raw_tag
17. Added index wp_tags KEY name (tag)
bbPress database error: [Unknown column ‘post_id’ in ‘field list’]
SELECT post_id, poster_id FROM wp_posts WHERE topic_id = 1 AND post_status = 0 ORDER BY post_time
bbPress database error: [Unknown column ‘post_id’ in ‘where clause’]
SELECT * FROM wp_posts WHERE post_id = 114
Finished!
Now you can log in with the username “admin” and password “*Your WordPress password*”.
However, when I try to log in to my wordpress admin area as the ‘admin’ now, I receive the error:
“You do not have sufficient permissions to access this page.”
I am able to log into bb, but there are multiple errors on each page; this is repeated many times on the page:
“bbPress database error: [Unknown column ‘post_id’ in ‘where clause’]
SELECT * FROM wp_posts WHERE post_id = 0
Anonymous.”
I would just remove the bbpress completely, just to get wordpress login working again, but bb seems to have altered my wp user data?
thanks
For anyone with an interest, i figured how to make a simple private user area
http://wordpress.org/support/topic/124247?replies=1
here’s the kicker on the BBpress end, since a wp account will be created for users who join the forum, what i did was leave the subscriber setting alone and adjusted the contributer to read/read private pages only, that way there’s no interference for default users accounts when people join the forum