Search Results for '+.+default+.+'
-
AuthorSearch Results
-
February 13, 2008 at 4:49 pm #62789
chrishajer
ParticipantThe default role is set in bb-includes/capabilities.php around line 485
$user->set_role('member');This is a job for a plugin, but I haven’t tried to write one yet, so if you were to change that word
membertoinactive, my guess would be that that would make any new member inactive and then the keymaster would need to edit their role to make them members.ACTUALLY – that didn’t work

In bb-includes/pluggable.php, line 361 says this:
bb_update_usermeta( $user_id, $bb_table_prefix . 'capabilities', array('member' => true) );I changed member to inactive there, and now new users are inactive when they first register.
Like I said, this is really a job for a plugin, but you could probably use this last change temporarily until a proper plugin is written.
HTH, and be warned this is not a good way of doing it. It should really be a plugin I think.
February 13, 2008 at 12:49 pm #2871lucaiz
Memberhello all.
I have tried some search about this but did not find anything.
I’d need the new users on a bbPress forum to be set to Inactive by default.
the reason is I need to set up a forum for an experiment in secondary schools. we have to take in account the possibility of rude behavior from people not participating to the experiment.
the administrator is not likely to be very present on line, so it would be a problem if anybody could just register and start posting indesiderable contents, that could sit there for a while.
a temporary fix would be setting the default role for users to Inactive (the administrator then has the possibility to verify that the user is really who he say to be). I’ve tried to look into the code, but was not able to figure it out how to do it. hints would be welcomed.
another option (the one I’m currently adopting) is removing the register function and putting something like “write to this email address if you want to be registered”, then using this plugin to allow administrator to add users:
http://bbpress.org/plugins/topic/admin-add-user/
but this is not how really we want it to be. an example of it is the “candidate” system used in vanilla forum: you candidate yourself to be a member of the forum, and if admin agree then you’re in. (why then not using vanilla? because there’s a graphic customization people have worked into, and we are running very short on deadline, say the url is in this morning newspaper…
).I’d also be grateful for any other suggestions.
February 11, 2008 at 8:49 pm #50332In reply to: Using RSS Feeds
fooddude
MemberI’m running bbpress 0.8.3.1 integrated into my wordpress 2.3.3. BBPress is in the same database as my WordPress. The problem is, I can’t get a feed from the front page. If I point Feedburner or whatever to bbpress, it discovers a feed (wordpressblog/bbpress/rss.php), but it returns a not valid error. If I go to it in my browser, I get a blank page.
I’ve tried reinstalling bbpress, and switching to the default theme to no avail. Anyone have any ideas?
February 10, 2008 at 9:46 pm #62810In reply to: Installation Error Message
chrishajer
ParticipantIn your config.php, you should start with mod_rewrite being false. I suspect you have it set to true or slugs, and that is creating problems for you as well.
$bb->mod_rewrite = false;That should take care of the bb-admin issue, unless you are currently logged in and NOT a keymaster or admin. If you are logged in as a regular member and try to access the admin page, I believe you are directed to the bbPress installation instead of admin.
UPDATED INFO after thinking about it: It’s also possible that this redirection is occurring because the creation of tables and modification of tables did not go well, and it’s not reading your user information properly and it does not know you are keymaster with access to bb-admin.
Regarding the SQL errors, is it possible your WordPress installation already used ppd_ as a table prefix, and then you used it in your config.php for the bbPress table prefix as well? If that’s the case, the errors are because it is trying to create tables that already exist or modifying tables with the wrong names. From the snippet of config.php you posted earlier, you showed
$bb->wp_table_prefix = 'playdate_';but alsoppd_in the line below (the ‘for example’ part), and the errors here show ppd_ as the table prefix. Oddly enough, there are some errors with just ppd and no underscore as the table prefix as well.Seems like it’s a combination of configuration things at this point. Maybe the $bb_table_prefix was set to the same thing as the $bb->wp_table_prefix with the exception of the underscore (so, ppd vs. ppd_). That info doesn’t agree with the piece of the config.php you posted though where you said
$bb->wp_table_prefix = 'playdate_';I suspect the whole picture has not been posted since you’re working on it and trying things and then you make a change and the old information no longer applies.
Right now, you have the database connection issue figured out. You should be using different table prefixes for wordpress and bbpress: wp_ and bb_ are the defaults. In the bbPress config.php, the $bb->wp_table_prefix should be the same as whatever it is in your wp-config.php and THAT should be different from the bbPress table prefix, set earlier in the config.php at $bb_table_prefix.
February 10, 2008 at 7:20 pm #62808In reply to: Installation Error Message
covertandcloaked
MemberI addressed the 99% rule and have learned that I am in the 1% and made it to the installation page. However, Not sure yet what it’s all about but I did get:
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 ppd_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 ppd_posts ADD PRIMARY KEY (post_id)
1.Created table ppd_forums
2.Created table ppd_topics
3.Created table ppd_topicmeta
4.Created table ppdusers
5.Created table ppdusermeta
6.Created table ppd_tags
7.Created table ppd_tagged
8.Changed default value of ppd_posts.post_status from publish to 0
9.Added column ppd_posts.post_id
10.Added column ppd_posts.forum_id
11.Added column ppd_posts.topic_id
12.Added column ppd_posts.poster_id
13.Added column ppd_posts.post_text
14.Added column ppd_posts.post_time
15.Added column ppd_posts.poster_ip
16.Added index ppd_posts FULLTEXT KEY post_text (post_text)
bbPress database error: [Unknown column ‘post_id’ in ‘field list’]
SELECT post_id, poster_id FROM ppd_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 ppd_posts WHERE post_id = 3
Finished!
Now you can log in with the username . . .
February 10, 2008 at 5:34 am #62807In reply to: Installation Error Message
chrishajer
ParticipantYes, absolutely on the localhost issue. I always have to change that since my database is on a different server. What DB_HOST is used in the WordPress wp-config.php? If you are using the same database, user and password, but with different tables, then the BBDB_HOST and DB_HOST should be the same value in both files. Whatever you are using in WordPress you need to use in bbPress since you mentioned previously that you were going for an integrated install.
Very simply, the DB_HOST and BBDB_HOST are just machine names where the database lives. If the database (MySQL) is on the same machine as your web server, then localhost is appropriate. If it’s on another host, then you need to enter the publicly accessible name of that host, like mine is always something like db1234.perfora.net. That machine exists on the Internet, and MySQL connections to it are done via port 3306 by default (you don’t need to tell it to do that.)
Once this database connection issue is resolved, I think there is still going to be the error with the bb_walker stuff…
February 9, 2008 at 6:32 am #62800In reply to: Installation Error Message
chrishajer
ParticipantMaybe a template is calling that function in lowercase, but it’s been changed to uppercase in the source? Are you using a template other than kakumei? Or any plugins? I would try with the default template and no plugins if nothing else seems to be working.
February 6, 2008 at 10:12 am #62741In reply to: Install4free.bbpress.org?
_ck_
ParticipantBut WP 2.4 should be out in March perhaps?
So it would be a nice co-release at that time.
I’ve got the two trunks purring along together, though I had to smack WP into submission to reduce the default mysql queries per page (27 for the default install with a single test post is a little high, wouldn’t you say?) Still trying to figure out if I can disable the new tag system in WP to reduce the load further.
February 5, 2008 at 8:11 am #54383In reply to: “Theme not found. Default theme applied.”
lkessler
MemberI also am working in Windows via localhost. I also get the “Theme not found. Default theme applied.” error message that flaerpen does.
After a few hours debugging, I got a fix:
In themes.php, change the line:
$activetheme = bb_get_option(‘bb_active_theme’);
to
$activetheme = stripslashes(bb_get_option(‘bb_active_theme’));
I believe that fixes the double slashes added by the webserver.
February 2, 2008 at 12:46 pm #62681In reply to: Key Not Found error message on password reset
John Conners
ParticipantI’ve experienced this problem in 0.8.3.1. If you follow the password reset link you get emailed and then try to log in from that page you’ll get the key not found error. The reason is the ‘re’ value in the login form is getting set to that password reset link (bb-reset-password.php?key=xxxxxx) so when you log in bbPress bounces you back to that page (as it would do if you logged in from a specific topic) and now that the password has been reset, the key xxxxxx is no longer in the database and the ‘key not found’ error pops up.
The way I’ve worked around it is to do the following prior to calling login_form() on password-reset.php in my template:
<?php global $re; $re = bb_get_option(‘uri’); ?>
The trouble is that in the default template login_form() is in the header so you’ll need to set $re elsewhere or come up with another solution.
Hope that helps!
February 2, 2008 at 6:24 am #62756In reply to: rss result is empty
Graeme
MemberI have tried a number of things:
- slashed out the extra slash
- progressively deactivated plugins to see of a plugin was at fault
- tried switching to the default theme
Each was unsuccessful in resolving the problem.
February 1, 2008 at 1:26 pm #62704In reply to: bbPress Session Variable Names
_ck_
Participantbb-load essentially loads the entire bbpress framework
It just doesn’t generate any template output
It’s how RSS feeds, etc. are done
You can indeed evaluate the user login via loading the entire framework. But you can also write a very small subset of code to check the cookie and then read the database directly too.
However note that if your bbpress cookies are locked to a path (ie. /forums/) as they are by default, they will not be valid outside of the path and no user will be detected. So you have to change the cookiepath in config.php
Otherwise neither method will work.
February 1, 2008 at 6:28 am #62698In reply to: bbPress Session Variable Names
_ck_
ParticipantWithout going through the bbpress functions or mimicing the login authentication system (look in pluggable.php) you could never tell if a user is actually logged in, or being spoofed.
However the bbpress/wp cookie will persist and if the cookie path is set to the website root (instead of locked to “/forums/” – you’d have to change the default cookiepath) you could read the cookie and see if the visitor has a bbpress username. But if several people used the same computer there possibly could be several cookies.
In theory you could force sessions to always be on via a plugin for bbpress and watch it that way too. But note that sessions slow down server performance if it’s an active site.
Best bet is to change the cookiepath and decode the cookie with a smaller subset of code.
chrishajer
ParticipantUse the same database, and make sure the table prefix is different that what you are using for WordPress. By default, it’s bb_ in the config.php and you can leave it as is so long as you’re not using that already.
January 28, 2008 at 9:08 pm #62650In reply to: what is bb_topic_labels()?
Olaf Lederer
ParticipantSure this “upgrade” is not for current functionality. To make this function clear it would be useful to have a working example in the default template

