Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,426 through 26,450 (of 32,466 total)
  • Author
    Search Results
  • #69078

    Okay, I did some testing of

    $bb->wp_home = 'http://ipstenu.org'; and $bb->wp_home = 'http://ipstenu.org/bblog'; and ffft.

    So. This doesn’t really bother me much, since I don’t mind people double-logging in. It’s only annoying in the realm of I hate when code doesn’t work right! :)

    WP 2.6.3, BP 1.0-alpha-2

    bb-config

    // WordPress cookie integration speedup
    $bb->wp_siteurl = 'http://jorjafox.net/blog';
    $bb->wp_home = 'http://jorjafox.net';
    $bb->cookiedomain = '.jorjafox.net';
    $bb->cookiepath = '/';
    $bb->authcookie = 'wordpress_DELETED';
    $bb->secure_auth_cookie = 'wordpress_sec_DELETED';
    $bb->logged_in_cookie = 'wordpress_logged_in_';
    $bb->admin_cookie_path = '/forums/bb-admin';
    $bb->core_plugins_cookie_path = '/forums/bb-plugins';
    $bb->user_plugins_cookie_path = '/forums/my-plugins';
    $bb->sitecookiepath = '/';
    $bb->wp_admin_cookie_path = '/blog/wp-admin';
    $bb->wp_plugins_cookie_path = '/blog/wp-content/plugins';
    // End integration speedups

    WP-config

    // Cookies
    define('COOKIE_DOMAIN', '.jorjafox.net');
    define('COOKIEPATH', '/' );

    I’ve also tried with no cookie settings in my wp-config. Right now it’s commented out. It’s sharing the admin cookie, since I can get into WP-admin if I log in with BBpress, but I don’t show up as a user (if I go to make a comment, it gives me the screen anon users see). If I log in via WP, I’m only logged into WP.

    #68915

    In reply to: WPMU integration

    Klark0
    Member

    I disabled registration in bbpress. All users are created when they signup for a blog.

    And to fix the other issue with member roles not being set: Drop this in the mu-plugins folder with a .php extension.

    function wpmu_bbpress_roles( $user_id )  {
    update_usermeta($user_id, 'bb_capabilities', array('member' => true));
    return;
    }
    add_action('wpmu_new_user', 'wpmu_bbpress_roles');

    #69250

    or just because I upload bbpress to directory /bbpress/?

    That is exactly why. :)

    #69043

    @lorenzo: I’m not exactly sure if there is a modification to do that or not. It seems like it would be an easy enough process with a plug-in of some kind, but that isn’t the point of integration so unfortunately I have little experience with it. :/

    #4324
    bigcanoe
    Member

    Hi ,

    I just installed bbpress 1.0-alpha-2 with wordpress 2.6.3, but not intergete with wordpress. the installation is very smooth. but when I access my forum, got Http 404 error(page not found). and my server supports permalink . following is my bb-config.php, please help to take a look.thanks a lot.


    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘******’); // The name of the database

    define(‘BBDB_USER’, ‘******’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘******’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change these last few

    define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old bb-config.php does

    define(‘BBDB_COLLATE’, ”); // not have these two contstants in them, DO NOT define them

    // If you are installing for the first time, leave them here

    // Change each KEY to a different unique phrase. You won’t have to remember the phrases later,

    // so make them long and complicated. You can visit https://www.grc.com/passwords.htm

    // to get phrases generated for you, or just make something up. Each key should have a different phrase.

    // If you are integrating logins with WordPress, you will need to match each key to

    // the value of their equivalent keys in the WordPress file wp-config.php

    define(‘BB_AUTH_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.

    define(‘BB_SECURE_AUTH_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.

    define(‘BB_LOGGED_IN_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.

    // If you are running multiple bbPress installations in a single database,

    // you will probably want to change this.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

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

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BB_LANG to ‘de’

    // to enable German language support.

    define(‘BB_LANG’, ”);

    ?>

    #69077

    I have this:

    $bb->wp_home = 'http://ipstenu.org';

    Since I did this: https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory ages and ages ago.

    But the rest, essentially, yes :)

    #50156
    _ck_
    Participant

    Technically tag_heat_map has been depricated in 1.0a2 and should use bb_tag_heat_map instead but I believe the problem would persist since a wrapper is used.

    Try one last shot with this:

    <?php bb_tag_heat_map(array( 'smallest' => 10, 'largest' => 30, 'unit' => 'px', 'limit' => 40 )); ?>

    #50154
    _ck_
    Participant

    Try passing it as an array to get around the bug:

    <?php tag_heat_map(array( 'smallest' => 10, 'largest' => 30, 'unit' => 'px', 'limit' => 40 )); ?>

    chrishajer
    Participant

    1. I would find out why the host has those functions disabled and ask if they will enable them.

    2. Using the phpinfo() you need to find a function that is available that will allow you to replace this function. You will need to do this in every place it occurs in the code.

    3. Or, you could consider a new host.

    #69233

    I know your a busy person _ck_ so thanks for the quick reply.

    it is a true subdomain, no mod_rewrite. There are no .htaccess files associated and I did have the forethought to add an .htaccess page in the root directory.

    Tried RewriteEngine and RewriteBase.

    I am not using multiviews.

    I am using the same database for several WP installs for them to share the same User data. Yet I have not used the integration functions for bbPress. All files have their bb_ prefix and should not be interacting with any other ones.

    And you are right , doesn’t look like it is allowing Index.php file to run through.

    Any other ideas?

    #68979

    Jeez, the thing why I couldnt log in was caused by year long cookie plugin. Deleted it and its okay now…

    The thing with rating in FF persists though :-(

    #69229
    _ck_
    Participant

    Sure, you can edit the login-form.php template and replace it with a link to bb-login.php

    #69018
    timskii
    Member

    This topic is an interesting read.

    I don’t see that BBPress should fit established norms for “forums”, which I personally think are horribly outdated: Trying to apply a nice neat academic/usenet ontology to the “Twitter generation”, who would rather just communicate. Now.

    So I believe the prime role of “forum software” is to allow users to freely express themselves. Structuring and organising the information they post is a different challenge. “Categories” is essentially a response to that challenge. But can’t we do better?

    Which ironically is where things like XML-RPC become interesting. Can I make use of that now? Probably not. But it surely has potential to cross-reference discussions.

    BBPress is clearly still an early stage product. It’s certainly not there yet, even if technically it works. And almost by definition nobody is going to have clear view of where it is going.

    (And for the record, personally the biggest annoyance with the core of BBPress (0.9.x) is that users cannot register using a unicode-style username – Russian, Chinese, Arabic, or even oddball European characters. It’s just… rude, right? Or is there a solution I’ve missed that doesn’t involve rewriting the core?)

    #69017
    _ck_
    Participant

    I’m not a fan of XML-RPC myself but it’s a feature Matt wanted to pioneer. He mentioned it in one of his first announcements about bbPress. He wanted some features no other forum has. Given that it’s his “baby” he can guide it in any direction he feels fit of course.

    bbPress is just like WordPress in one major way – if you don’t like something, or want to make it better – get coding.

    WordPress didn’t have documentation for YEARS. You can find many complaints about it. Even as recent as 2.0 I believe. But look at it now.

    bbPress is the same way. And in a couple years, newcomers will wonder what the heck you were complaining about.

    Last but not least, in fact most importantly, you’re working with a pre 1.0, pre-release project – what exactly are you expecting? Features aren’t even locked in yet.

    I only learned PHP a few years ago and I figured out how to code for bbPress, 100% without documentation. If I can do it, anyone can.

    #69076

    @ipstenu: So your bb-config.php has:

    $bb->wp_siteurl = 'http://ipstenu.org/blog';
    $bb->wp_home = 'http://ipstenu.org/blog';
    $bb->cookiedomain = '.ipstenu.org';
    $bb->cookiepath = '/';
    $bb->sitecookiepath = '/';
    $bb->admin_cookie_path = '/forum/bb-admin';
    $bb->core_plugins_cookie_path = '/forum/bb-plugins';
    $bb->user_plugins_cookie_path = '/forum/my-plugins';

    etc.

    and your wp-config.php has similar entries:

    define('COOKIE_DOMAIN', '.ipstenu.org');
    define('COOKIEPATH', '/' );

    etc?

    #69109
    _ck_
    Participant

    It was also reported here:

    https://bbpress.org/forums/topic/gravatar-disable-issue

    There is a bug in bb-admin/options-general.php

    https://trac.bbpress.org/changeset/1499

    Edit bb-admin/options-general.php

    and right near the top after

    bb_check_admin_referer( 'options-general-update' );

    add this line:

    if (empty($_POST['avatars_show'])) {$_POST['avatars_show'] = false;}

    #4271
    lstelie
    Member

    lastest commit issues

    Fatal error: Call to undefined function number_format_i18n() in /foo/bar/bbpress/bb-includes/functions.bb-core.php on line 231

    see : http://luc.saint-elie.com/bbpress/

    Luc

    #69160
    _ck_
    Participant

    The function is tricky in how it works, many WP/bbPress functions now use the generic $args call instead of breaking it down by field.

    First it checks if what’s passed to it is a number, if so, the number is treaded as a specific forum id request.

    If it’s NOT a number, then it’s checked if it’s not empty, and then if it’s a string and there’s no problem using it in an array. If so, then it’s used as the before element.

    To bypass those situations, you’d have to send it an array

    Something like:

    $args = array( 'id' => 1, 'before' => ' [ ', 'after' => ' ] ' );
    forum_description($args);

    Where you could leave out any of those elements inside args if you didn’t want it, like the id, after, etc.

    #69207
    techypenguin
    Member

    Thanks but the quiries doesnt work. might be because of my theme. anyway, most of the paid server out there are much faster than the virtualhost. all other cms template like phpbb3 and mambo i’ve tried are slower than the previous version of them. i already max out my cache on the server but it’s still slow :( . sometime it’s crash after a week or so. dont have budget for the bladeserver though.haha

    #69169
    chrishajer
    Participant

    From your forum:

    > Please wait a reasonable amount of time before

    > bumping posts. Try to bump posts using 24 hours

    > as a guideline. Posts that are not within these

    > guidelines are subject to removal.

    I found that funny. Also funny to say “preying” vs. praying. All very interesting.

    Anyway, to find out who started a topic, you need to stick this into your template somewhere, wherever you want to see that information.

    <?php echo get_topic_author(); ?>

    #69159
    chrishajer
    Participant

    _ck_ – what if you wanted to use a different before character? I tried forum_description('before=x'); but that didn’t work. I couldn’t get before or after to work.

    Can you explain how to use the arguments for that function please? Thanks.

    function forum_description( $args = null ) {
    if ( is_numeric($args) )
    $args = array( 'id' => $args );
    elseif ( $args && is_string($args) && false === strpos($args, '=') )
    $args = array( 'before' => $args );
    $defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
    $args = wp_parse_args( $args, $defaults );

    if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
    echo $args['before'] . $desc . $args['after'];

     

    It seems like the relevant info is listed right there in the $defaults array, but I couldn’t stumble upon the combination to make it work.

    #69206
    chrishajer
    Participant

    More queries in WordPress vs. bbPress?

    You can add this to your template footer.php (one for WordPress and one for bbPress) files and it will add a comment that is visible in the source with the amount of time taken and how many queries it took to generate the page.

    bbPress

    <!-- It took <?php bb_timer_stop(1); ?> and <?php echo $bbdb->num_queries; ?> queries -->

     

    WordPress

    <!-- It took <?php timer_stop(1); ?> and <?php echo get_num_queries(); ?> queries -->

     

    Maybe you can spot some differences there.

    #68976

    Doh, now the rating itself – bb_rating_dingus() – doesn’t work. I can click on a star, but it doesn’t go into the database :-(

    Another thing I noticed, we’ve got different line numbers so maybe you have a different version from mine?

    #68975

    _CK_: sorry to bother you again, I’m sure you know the answer and I just can’t resist asking. How would the code change if I wanted to list the Forum along the top rated topics?

    If you get round taking a look at it I’d be very grateful.

    #69157

    Sadly not mate.

    I know what you’re thinking.

    Something like : https://codex.wordpress.org/Template_Tags

    But no, it’s all guess work.

Viewing 25 results - 26,426 through 26,450 (of 32,466 total)
Skip to toolbar