Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 6,126 through 6,150 (of 6,774 total)
  • Author
    Search Results
  • #3658
    csseur3
    Member

    Hello,

    with the last installation of bbpress revision 1595, i have sql errors:

    SQL ERROR!

    >>> Database: forum_bbpress (localhost)

    >>>>>> CREATE TABLE IF NOT EXISTS bb_forums (

    forum_id int(10) NOT NULL auto_increment,

    forum_name varchar(150) NOT NULL default ”,

    forum_slug varchar(255) NOT NULL default ”,

    forum_desc text NOT NULL,

    forum_parent int(10) NOT NULL default 0,

    forum_order int(10) NOT NULL default 0,

    topics bigint(20) NOT NULL default 0,

    posts bigint(20) NOT NULL default 0,

    PRIMARY KEY (forum_id),

    KEY forum_slug (forum_slug)

    ) DEFAULT CHARACTER SET ‘utf8’ COLLATE ”;

    >>>>>> Unknown collation: ”

    SQL ERROR!

    >>> Database: forum_bbpress (localhost)

    >>>>>> CREATE TABLE IF NOT EXISTS bb_meta (

    meta_id bigint(20) NOT NULL auto_increment,

    object_type varchar(16) NOT NULL default ‘bb_option’,

    object_id bigint(20) NOT NULL default 0,

    meta_key varchar(255) default NULL,

    meta_value longtext default NULL,

    PRIMARY KEY (meta_id),

    KEY object_type__meta_key (object_type, meta_key),

    KEY object_type__object_id__meta_key (object_type, object_id, meta_key)

    ) DEFAULT CHARACTER SET ‘utf8’ COLLATE ”;

    >>>>>> Unknown collation: ”

    SQL ERROR!

    etc, etc…

    why?

    bye

    #66265
    _ck_
    Participant

    Block may never have worked like one would think.

    I think it just treats them like “bozo” status.

    It gives them the capability of “not_play_nice” = true

    hmm actually…

    function bb_block_current_user() {
    global $bbdb;
    if ( $id = bb_get_current_user_info( 'id' ) )
    bb_update_usermeta( $id, $bbdb->prefix . 'been_blocked', 1 ); // Just for logging.
    bb_die(__("You've been blocked. If you think a mistake has been made, contact this site's administrator."));
    }

    function bb_reset_password( $key ) {
    global $bbdb;
    $key = sanitize_user( $key );
    if ( empty( $key ) )
    bb_die(__('Key not found.'));
    if ( !$user_id = $bbdb->get_var( $bbdb->prepare( "SELECT user_id FROM $bbdb->usermeta WHERE meta_key = 'newpwdkey' AND meta_value = %s", $key ) ) )
    bb_die(__('Key not found.'));
    if ( $user = new BB_User( $user_id ) ) :
    if ( bb_has_broken_pass( $user->ID ) )
    bb_block_current_user();
    if ( !$user->has_cap( 'change_user_password', $user->ID ) )
    bb_die( __('You are not allowed to change your password.') );

    .

    According to all that, their password should be scrambled and they should be unable to reset it – so they can’t log in.

    But you can’t stop them from seeing the website.

    There’s no IP based blocking (yet) in bbPress.

    To really block an IP, you’d have to go into htaccess and add a “deny from” – at least for now.

    I guess someone could write a plugin to block the IP of blocked users, perhaps for 48 hours or so. Since bbPress doesn’t store the last login IP for users by default, this makes it difficult, the plugin would have to start storing IPs on every login.

    #65998
    _ck_
    Participant

    == The Shared User List (table) ==

    The most essential concept to all integration is that WordPress and bbPress just share the same list of users in the database.

    This is where some people make a mistake right at the start and accidentally create or keep using two separate copies of the user lists (usually one complete with many users and the other just themselves because it’s a fresh install of bbPress).

    If you find that after your integrated install of bbPress that it cannot “see” any of your WordPress uses, you must check that bbPress is using both the correct DATABASE, and the correct TABLE.

    The most common name for the user table is called WP_USERS

    The WP_ is what we call the prefix and indicates that it’s part of WordPress by default. If bbPress is running by itself and not integrated, the prefix is likely BB_. Unless you are doing reverse integration and don’t want to change the table name, there is a 99.9% chance that your user table should be WP_USERS.

    If your bbPress cannot see the WordPress users, check your “User database table prefix” in the bbPress integration admin menu OR add this to the bottom of bb-config.php

    $bb->wp_table_prefix = 'wp_';

    #3634
    parthatel
    Member

    How do I make a link that directs the user to their profile?

    The default code in bbPress is

    <?php printf(__('Welcome, %1$s!'), bb_get_profile_link(bb_get_current_user_info( 'name' )));?.

    Yet if I use this, the name of the user will be the linked text. Also, I’m not able to use this code alone. If I try:

    <?php bb_get_profile_link(bb_get_current_user_info( 'name' )); ?>

    …it doesn’t work. I also tried:

    <a href="<?php bb_get_profile_link(); ?>">My Profile</a>

    How can I change the text to My Profile and also let it stand alone? (standalone meaning on its own paragraph and with no Welcome, %1$s!)

    _ck_
    Participant

    By popular request here is “The Hybrid”

    download:

    http://bbshowcase.org/themes/the-hybrid.zip

    demo:

    http://bbshowcase.org/forums/?bbtheme=the-hybrid

    Essentially it’s a mash-up between the bbPress support forum theme here and Kakumei, with a few tweaks.

    Requires the Topic Views plugin to be installed.

    It’s older work and not as pretty as “FutureKind” (I won’t be releasing that one this year) and you can forget about “validation” unless you want to work on it quite a bit yourself, but it’s a nice alternative to the defaults.

    Let me know if you get any errors or other problems.

    I’ll try to fix it up some more as I have time.

    #65133
    Null
    Member

    Ok (just asking this cause i am working on a plugin myself), but how about the next step. I have this to create a table if it doens’t excist:

    bb_register_activation_hook(__FILE__, 'bbmenu_install_check');

    function bbmenu_install_check() {
    global $bbdb;

    $bbdb->hide_errors();
    $installed = $bbdb->get_results("show tables like ".$bbdb->prefix."bbmenu");

    if ( !$installed ) :
    $bbdb->query(" CREATE TABLE IF NOT EXISTS <code>&quot;.$bbdb->prefix.&quot;bbmenu</code> (
    <code>item_id</code> INT(3) NOT NULL AUTO_INCREMENT,
    <code>item</code> varchar(50) NOT NULL default '',
    <code>set</code> varchar(50) NOT NULL default '',
    <code>page</code> varchar(50) NOT NULL default '',
    <code>location</code> varchar(50) NOT NULL default '',
    <code>order</code> int(9) NOT NULL default '0',
    PRIMARY KEY (<code>item_id</code>)
    )");
    endif;
    $bbdb->show_errors();
    }

    But I also want to put some data in it:

    "INSERT INTO$bbdb->menu` VALUES

    (DEFAULT, ‘Forums’, ‘active’, ‘index.php’, ‘front-page’, 0),

    (DEFAULT, ‘Search’, ‘active’, ‘search.php’, ‘search-page’, 1),

    (DEFAULT, ‘Statistics’, ‘inactive’, ‘statistics.php’, ‘stats-page’, 0);”;`

    How to do this in the same query?

    #3617
    parthatel
    Member

    By default, when a user creates a new topic, it becomes the first post in that topic. At the top of each topic is the area where the title, last poster, add to favorites, etc.. are. I want to add that first post into that area. How do I do this or where is the place to get the initial post.

    In this case, there would be no replies when the topic is first created. How do I make it so that if there are no replies, it would say “Be the first to reply”?

    Thank You.

    #65811

    In reply to: No user found

    chrishajer
    Participant

    mdawaffe: that has no effect. I logged out of this chrishajer account, then logged in with a new account from today, hajii. I tried to change the password since it is the default emailed one. I get the error about the user being unable to be found when I try to access the profile page. (Screenshot above.)

    It might be new accounts: that hajii account is from today. And it appears to happen only on member accounts, so you might need to create member account and see if you experience the same thing.

    The only people who can fix the problem won’t be able to see it, as moderator or keymaster. :D

    Tranny
    Participant

    Chris, thanks a lot. Now the forum page pulls and no longer gives an error message, but all my formatting and custom layout is gone. And the links to forums don’t work. It takes me to the bbpress default telling me that forum is not found.

    #52795
    chrishajer
    Participant

    To anyone reading in the future:

    Please use different table prefixes for bbPress and WordPress. bb_ for bbPress and wp_ for WordPress are the defaults, for good reason. You can change them to something else if you like, but make sure they are different for WordPress, bbPress, and anything else you might install in that database.

    Integration does not require the same table prefix, and using the same table prefix means bbPress will try to use WordPress tables (of the same name) that have already been created.

    #65698

    I am experiencing the same problem as well.

    I think it has something to do with user roles, as a registered BBpress user does not have get a defined role in WordPress (i.e author, contributor, editor etc…).

    It would be easier if a default wordpress role was automatically assigned to a user that registers via bbpress.

    If anyone has any ideas/solutions it would be much appreciated.

    chrishajer
    Participant

    This is the problem right here:

    <?php bloginfo('html_type'); ?>

    bloginfo is a WordPress function, but you’re in bbPress. Try hard coding it like this <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> as it is in the default theme, and I think you will find that it works.

    Tranny
    Participant

    Yes, I had the layout of forums customized before upgrade to WP2.5 becasue defaul is very user not friendly. I also had title tag customized because default values are not SEO friendly. Obviously, this clashes with upgraded version causing my forums page to not work. This is what HEAD of my header.php looks like

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title>
    <?php if (is_front()) { ?> Forums and Forum Topic on Bullshit Blog <?php }
    elseif (is_forum()) { echo (get_forum_name() . " on Bullshit Blog Forums"); }
    elseif (is_topic()) { echo (get_topic_title() . " Forum Thread on Bullshit Blog"); }
    else {
    ?>

    <?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> &raquo; <?php bb_title() ?>

    <?php } //else ?>
    </title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" media="screen" />

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <style type="text/css" media="screen">

    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !$withcomments && !is_single() ) {
    ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>

    </style>

    <?php wp_head(); ?>

    <?php if ( is_topic() && bb_is_user_logged_in() ) : ?>
    <script type="text/javascript">
    var lastMod = <?php topic_time( 'timestamp' ); ?>;
    var page = <?php global $page; echo $page; ?>;
    var currentUserId = <?php bb_current_user_info( 'id' ); ?>;
    var topicId = <?php topic_id(); ?>;
    var uriBase = '<?php bb_option('uri'); ?>';
    var tagLinkBase = '<?php bb_tag_link_base(); ?>';
    var favoritesLink = '<?php favorites_link(); ?>';
    var isFav = <?php if ( false === $is_fav = is_user_favorite( bb_get_current_user_info( 'id' ) ) ) echo "'no'"; else echo $is_fav; ?>;
    </script>
    <?php bb_enqueue_script('topic'); ?>
    <?php endif; ?>

    </head>

    There’s obviously a lot of dynamic stuff in the head of my theme to make it mor SEO friendly. Is there a way to retain it and have it properly pull required data again?

    Thanks for your help guys, I really appreciate that :)

    #65691
    Sam Bauers
    Participant
    define('BB_LANG', 'sv_SE.mo');

    .

    I just realised that you may not have a language file for bbPress installed at all. bbPress does not come with any language files by default. You need to download them separately and follow the instructions in the bb-config.php file about where to put them.

    The language file you are after should be here…

    http://svn.automattic.com/bbpress-i18n/sv_SE/trunk/

    #65689
    Sam Bauers
    Participant

    Are you loading WordPress inside bbPress? If so the textdomain does not get loaded due to the fact that it is called “default” like the WordPress one.

    If you merge the language files of WordPress and bbPress and load it in WordPress it should work.

    #62921
    docpepper
    Member

    Hi, don’t know whether this is solved or not… I am using wordpress 2.3.3 as a Blog section on one of my clients websites. I started getting the IE7 404 error on all my pages after I added almost pretty permalinks to my pages…It did seems to go when I removed the blog-header require statement, but obviously this didnt fix the problem! I set the permalinks back to default in wordpress and the 404 errors stopped! Might be worth trying if you are using pretty permas?…Let me know if it works!

    #65610
    jldean
    Member

    Make sure you haven’t got ‘Post status’ set to ‘deleted’ – try changing it to ‘all’

    It always defaults to ‘deleted’ on my installation for some reason.

    #65594

    In reply to: color attribute

    familiar
    Member

    Have a look in /bb-includes/formatting-functions.php

    If there is a filter, you should be able to find it in there.

    From there, have a look in template-functions.php and see if it is applying the filter to the post.

    EDIT: Forgot to mention, also look in the default-filters.php file.

    #3557
    vassago
    Member

    When trying to post I get this message:

    bbPress database error: [Unknown column ‘post_title’ in ‘field list’]

    UPDATE bb_posts SET post_title=’Testy mctest test’ WHERE post_id=’11

    I am using the wordpress database (different prefix for bb stuff) but there doesn’t seem to be a post_title column, here’s the output from mysql:

    mysql> describe bb_posts;

    +


    +


    +


    +


    +


    +


    +

    | Field | Type | Null | Key | Default | Extra |

    +


    +


    +


    +


    +


    +


    +

    | post_id | bigint(20) | NO | PRI | NULL | auto_increment |

    | forum_id | int(10) | NO | | 1 | |

    | topic_id | bigint(20) | NO | MUL | 1 | |

    | poster_id | int(10) | NO | MUL | 0 | |

    | post_text | text | NO | MUL | | |

    | post_time | datetime | NO | MUL | 0000-00-00 00:00:00 | |

    | poster_ip | varchar(15) | NO | | | |

    | post_status | tinyint(1) | NO | | 0 | |

    | post_position | bigint(20) | NO | | 0 | |

    +


    +


    +


    +


    +


    +


    +

    9 rows in set (0.00 sec)

    I have looked around, but can’t seem to find anything about it on here. The forum/topic actually shows up when I go back to the page, but this is rather inconvenient. Thanks to anyone willing to help out with this.

    WP version = 2.51

    MySQL version = Server version: 5.0.45-Debian_1ubuntu3.3-log Debian etch distribution

    bbPress version = latest (just got it 3 or 4 days ago) so 0.9.0.2

    Thanks,

    -Scott.

    familiar
    Member

    If I comment out the following line in default_filters.php:

    // add_action(‘bb_head’, ‘bb_template_scripts’);

    The warning goes away. But I am not sure what this affects.

    #65518
    chrishajer
    Participant

    Can you confirm that? I suspect that would not work either. I tried it in my forum, as a regular member, on a post I wrote a week ago, and I cannot edit it. Is it possible you have a longer time set for the edit lock? A really large number there will allow editing for a long time, and a negative number would probably make them editable by the member who wrote it forever, without expiration.

    By default, members should not be able to edit any other members posts, and members should only be able to edit their own posts for the configured period of time. Keymasters can edit anything at any time. Is that not your experience?

    #65514
    chrishajer
    Participant

    I just checked on my bbPress installation and that does not work. It just redirects to the forum home page when I am not logged in. When I log in and try to access the edit.php url, I get redirected to the forum home page as well.

    I just checked on your forum and I cannot edit posts made by anyone else when I am not logged in. When I log in, I still cannot edit posts made by any other members. I tried this URL:

    http://www.cairoshell.com/forum/edit.php?id=10314

    FYI, the member who created the reply can edit the post for a period of time that is set in bb-config.php. And keymasters can edit posts made by anyone for an indefinite period of time. Is it possible you are using a plugin that gives members more permission than normal? Or that the user seeing this edit functionality is logged in as a keymaster?

    I am not seeing the problem you describe, so if your users can edit other members posts, you need to look at the permissions that they have. The default installation does not do this in any forum I’ve checked, including this forum, your forum and my own forum.

    #3505
    photolord
    Member

    I looked on here, but wasn’t quite able to find how to do this. If I missed it I apologize. How would I modify topic titles to not have the name of the forum in the title? What would I change? What file would I modify? Such as:

    This is the default title structure right now on my theme:

    <title>Topic Title >> Forum Name</title>

    I would like to change the title structure to this:

    <title>Topic Title</title>

    Any ideas? Thanks.

    Best regards,

    Matt

    dvdvideosoft
    Member

    to sambauers:

    >> You have to explicitly choose “Remember me” when you login. If

    >> that option isn’t there when you login then you need to update

    >> your template to match the default one in this regard.

    It makes sense! Please give me some advice.

    Do I need to correct my skin template or can I set a parameter in the config file?

    chrishajer
    Participant

    1. Cool (thank you), 2. Good, 3. Awesome.

    I forgot two other things which may or may not apply with current versions of bbPress. Include the my-plugins and my-templates folders, empty if necessary. Then it sort of makes sense when people are looking and thinking “where do I put this plugin?”

    Not sure if the my-* folders are still necessary or if everything goes into bb-* folders now.

    There was one more item, but I have lost the thought. Maybe it will come back to me later.

    EDIT: oh yeah. Why not include the code for search in the template, just commented out? I know there is one camp for tags and one for search, but people asking how to add search is a fairly common thing too. It’s built in, so why not just put it in the template, and comment it out if you don’t want to default to having it turned on?

    Why not something like:

    <?php
    /* uncomment this to show the search box
    search_form( $q );
    */ ?>

Viewing 25 results - 6,126 through 6,150 (of 6,774 total)
Skip to toolbar