Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 6,226 through 6,250 (of 6,774 total)
  • Author
    Search Results
  • #62334
    _ck_
    Participant

    By default bbpress does not have this ability built in.

    However it would be possible to edit your templates to allow only mods to start topics in certain forums, or do this via plugin.

    #63223

    In reply to: php fail.

    saintmain
    Member

    I joined IRC #bbpress last night, and a kind soul figured it out.

    It was all because of the plugin. After installing the plugin, all went great.

    #chrishajer; on my server, the admin-tool lets me turn glob on and off. “off default”

    and, it IS an error when I cant login :)

    This plugin-problem should be in the FAQ.

    Thank you both.. :)

    #63114
    chrishajer
    Participant

    DON’T do that!

    You want bbPress and WordPress to have different table prefixes in their respective config. bb_ and wp_ , the defaults, are fine. If you try to use the same table prefix, some of the WordPress tables get destroyed due to a collision between table names because both software packages now use the same table prefix (posts , usermeta and users tables, I believe.)

    What are you trying to accomplish that requires you to use the same tables for WordPress and bbPress? If you are looking for integration, this is not how you do it. With an integrated install, you still use a different table prefix for bbPress but you insert your WordPress table prefix in the bbPress config.php a little further down in the file. Then, bbPress modifies the existing wp_users and possibly wp_usermeta table.

    #2926
    darkling235
    Member

    I’m trying to use the same database and tables for wordpress and bbpress but they don’t merge painlessly.

    I set the table prefix in bbpress’s config to wp_ and set the database to be the same as wordpress’s. I also set the wp_prefix in bbpress’s config.

    Then I tried to start bbpress but it threw a bunch of exceptions and now it will not save new posts. Can anyone help me?

    I enclose it’s exceptions

    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: [The used table type doesn't support FULLTEXT indexes]
    ALTER TABLE wp_posts ADD FULLTEXT KEY post_text (post_text)

    1. Created table wp_forums
    2. Created table wp_topics
    3. Created table wp_topicmeta
    4. Created table wp_tags
    5. Created table wp_tagged
    6. Changed default value of wp_posts.post_status from publish to 0
    7. Added column wp_posts.post_id
    8. Added column wp_posts.forum_id
    9. Added column wp_posts.topic_id
    10. Added column wp_posts.poster_id
    11. Added column wp_posts.post_text
    12. Added column wp_posts.post_time
    13. Added column wp_posts.poster_ip
    14. Added index wp_posts FULLTEXT KEY post_text (post_text)
    15. Added index wp_users UNIQUE KEY user_login (user_login)

    bbPress database error: [Field 'post_content' doesn't have a default value]
    INSERT INTO wp_posts (forum_id, topic_id, poster_id, post_text, post_time, poster_ip, post_status, post_position) VALUES ('1', '1', '1', '

    First Post! w00t.
    ','2008-02-22 15:10:39', '127.0.0.1', '0', 1)

    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 = 0

    Finished!

    #63024
    chrishajer
    Participant

    I guess you’re working on it now because there are syntax errors and no site visible.

    Hopefully you’re working with your own template, not the default one. If that’s the case, just use the default template until you figure out what change caused the problem.

    If you are working on the default template, then I would just install a new copy of it and start over with your modifications, this time in a template of your own name.

    The create your own template, create a my-templates folder at the same level as bb-templates, then in there create a folder that will be for your template (call it dogs or something.) Then copy over all the files from the kakumei template into this new dog folder, and then open the style.css file in this folder and make the appropriate changes there to give this theme a new name. Then, select it in your admin panel. Right now, it will look just like the stock theme, but you can make changes here instead of in the stock theme, and if something goes wrong, you can just select the stock theme and fix the problems in the new theme.

    #2910
    ulyssesr
    Member

    I have a new bbPress theme called Black-Letterhead. It’s derived from the default Kakumei theme. This theme is a takeoff from my WordPress Theme also called Black-Letterhead.

    Here’s the download and preview links:

    http://ulyssesonline.com/2008/02/16/bbpress-theme/

    Sorry, no live demo available.

    #62885
    qienkuen
    Member

    OK,like this one:

    http://www.edutopia.org/how-to-students-as-practitioners

    It can not be made clickable at my forum.But it can work here.

    So I don’t know what’s wrong,I haven’t changed any file about this.

    BTW:My forum uses the default theme.

    #62934

    In reply to: Edit topic title

    chrishajer
    Participant

    As keymaster, if you log in and edit the first post in a topic, you have access to editing the title. If you created the topic as a user, there is a limited amount of time that you can go back and edit your own post. By default, I think the limit is 60 minutes, set in the config.php with $bb->edit_lock = 60;.

    #62906
    _ck_
    Participant

    You’re possibly getting 404’s only in IE because of session issues in Internet Explorer.

    bbPress doesn’t use sessions by default so some other plugin must be putting them in (I have one that does and so does bb-post-views and possibly a few others).

    IE is *very* picky about how sessions are done.

    What plugins are you using?

    Also, are you using multiviews in the .htaccess for bbPress? That could cause some issues. If so, use the real rewrite rules instead.

    #62790
    lucaiz
    Member

    many thanks Chris! I have tested your second example (pluggable.php, row 361 etc.) was exactly what I needed!

    I agree with you that a plugin would be nice, and also it would be even nicer to be able to set new users default role somewhere in the admin interface, but for the moment your suggestion just work.

    thanks again!

    #62893
    319
    Participant

    Here’s the URL, and i’ve set it back to the default theme as well: http://clutchmagonline.com/forums

    Its loading once in a while, but clicking around here and there you definitely still get the 404 errors.

    #62789
    chrishajer
    Participant

    The 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 member to inactive, 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 :D

    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.

    lucaiz
    Member

    hello 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.

    #50332

    In reply to: Using RSS Feeds

    fooddude
    Member

    I’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?

    #62810
    chrishajer
    Participant

    In 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 also ppd_ 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.

    #62808

    I 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 . . .

    #62807
    chrishajer
    Participant

    Yes, 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…

    #62800
    chrishajer
    Participant

    Maybe 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.

    #62741
    _ck_
    Participant

    But 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.

    #54383
    lkessler
    Member

    I 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.

    #62681
    John Conners
    Participant

    I’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!

    #62756

    In reply to: rss result is empty

    Graeme
    Member

    I 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.

    #62704
    _ck_
    Participant

    bb-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.

    #62698
    _ck_
    Participant

    Without 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.

    #62664

    In reply to: Databases

    chrishajer
    Participant

    Use 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.

Viewing 25 results - 6,226 through 6,250 (of 6,774 total)
Skip to toolbar