Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,976 through 29,000 (of 32,491 total)
  • Author
    Search Results
  • #2468
    intellivision
    Participant
    edButtons.push(
    new edButton(
    'ed_strike'
    ,'STRIKE'
    ,'<strike>'
    ,'</strike>'
    ,'s'
    )
    );

    I added that (and allowed strikethru functionality via another plugin) but the strike button does not show. Any ideas?

    #61005

    In reply to: Hot Tags Font size

    chrishajer
    Participant

    http://blueplato.com/forums/bbpress is not accessible (gives a 404). I was going to look at the theme you are using because that is not the default for the bb_tag_heat_map: <?php bb_tag_heat_map(9 38 ‘pt’ 80); ?>

    This is the default from https://trac.bbpress.org/browser/trunk/bb-templates/kakumei/front-page.php#L7

    <?php bb_tag_heat_map(); ?>

    So, what do the numbers mean? Looking at that function in bb-includes/teamplate-functions.php around line 1574, here’s what the defaults are, and mean:

    $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'limit' => 45, 'format' => 'flat' );

    Looks like you define the smallest size, largest size, the unit of measure, the max size and then a format (not sure what that last one does.)

    So, my guess is you would change those. At the very least you need to put comments between the arguments in the function call in your front-page.php: your example shows none. And you might want to add that last argument – not sure what happens when it’s missing.

    #61002

    In reply to: 404 Not Found

    chrishajer
    Participant

    Sounds like your server does not support slugs or pretty permalinks, or you did not create the .htaccess file. I would start by changing your config to turn off mod_rewrite like this (like 26 in config.php):

    $bb->mod_rewrite = false;

    That should make your forum visible again.

    #60944
    warmechoco
    Member

    anyone? :(

    #2464
    inimicus
    Member

    Hi!

    I am trying out BB for the first time, but upon running install.php I get this:

    hide_errors(); $installed = $bbdb->get_results("SELECT * FROM $bbdb->forums LIMIT 1"); if ( $installed ) : if ( !$new_keymaster = bb_get_option( 'new_keymaster' ) ) die(sprintf(__('
    Already Installed

    You appear to have already installed bbPress. Perhaps you meant to upgrade instead?

    To reinstall please clear your old database tables first.
    ') . '', bb_get_option( 'uri' ) . 'bb-admin/upgrade.php')); $meta_key = $bb_table_prefix . 'capabilities'; $keymaster = false; if ( $keymasters = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE meta_key = '$meta_key' AND meta_value LIKE '%keymaster%'") ) { foreach ( $keymasters as $potential ) { $pot_array = unserialize($potential->meta_value); if ( is_array($pot_array) && array_key_exists('keymaster', $pot_array) && true === $pot_array['keymaster'] ) die(__('
    Already Installed

    You appear to have already installed bbPress. Perhaps you meant to run the upgrade scripts instead? To reinstall please clear your old database tables first.
    ') . ''); } } $user = new BB_User( $new_keymaster ); if ( $user->data ) : $user->set_role( 'keymaster' ); ?>

    data->user_login); ?>

    show_errors(); switch ($step): case 0: ?>

    hide_errors(); if ( $users = $bbdb->get_var("SELECT ID FROM $bbdb->users LIMIT 1") ) { $meta_key = $bb_table_prefix . 'capabilities'; if ( $keymasters = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE meta_key = '$meta_key' AND meta_value LIKE '%keymaster%'") ) { foreach ( $keymasters as $potential ) { $pot_array = unserialize($potential->meta_value); if ( array_key_exists('keymaster', $pot_array) && true === $pot_array['keymaster'] ) { $keymaster = (int) $potential->user_id; break; } } if ( $keymaster ) $keymaster = $bbdb->get_row("SELECT * FROM $bbdb->users WHERE ID = '$keymaster'"); } } $bbdb->show_errors(); } ?>

    everything (database information, email address, etc.) entered correctly in config.php before running this script.'); ?>
    add('domain', __('Your $bb->domain setting must not end in a backslash "/".') ); $domain = parse_url($bbd); if ( !$domain ) $errors->add('domain', __('Your $bb->domain setting cannot be parsed.') ); // Not very helpful, but should essentially never happen. if ( !$domain['scheme'] ) $errors->add('domain', __('Your $bb->domain setting must start with http://.') ); if ( $domain['path'] && '/' != $domain['path'] ) $errors->add('domain', __('Your $bb->domain setting must only include the http:// and the domain name; it may not include any directories or path information.') ); if ( '/' != $bbp{0} ) $errors->add('path', __('Your $bb->path setting must start with a backslash "/".') ); if ( '/' != substr($bbp, -1) ) $errors->add('path', __('Your $bb->path setting must end with a backslash "/".') ); // We don't really do anything with $bb->wp_site_url. if ( $wph = bb_get_option( 'wp_home' ) ) { if ( '/' == $wph{strlen($wph) - 1} ) $errors->add('wp_home', __('Your $bb->wp_home setting must not end in a backslash "/".') ); $home = parse_url($wph); if ( !$home ) $errors->add('wp_home', __('Your $bb->wp_home setting cannot be parsed.') ); if ( !$home['scheme'] ) $errors->add('wp_home', __('Your $bb->wp_home setting must start with http://.') ); if ( preg_match('|(.*.)?([^.]+.[^.]+)|', $domain['host'], $d2 ) && preg_match('|(.*.)?([^.]+.[^.]+)|', $home['host'], $h2 )) if ( $d2[2] != $h2[2] ) $errors->add('cookie', __('Your $bb->domain and $bb->wp_home settings do not have the same domain.
    You cannot share login cookies between the two.
    Remove the $bb->wp_home setting from your config.php file.') ); if ( !strstr($bbp, $home['path'] . '/') ) $notices->add('cookie', __("Your bbPress URL ({$bbd}$bbp) is not a subdirectory of your WordPress URL ($bb->wp_home).
    Sharing login cookies is possible but is more complicated. See the documentation about integrating bbPress and WordPress.
    In the meantime, remove the $bb->wp_home setting from your config.php file, or you may not be able to log in.") ); } if ( $cd = bb_get_option( 'cookiedomain' ) ) { if ( '.' == $cd{0} ) $cd = substr($cd, 1); if ( !strstr($bbd, $cd) ) $errors->add('cookie', __('Your $bb->cookiedomain is not in the same domain as your $bb->domain. You will not be able to log in.') ); } $cp = bb_get_option( 'cookiepath' ); if ( $cp != preg_replace('|https?://[^/]+|i', '', bb_get_option( 'wp_home' ) . '/') && !strstr($bbp, $cp) ) $notices->add('cookie', __('Your bbPress URL $bb->path is outside of your $bb->cookiepath. You may not be able to log in.') ); if ( $ecodes = $errors->get_error_codes() ) { echo "

    * n"; if ( in_array('domain', $ecodes) ) foreach ( $errors->get_error_messages( 'domain' ) as $message ) echo "t$message
    * n"; if ( in_array('path', $ecodes) ) foreach ( $errors->get_error_messages( 'path' ) as $message ) echo "t$message
    * n"; if ( in_array('wp_home', $ecodes) ) foreach ( $errors->get_error_messages( 'wp_home' ) as $message ) echo "t$message
    * n"; if ( array('cookie') == $ecodes ) { // Only show cookie errors if nothing else is wrong foreach ( $errors->get_error_messages( 'cookie' ) as $message ) echo "t$message
    n"; echo "

    n"; break; } echo "n"; echo "

    It continues from there…

    The problem is, I have never installed BBPress. I went to MySQL after I got the error the first time, made a database for BB called “bbpress” but still get the error (even though the database is new, fresh and entirely empty). What’s up?

    jolaedana
    Member

    I’ve been working with chrishajer from the forums here on this one, and thanks to his help the problem was discovered and solved.

    Somehow, the “parent” value of each forum was set to 1 instead of 0, but because there was no parent with an id of 1, they weren’t showing up. We went in via PHPmyAdmin, and changed that parent value in the tables from 1 to 0, and they showed up just fine. I never had these under a parent forum.

    Guessing this may have been caused somehow during the database changes during the update? Unsure, but many thanks to Chris for his great help. :)

    jolaedana
    Member

    I didn’t have any parent children forums- stayed away from that and kept it all top level.

    I basically just modified the basic theme that comes with the forums- the only thing I changed was the CSS, so the index.php file should be the same, aside from the few things I added in to call the “who’s online” list and the like.

    <?php

    require(‘./bb-load.php’);

    $bb_db_override = false;

    do_action( ‘bb_index.php_pre_db’, ” );

    if ( isset($_GET) && ‘1’ == $_GET ) :

    $forums = false;

    elseif ( !$bb_db_override ) :

    $forums = get_forums(); // Comment to hide forums

    $topics = get_latest_topics();

    $super_stickies = get_sticky_topics();

    endif;

    do_action( ‘bb_index.php’, ” );

    bb_load_template( ‘front-page.php’, array(‘bb_db_override’, ‘super_stickies’) );

    ?>

    Strange indeed. Can you open up your theme’s index.php and paste the code that displays the forum table? (If you need help finding that code, just let me know).

    jolaedana
    Member

    I’m getting the vibe this is a mystery. :( I haven’t been able to find anything similar so far, and looking through the source hasn’t helped out at all either.

    #57907
    Jaithn
    Member
    And this line to use the user table from wpmu.

    define('CUSTOM_USER_TABLE', 'wp_users');

    And IIRC, that's already in the config file, just commented out.

    i don’t have these lines in my bbpress config file…do i need them?

    jaithn

    #60517
    Jaithn
    Member

    hello…

    after upgrading to .83 the error-message changed…

    maybe somebody could help me!!! please!!

    Fatal error: Call to undefined function __() in /home/www/kunden/fsj-community.de/wordpress/forum/bb-includes/default-filters.php on line 81

    jaithn

    #60959

    In reply to: Cannot select DB

    lookfab
    Member

    Thanks Chris.

    > can you try connecting to that database

    Yes, I did this with the MySQL cmd line client and I can connect fine. The bbpress settings are really simple:

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘wordpress’);

    define(‘BBDB_USER’, ‘wordpress’);

    define(‘BBDB_PASSWORD’, ‘XXXXXXXX’);

    define(‘BBDB_HOST’, ‘localhost’);

    define(‘BBDB_CHARSET’, ‘utf8’);

    define(‘BBDB_COLLATE’, ”);

    And for WP:

    // ** MySQL settings ** //

    define(‘DB_NAME’, ‘wordpress’);

    define(‘DB_USER’, ‘wordpress’);

    define(‘DB_PASSWORD’, ‘XXXXXXXX’);

    define(‘DB_HOST’, ‘localhost’);

    Here is the info from the MySQL database after connecting as the ‘wordpress’ user:

    mysql> show databases;

    +


    +

    | Database |

    +


    +

    | information_schema |

    | wordpress |

    +


    +

    3 rows in set (0.00 sec)

    Is there any way to get more detailed diagnostic info from the install process?

    #55933

    In reply to: Show off your Forum !!

    Hi all.

    Great forum app. Just started using it a few days ago and couldn’t believe how easy it is to configure. I am currently building a forum for our members in our Swim & Fitness Centre. So, still all empty as I am still playing with the look, plugins and so on. Feedback always appreciated…. thanks

    http://www.getfitcentre.com/forum

    =)

    #60915

    Well, I did change to “mysqli” on line 80 in db-mysqli.php.

    Those latter warnings appeared during Step2 in the installation process, and is related to line 6 in upgrade-schema.php.

    I have changed line 6 to

    if ( version_compare($this->$dbhname, '4.1.0', '>=') )

    but still get this warning:

    Warning: mysqli_get_server_info() expects exactly 1 parameter, 0 given in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/upgrade-schema.php on line 6

    PS. When I added $this->$dbhname inbetween the brackets “mysqli_get_server_info()” I got a fatal error during installation.

    #60914
    chrishajer
    Participant

    The important thing to change in line 80 is from

    mysql_get_server_info

    to

    mysqli_get_server_info
    ^

    There’s a letter I in there and it does not look like you changed that based on your error message. You also still need to have the $this->$dbhname as the parameter as well (maybe you already did that, but did not catch the I part.)

    #60913

    Fine, now the first step of the installation works.

    During the second step the following warnings appear:

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user 'nicuuorg'@'localhost' (using password: NO) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/upgrade-schema.php on line 6

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/upgrade-schema.php on line 6

    But the forums seems to run ok now!

    #60912
    Sam Bauers
    Participant

    Try changing line 80 from this:

    if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') )

    to this:

    if ( !empty($this->charset) && version_compare(mysqli_get_server_info($this->$dbhname), '4.1.0', '>=') )

    #2454
    warmechoco
    Member

    Hi,

    I would like to work with subforums and sub-sub forums,

    but obviously that takes a lot of room on my front page..

    Does anyone have the same problem and has a solution for that?

    I suggest doing something like this:

    Forum

    – Subforum1

    –Subsubforum1, Subsubforum2, Subsubforum3, Subsubforum4

    -Subforum2

    –Subsubforum1,Subsubforum2

    does anyone know how to? :)

    thx!

    #60911

    The first warning disappeared!

    Only three warnings left:

    Warning: mysqli_get_server_info() expects exactly 1 parameter, 0 given in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php on line 80

    Warning: Cannot modify header information - headers already sent by (output started at /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php:80) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/install.php on line 10

    Warning: Cannot modify header information - headers already sent by (output started at /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php:80) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/functions.php on line 1898

    chrishajer
    Participant

    Line 78 in db-mysqli.php looks like this:

    $this->$dbhname = @mysqli_connect( $server->host, $server->user, $server->pass, null, $server->port );

    I thought the order of the parameters was important, and should be:

    host, user, pass, dbname, port, socket

    From looking at line 78, it would seem that the dbname is set to null, and the socket is not used since it’s just not there. Is that intentional? Maybe the database name is set someplace else and is not needed here for this connection? Just asking because it seemed weird to me.

    Thanks.

    #60909
    chrishajer
    Participant

    I just checked out r951 and I can duplicate this on a vanilla install without integration. I think the problem is with line 80 in db-mysqli.php:

    if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') )

    I think mysql_get_server_info() should be mysqli_get_server_info()

    Since the connection was made a couple lines earlier with @mysqli_connect, there is no mysql_connect link identifier, and none is passed in, so line 80 generates a warning and the setting of the charset errors out, and would never happen.

    If you add the i to line 80, the warnings go away. I added my comments to the trac ticket.

    #60845

    From lasir’s config file, it looks like a common theme may be that the error message says:

    Access denied for user 'thechamp'@'localhost' (using password: NO)

    but the config file specifies a different user: thechamp_risal. (Can the others who are experiencing this problem please post the DB details of their setup as well?).

    This often indicates that the specified user doesn’t exist (or possibly doesn’t have access) in the specified database.

    Lasil, I’m not sure what this post is showing. Are you looking at users in the wrdp1 database or in thechamp_wrdp1?

    The other commonality here may be that all of you are using the mysqli extension. It could be that there’s a bug there that’s only now popping up since most people use the mysql extension.

    You can try overwriting /bb-includes/db-mysqli.php with /bb-includes/db.php (so that you have two copies of db.php) to see if that helps.

    #60843
    miraploy
    Member

    I would like to use bbpress as soon as possible, I would appreciate it if some adventerous soul took a crack at it and made a few code edits.

    Thanks.

    #2444

    Hi!

    I am trying to install bbpress with WP 2.3.

    In the config-file for bbpress I have written EXACTLY the same databasename, username and password as in the config-file for WP.

    Still, when I run the install.php for bbpress I get several lines of “warnings”/error messages before the installation text “Welcome to…”

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user ‘nicuuorg’@’localhost’ (using password: NO) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php on line 80

    Anyone understanding what’s going on.

    The WP runs without any problems.

    Could it be related to that the username is not correctly read from the config.php-file. The username is nicuuorg_stefanj, but access is denied for 'nicuuorg'@'localhost' according to the warning above.

    #60833
    intellivision
    Participant

    Ok, thanks for the post.

    I wish I could “sick” it on account creations and not posts. All my spam is in new spam accounts.

    I know I know… write a plugin ;-)

Viewing 25 results - 28,976 through 29,000 (of 32,491 total)
Skip to toolbar