Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 5,651 through 5,675 (of 6,775 total)
  • Author
    Search Results
  • #31768
    InvTrdr
    Member

    How is a “Sticky” post made in bbPress? I am using Kakumei, the default template.

    Thanks.

    #79237

    In reply to: Link to Home Page.

    InvTrdr
    Member

    I am using the default K theme in bbPress.

    Thank you.

    #79137
    InvTrdr
    Member

    The error message was “DB Error: cannot find”. Figured out that for some reason the database name filled in during step1 was not caught by the bbpress-config.php file as you can see in the code above. The BBDB_NAME has been left “bbpress” as in default. Changed it in the file and it worked. Now onto Step2.

    Thanks.

    #79161
    crguy
    Member

    Fixed it.

    I logged into phpMyAdmin

    Default Database Setting on My Server:

    MySQL connection collation: utf8_unicode_ci

    I changed it to utf8_general_ci and deleted the bb_ tables in the database and removed the bb-config.php file and went through installation again.

    All appears to be good now.

    #79135
    InvTrdr
    Member

    Below is the content of my config.php file. I have X out the important details.

    <?php

    /**

    * The base configurations of bbPress.

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys and bbPress Language. You can get the MySQL settings from your

    * web host.

    *

    * This file is used by the installer during installation.

    *

    * @package bbPress

    */

    // ** MySQL settings – You can get this info from your web host ** //

    /** The name of the database for bbPress */

    define( ‘BBDB_NAME’, ‘bbPress’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘XXXXXXXX’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘XXXXXXXX’ );

    /** MySQL hostname */

    define( ‘BBDB_HOST’, ‘XXXXXXXX.db.4779279.hostedresource.com’ );

    /** Database Charset to use in creating database tables. */

    define( ‘BBDB_CHARSET’, ‘utf8’ );

    /** The Database Collate type. Don’t change this if in doubt. */

    define( ‘BBDB_COLLATE’, ” );

    /**#@+

    * Authentication Unique Keys.

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link https://api.wXXXXXXXX.org/secret-XXX/XXX/XXXXXXX/ WordPress.org secret-key service}

    *

    * @since 1.0

    */

    define( ‘BB_AUTH_KEY’, ‘Vj-3}{i=juL$9u<4CG3S.V[XXXXXXX(]JYa>}b1PyZ$/s-|fs6b1b^HXXXXX186:’ );

    define( ‘BB_SECURE_AUTH_KEY’, ‘;/ML=-Xx(}/:J@VNr.$|zXXXXXXXX)B>dGTr+3NETTQAQ/ S&T4e}{,&OOjA|bxj’ );

    define( ‘BB_LOGGED_IN_KEY’, ‘V4L?XXXXXXXX$|#9E2`72+&?kMq(n~[3p54XzX+L|7r-6 w0{N-,QiWn[;Y$FUtN’ );

    define( ‘BB_NONCE_KEY’, ‘c]rdQ[|fn$_S}z~RVX5fR6~Rg$0XXXXXXXX}6{$vDxC>WS~4/+Ft+Ea.|4:3l>JU’ );

    /**#@-*/

    /**

    * bbPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $bb_table_prefix = ‘bb_’;

    /**

    * bbPress Localized Language, defaults to English.

    *

    * Change this to localize bbPress. A corresponding MO file for the chosen

    * language must be installed to a directory called “my-languages” in the root

    * directory of bbPress. For example, install de.mo to “my-languages” and set

    * BB_LANG to ‘de’ to enable German language support.

    */

    define( ‘BB_LANG’, ” );

    ?>

    #79117

    In reply to: Change my default url

    Olaf Lederer
    Participant

    The first “forum” is the forum’s folder and the second is used to identity a (sub)forum.

    The same way like a tag or topic is identified. You can change the forum’s folder name, that’s all.

    the structure make sense:

    https://bbpress.org/forums/ (forums home)

    https://bbpress.org/forums/forum/troubleshooting (the troubleshooting forum)

    #31739
    ppalayo
    Member

    I’m a newbie with bbpress.

    I just installed a new forum in a new folder “forum” and I want to know how to make some changes.

    I want to change my url from http://my.site.com/forum/forum/my-topic to http://my.site.com/forum/my-topic

    The default word after http://my.site.com/forum/ is “forum” can I change this?

    I can’t find an option in permalinks.

    #79099

    In reply to: Simple PHP Question

    Mark
    Member

    https://codex.wordpress.org/I18n_for_WordPress_Developers

    Same concept for bbPress. You could make all those plain text if you like, they’re built that way by default for people who need to translate their sites.

    #79022

    There might be a fatal database error, and database errors might hidden by default, $bbdb->suppress_errors( false ); will turn them on if they are. Obvious question is, does that work without any database interaction?

    #31720
    chandersbs
    Member

    The default 404 page doesn’t have much of value to offer a visitor that stumbles your website via an organic search result. This is why I have enhanced mine 404 page a bit and I would like to share that with you guys.

    Add 301 redirect for 404 pages

    Pages that have been removed to a different URL, will show a 404 page. Add a 301 redirect to your 404 page that will redirect the user to its new address.

    Suppose you had an address domain/old-url this got moved to domain/new-address, add the follow code to your 404.php (located in your bb-templates folder). Add this to the top of the page.

    <?php

    $redirect_301 = array(

    '/old-url/' => '/new-url',

    '/another-old-url' => '/another-new-url'

    );

    $request = $_SERVER;

    if (array_key_exists($_SERVER, $redirect_301)) {

    header(“HTTP/1.1 301 Moved Permanently”);

    header(‘Location: http://www.yourdomain.com&#8217; . $redirect_301[$request] );

    die();

    }

    ?>

    Also you can change the default text:

    <p><?php _e('I'm sorry, but there is nothing at this URL.'); ?></p>

    Into something more nice, like:

    <p><?php _e('The page you are looking for can not be found or it has been removed. You can always just browse the website or even use the search form below to try another search.'); ?></p>

    <?php search_form(); ?>

    What do you guys think? :D

    #78915

    Apart from the template files forum.php and topic.php that use the bb_forum_bread_crumb() (which just builds the breadcrumb for forums / topics), the separator is also hardcoded into several (all?) other template files to give custom titles, which I’m afraid have to be changed by hand.

    The only central location would be the default of bb_forum_bread_crumb(), which you shouldn’t change.

    #78892
    batrachoid
    Member

    That last plugin hasn’t been updated since January and is only compatible up to wordpress 2.7. It only adds a default role to bbpress, but if you’ve matched your wordpress and bbpress roles, this isn’t necessary, if it ever was.

    A plugin should not be necessary in order for someone to register on a wordpress blog or on bbpress. Under the Settings/General you have a place to set the default role for new members; Subscriber, Administrator, Editor, Author, or Contributor for wordpress and those roles can be matched up to bbpress roles under Settings/WordPress Integration.

    aMember.com mentions wordpress integration but not bbpress on their site, so I think that might be the issue.

    #76786

    Okay, so every plugin seems to work fine. Except for BBcode Buttons. I have installed BBcode Lite for bbPress, then uploaded BBcode Buttons and activated it.

    The description of the plugin states: “Automatically adds an easy access button toolbar above the post textarea to allow quick tags in BBcode. “

    Well, no such thing appears for me.

    I run on the original, default theme so it should not be a problem.

    #78890
    wpJunkie
    Member

    Would it be in this file maybe? bb-admin/options-wordpress.php

    https://trac.bbpress.org/browser/trunk/bb-admin/options-wordpress.php

    Basically I want to make the inactive user to be a member by default.

    #78887
    wpJunkie
    Member

    So I disabled aMember and activated the plugin https://wordpress.org/extend/plugins/add-bbpress-default-role/

    Signed up for an account on http://example.com/wp-login.php?action=register

    And the user got added to the BBpress user list but no role is set, its set to Inactive.

    So its not aMember as far as I can tell. its something between WordPress and BBpress

    #78885
    wpJunkie
    Member

    I am using aMember http://www.amember.com/ that is the membership script users get created in this program when signing up, aMember is set to use subscriber as the default role see > http://helpdock.net/screenshots/456d96758a11f190be049b744a1a1d2d.png

    So when the user gets an account in BBpress its is to inactive > http://helpdock.net/screenshots/25466e9bed803fb529b152ff074986e2.png

    #78882
    gerikg
    Member
    #78825
    Mark
    Member

    In the meantime you can pass new configuration settings to bb_topic_admin() to change the way this looks.

    Current configuration options default to:

    array(
    'id' => 0,
    'before' => '[',
    'after' => ']',
    'delete_text' => false,
    'undelete_text' => false,
    'redirect' => true
    );

    Change before to ” and after to ‘ – ‘ and instead of the brackets, you just have an extra dash floating around. Or you can edit bb_get_topic_move_dropdown() and just remove $before and $after from $r. ;)

    #78797
    SharpMouth
    Member

    Yes I meant bbPress 1.0.2 and not 1.0.3.

    I downloaded a fresh bbPress and unzipped it into the directory. Installed anew, still nothing.

    Regarding php.ini its…

    ; allow_call_time_pass_reference

    ; Default Value: On

    ; Development Value: Off

    ; Production Value: Off

    #77949
    tecsbrain
    Member

    I had the same problem and indeed it was because that first forum wasn’t created, and indeed because my server runs php4 by default (but I can override to php5 via .htaccess). Of course, I didn’t see this thread until after the fact.

    My question: what are the three (or more, or less) files I need to *remove* so I can start the setup over again under php5 and get things working? I assume bb-config.php is among them, but what are the others? What files make bbpress realize it is already installed? Should I just drop everything and start over?

    #31675

    I don’t know how logical I am in my head (maybe too much alcohol just now !!), but if simplicity is beauty, and if less means more, for me, Kakumei is the best theme. No fancy cosmetics. Default theme is the way to go.

    In short, I really love Kakumei theme. It’s so cool, and I mean it.

    #78721
    pixelgirl
    Member

    Problem 1: Might be a problem with cookies. The members link on the navi appears as selected, although I’m not on the members page, but the forums, which is not selected at all. Here’s a part of my header.php of the bb theme template:

    <?php if ( function_exists( 'bp_blogs_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>
    <?php } ?>

    <li<?php if ( bp_is_page( 'forums' ) ) {?> class="selected"<?php } ?>><a href="/bbpress/" title="Forums">Forums</a></li>'

    I used the default template and moved some code around.

    Problem 2: I think a pic says more than a 1000 words here: http://yfrog.com/56screen1opj I want to get rid of those “[]” and I have no idea in which file to do that.

    pxlgirl.

    #78741

    In reply to: Private Messaging

    Olaf Lederer
    Participant

    Hi,

    personal messaging is not a default function in bbpress, bbpress is great because of other features :)

    #67520

    In reply to: Plugin suggestions

    Olaf Lederer
    Participant

    I get it working!

    I added those two replace function before the geshi object is created:

    $code = str_replace("& lt;", "<", $code);

    $code = str_replace("& gt;", ">", $code);

    and I use the default priority for the filters. Are the replacements a problem?

    #67518

    In reply to: Plugin suggestions

    Olaf Lederer
    Participant

    @_ck_

    I worked on the wp-syntax plugin but it doesn’t parse the code :(

    do you have an idea what’s missing?

    function allow_syntax_tag($tags) {
    $tags['pre'] = array('lang' => array(), 'line' => array(), 'escaped' => array(), 'style' => array(), 'width' => array());
    return $tags;
    }
    add_filter('bb_allowed_tags', 'allow_syntax_tag');

    include_once("geshi/geshi.php");

    if (!defined("BB_PLUGIN_URL")) define("BB_PLUGIN_URL", bb_get_uri() . "/my-plugins");

    function wp_syntax_head()
    {
    $css_url = BB_PLUGIN_URL . "wp-syntax/wp-syntax.css";
    echo "n".'<link rel="stylesheet" href="' . $css_url . '" type="text/css" media="screen" />'."n";
    }

    function wp_syntax_code_trim($code)
    {
    // special ltrim b/c leading whitespace matters on 1st line of content
    $code = preg_replace("/^s*n/siU", "", $code);
    $code = rtrim($code);
    return $code;
    }

    function wp_syntax_substitute(&$match)
    {
    global $wp_syntax_token, $wp_syntax_matches;

    $i = count($wp_syntax_matches);
    $wp_syntax_matches[$i] = $match;

    return "nn<p>" . $wp_syntax_token . sprintf("%03d", $i) . "</p>nn";
    }

    function wp_syntax_line_numbers($code, $start)
    {
    $line_count = count(explode("n", $code));
    $output = "<pre>";
    for ($i = 0; $i < $line_count; $i++)
    {
    $output .= ($start + $i) . "n";
    }
    $output .= "</pre>";
    return $output;
    }

    function wp_syntax_highlight($match)
    {
    global $wp_syntax_matches;

    $i = intval($match[1]);
    $match = $wp_syntax_matches[$i];

    $language = strtolower(trim($match[1]));
    $line = trim($match[2]);
    $escaped = trim($match[3]);
    $code = wp_syntax_code_trim($match[4]);
    if ($escaped == "true") $code = htmlspecialchars_decode($code);
    //$code = clean_pre($code);// new
    $geshi = new GeSHi($code, $language);
    $geshi->enable_keyword_links(false);
    do_action_ref_array('wp_syntax_init_geshi', array(&$geshi));

    $output = "n<div class="wp_syntax">";

    if ($line)
    {
    $output .= "<table><tr><td class="line_numbers">";
    $output .= wp_syntax_line_numbers($code, $line);
    $output .= "</td><td class="code">";
    $output .= $geshi->parse_code();
    $output .= "</td></tr></table>";
    }
    else
    {
    $output .= "<div class="code">";
    $output .= $geshi->parse_code();
    $output .= "</div>";
    }

    $output .= "</div>n";

    return $output;
    }

    function wp_syntax_before_filter($content)
    {
    $content = preg_replace_callback(
    "/s*<pre(?:lang=["']([w-]+)["']|line=["'](d*)["']|escaped=["'](true|false)?["']|s)+>(.*)</pre>s*/siU",
    "wp_syntax_substitute",
    $content
    );
    return $content;
    }

    function wp_syntax_after_filter($content)
    {
    global $wp_syntax_token;

    $content = preg_replace_callback(
    "/<p>s*".$wp_syntax_token."(d{3})s*</p>/si",
    "wp_syntax_highlight",
    $content
    );

    return $content;
    }

    $wp_syntax_token = md5(uniqid(rand()));

    // Add styling
    add_action('bb_head', 'wp_syntax_head');

    // We want to run before other filters; hence, a priority of 0 was chosen.
    // The lower the number, the higher the priority. 10 is the default and
    // several formatting filters run at or around 6.
    add_filter('post_text', 'wp_syntax_before_filter', 0);

    // We want to run after other filters; hence, a priority of 99.
    add_filter('post_text', 'wp_syntax_after_filter', 99);

Viewing 25 results - 5,651 through 5,675 (of 6,775 total)
Skip to toolbar