there are so many unused functions in the include map, why is this unused function included in the default template (makes no sense to me)
@fel64, believe me I know the bbpress files maybe a little too much, hehe…
January 28, 2008 at 10:02 am #62649In reply to: what is bb_topic_labels()?
_ck_
ParticipantIn plain english it essentially replaces the need for things like “Sticky:” to be hard coded into templates. Long overdue but at least it got put in there finally.
However when making templates for backwards compatibility, you’d have to detect if that function exists before relying on it.
The only themes I’ve seen that uses it already outside of the built-in default is “K2 for bbPress” (and now my “FutureKind”).
It allows tricks like I’ve done to replace “sticky” with a post-it-note-like yellow rectangle. But it also could be filtered via plugin to change it to a little graphic icon, etc. which was impossible before the function existed.
January 28, 2008 at 12:56 am #62535In reply to: youlookfab forum: keeping things simple
lookfab
MemberThanks very much for the kind words.
WordPressl, I mock up a few different design options in PhotoShop and when I’m happy there I move to the code. Since this was my first exposure to bbpress I ended up iterating between PS and the code a lot as I got to understand bbpress better. The challenge was to keep the flavor of the blog, but still make it clear to the user that they are somewhere different.
The mechanics of the template are similar to the default theme. The different look is achieved mostly through the CSS stylesheet. One major change to the layout is to add a floating div for the sidebar on the left. All the rollovers are CSS. I do the tabs simply in php by checking which forum the user is in and displaying the tab bar appropriately. Most of the other changes are actually about hiding some of the power of bbpress.
I’m glad the “tabs” resonate. I had a full working site in beta without them, but just wasn’t happy. The breadcrumb is a little subtle (particularly for folks who are new to a forum), and with only 4 forums and no sub-forums seems like overkill. But without the breadcrumb the user is lost once they’re in one of the forums or topics. The tab solves that and makes it easy to get to any forum from almost everywhere.
January 27, 2008 at 7:59 am #62645In reply to: Changing Topic Folder Name
Burkie
Participanthave tried the default rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ /forum.php?id=$1 [L,QSA]
RewriteRule ^people/([^/]+)/page/([0-9]+)/?$ /topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^people/([^/]+)/?$ /topic.php?id=$1 [L,QSA]
RewriteRule ^location/([^/]+)/page/([0-9]+)/?$ /tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^location/([^/]+)/?$ /tags.php?tag=$1 [L,QSA]
RewriteRule ^location/?$ /tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /profile.php?id=$1 [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /rss.php [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/people/([^/]+)/?$ /rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /rss.php?profile=$1 [L,QSA]
</IfModule>
January 26, 2008 at 8:47 pm #2838Topic: Changing Topic Folder Name
in forum TroubleshootingBurkie
ParticipantI want to change the default topic/ folder to people/ for a new project I am working on, firstly I tried just renaming topic.php in the root to people.php which works when pretty urls is set to false, but using mutliviews or even modifying the rewrite-rules manually it still appears as topic/ any ideas?
January 25, 2008 at 6:19 pm #62630In reply to: Fatal error: bb_get_header
healthstatus
Memberthe .htaccess is the default one with:
Options +MultiViews
nothing else
I checked the directory path and it is all ok
January 22, 2008 at 10:17 pm #61669In reply to: User Registration
rslater
MemberLog file
01/22/08 16:52:25 [xxxxxx794F3BBD4EA70AC6DBC2D6.MAI] from (SMTP) [SMTP:r @ doubleweb.com]->[SMTP:r@doubleweb.com] System Default Route Applied.
and
Debug
[01/22/08 12:28:15]****************** LOG FILE STARTED *******************
01/22/08 12:28:15 Service Starting
01/22/08 12:28:15 Service Loading Agents
01/22/08 12:28:15 Resetting messages in inbound queue for List Server Connector
01/22/08 12:28:15 No outgoing message files in inbound queue for List Server Connector
01/22/08 12:28:15 Resetting messages in inbound queue for POP Connector
01/22/08 12:28:15 No outgoing message files in inbound queue for POP Connector
01/22/08 12:28:15 Resetting messages in inbound queue for SF Connector
01/22/08 12:28:15 No outgoing message files in inbound queue for SF Connector
01/22/08 12:28:15 Resetting messages in inbound queue for SMTP Connector
01/22/08 12:28:15 No outgoing message files in inbound queue for SMTP Connector
01/22/08 12:28:15 Initalised MTA Connector Collector Thread for POP Connector
01/22/08 12:28:15 Initalised MTA Connector Collector Thread for SMTP Connector
01/22/08 12:28:15 Initalised MTA Connector Collector Thread for List Server Connector
01/22/08 12:28:15 Initalised MTA Connector Collector Thread for SF Connector
01/22/08 16:52:25 Processing file xxxxxx8794F3BBD4EA70AC6DBC2D6.MAI from queue SMTP
01/22/08 16:52:25 ME-MTA-ROUTE [xxxxxx4F3BBD4EA70AC6DBC2D6.MAI] from [SMTP] Connector queued to [SMTP] Connector as [xxxxxxx5444A809973864743822928.MAI]
January 22, 2008 at 1:09 pm #62548In reply to: Advice on integrating WP blog and bbPress in Swedish
Göran
MemberThanks for help. I am moving forward. I deleted both WP and bbPress and started again and made progress. The blog and the forum are integrated but I cannot get bbSync to work. Both work by temselves and I can log in with same id and password but cannot get posts into forum.
Installation:
Blog at http://www.goranlin.se/blogg/wordpress/
Forum at http://www.goranlin.se/blogg/wordpress/bbpress/
WordPress 2.3.2 installed 22 january 2008
theme WordPress Default 1.6 changed colors in head with panel
bbPress 0.8.3.1 installed 22 january 2008
sv_SE.mo for WP installed 22 january 2008
sv_SE.mo for bbPress installed 22 january 2008
bbSync version 0.94 installed 22 january 2008
bbSync gave message “It needs your config!
“I did that! succesfully I thought.
But when trying to write new post in blog:
Fatal error: Cannot redeclare class streamreader in /mnt/home/_g/goranlin/www.goranlin.se/blogg/wordpress/bbpress/bb-includes/streams.php on line 26
but going back to blog the new post is there but still not in Forum
line 24-26 in streams.php is:
// Simple class to wrap file streams, string streams, etc.
// seek is essential, and it should be byte stream
class StreamReader {
// should return a string [FIXME: perhaps return array of bytes?]
function read($bytes) {
return false;
I have no clue how to do anything about this! All help is welcome!
January 15, 2008 at 3:02 pm #62375In reply to: Trouble with first time login
chrishajer
ParticipantThe default theme is working here. Maybe something is cached with your browser. Clear the cache or use a different browser. The path to the theme in the source HTML is correct as well: http://www.guitarfxdepot.com/forum/bb-templates/kakumei/style.css
January 15, 2008 at 8:35 am #62372In reply to: Trouble with first time login
swollenpickles
MemberThanks guys, I’ve got that part working, but now the default theme isn’t working. I activate the theme in the admin panel, yet it still looks like it’s missing a style sheet. Any ideas?
January 14, 2008 at 2:04 pm #62378In reply to: New plugin: Auto Add Favorites
edwinfoo
MemberGee, that is brilliant. Thank you.
Just one little problem. When I’m logged in as admin, and activate the plugin in an account other than mine, it’s checked and looks like it’s ready to go. However, when I log back in as the member, it’s not checked and of course not activated.
Log back in as admin, and it’s checked and looks like it’s ready to go.
Actually, when logged in as admin it looks like for all existing accounts the plugin is checked active as default. From the member accounts, it’s not.
As admin, I’d like to go through and activate this for my members but it is not possible. Only the member can activate this plugin.
What’s required to enable admin to activate this plugin in member profiles?
-
AuthorSearch Results