Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'updated'

Viewing 25 results - 1,701 through 1,725 (of 2,086 total)
  • Author
    Search Results
  • #15380
    Great2BeHere
    Member

    I have just installed bbPress on my server, but the only version that was available for download is the new version, which seems to have minimal plug-ins and virtually no templates to enhance it. Where can I find templates that will work with this version? I’ve attempted to install templates I’ve downloaded from some sites but these templates don’t work and I really want a forum with more versatility….

    thanks,

    Sophie

    #72358

    In reply to: Bulgarian translation

    Translations for branches 0.9 and 1.0 updated! Available in the SVN repository:

    http://svn.automattic.com/bbpress-i18n/bg_BG/branches/0.9/

    http://svn.automattic.com/bbpress-i18n/bg_BG/branches/1.0/

    Ами, радвайте :) Преоводите са вече в официалното хранилище. За версия 1.0 е 98% завършен, но непреведените неща се виждат само при инсталиране на bbPress.

    Ще гледам да го поддържам занапред :)

    #76118
    birdy404
    Member

    i downloaded the plugins ADSENSE FOR BBPRESS and GOOGLE ADSENSE CONFIGURATION. The former gives an option to insert codes but when i put in my OpenX code nothing shows up. The latter, however, displays my OpenX ads, only problem is it shows up in the footer when i want it in the header and between posts. i tried inserting the html codes directly in my themes but it shows as html codes and not as an ad. am i doing something wrong? please let me know.

    Also, can any of you please help me configure it to not only show up in the footer? here’s the coding for that plugin:

    <?php

    /*

    Plugin Name: Simple Google Adsense

    Plugin URI: http://www.strapontins.org/people/rentendre/simple-google-adsense-bbpress/

    Description: Add Google Adsense code in your bbPress forum, in the footer :) All users are welcome to improve on it :p

    Author: Frédéric Petit

    Author URI: http://www.strapontins.org/

    Version: 0.2

    License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/

    */

    add_action(‘bb_admin_menu_generator’, ‘bb_gad_configuration_page_add’);

    add_action(‘bb_admin-header.php’, ‘bb_gad_configuration_page_process’);

    function bb_gad_configuration_page_add() {

    bb_admin_add_submenu(__(‘Google Adsense Configuration’), ‘use_keys’, ‘bb_gad_configurtion_page’);

    }

    function bb_gad_configurtion_page(){?>

    <h2><?php _e(‘Google Adsense Configuration’); ?></h2>

    <form class=”options” method=”post” action=””>

    <fieldset>

    <label for=”ga_key”>

    <?php _e(‘Google Adsense User Id:’) ?>

    </label>

    <div>

    <textarea class=”text” name=”ga_key” id=”ga_key” value=”<?php bb_form_option(‘ga_key’); ?>” ></textarea>

    <?php _e(‘Put your adsense code, without the code of the script pagead2.googlesyndication.com/pagead/show_ads.js’); ?>

    </div>

    </fieldset>

    <fieldset>

    <?php bb_nonce_field( ‘ga-configuration’ ); ?>

    <input type=”hidden” name=”action” id=”action” value=”update-ga-configuration” />

    <div class=”spacer”>

    <input type=”submit” name=”submit” id=”submit” value=”<?php _e(‘Update Configuration »’) ?>” />

    </div>

    </fieldset>

    </form>

    <?php

    }

    function bb_gad_configuration_page_process() {

    if ($_POST == ‘update-ga-configuration’) {

    bb_check_admin_referer(‘ga-configuration’);

    if ($_POST) {

    $value = stripslashes_deep( trim( $_POST ) );

    if ($value) {

    bb_update_option(‘ga_key’, $value);

    } else {

    bb_delete_option(‘ga_key’ );

    }

    } else {

    bb_delete_option(‘ga_key’);

    }

    $goback = add_query_arg(‘ga-updated’, ‘true’, wp_get_referer());

    bb_safe_redirect($goback);

    }

    if ($_GET) {

    bb_admin_notice( __(‘Configuration saved.’) );

    }

    }

    // Bail here if no key is set

    if (!bb_get_option( ‘ga_key’ ))

    return;

    function createGAdCode($accountId) {

    $code .= ‘<div class=’bbpress_adsense’>’ . “n”;

    $code .= ‘ ‘ . $accountId . ‘ ‘ . “n”;

    $code .= ‘<script type=’text/javascript’ src=’http://pagead2.googlesyndication.com/pagead/show_ads.js’></script>&#8217; . “n”;

    $code .= ‘</div>’ . “n”;

    return $code;

    }

    function insertGAdCode() {

    $accountId = bb_get_option(‘ga_key’);

    if ($accountId != ”) {

    echo createGAdCode($accountId);

    }

    }

    add_action(‘bb_foot’, ‘insertGAdCode’);

    ?>

    #75699
    batrachoid
    Member

    Yeah, I had the same problem when I updated to the most recent version of BBpress until I noticed this post over at https://bbpress.org/plugins/topic/avatar-upload/

    transom wrote

    To get Avatar tab in the profile working under Alpha-2 –

    edit avatar-upload.php in the bbpress root

    change line 7 from

    bb_auth(); // logged in?

    to

    bb_auth(‘logged_in’); // logged in?

    It worked like a charm for me.

    #75771

    Hmm, that’s interesting because I did use the updated version of approve user registration. Guess I will just have to try this again and see how things go. I’ll update here after.

    #75770
    deadlyhifi
    Participant

    The standard version of approve user registration does not work in V1. This may be breaking registration.

    There’s an updated version of this plugin here: https://bbpress.org/plugins/topic/approve-user-registration/page/2/#post-3902

    I’ve got V1.0.1 working great with that and human test. But if you’ve tested with the plugins disabled I can’t really offer anymore help. Sorry.

    #15228
    deadlyhifi
    Participant

    For WordPress:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo '?' . filemtime( get_stylesheet_directory() . '/style.css'); ?>" type="text/css" media="screen, projection" />

    For bbPress:

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); echo '?' . filemtime( bb_get_active_theme_directory() . '/style.css'); ?>" type="text/css" media="screen, projection" />

    Creates a unique number (based on time) after the filename which is automatically updated if make a change to your stylesheet.

    #75681

    Sure… but be forewarned. i’m not familiar with php whatsoever and the bbPress structure. (so i’m sure i violated something) this is on 1.0. Not sure if this can be made into a plug-in or not, I have yet to read up on how to create those and the filter/hook stuff.

    (i have a small community ~1000 when all said and done – but some are savvy with firebug would just edit the form fields if disabled)

    profile-edit.php in the main root – everything labeled CHANGED

    // Instantiate the error object

    $errors = new WP_Error;

    if ( ‘post’ == strtolower($_SERVER) ) {

    $_POST = stripslashes_deep( $_POST );

    bb_check_admin_referer( ‘edit-profile_’ . $user_id );

    // Fix the URL before sanitizing it

    $user_url = bb_fix_link( $_POST );

    // Sanitize the profile info keys and check for missing required data

    foreach ( $profile_info_keys as $key => $label ) {

    $$key = apply_filters( ‘sanitize_profile_info’, $_POST[$key], $key, $_POST[$key] );

    if ( !$$key && $label[0] == 1 ) {

    $errors->add( $key, sprintf( __( ‘%s is required.’ ), esc_html( $label[1] ) ) );

    $$key = false;

    }

    }

    // Find out if we have a valid email address

    if ( isset( $user_email ) && !$user_email = is_email( $user_email ) ) {

    $errors->add( ‘user_email’, __( ‘Invalid email address’ ), array( ‘data’ => $_POST ) );

    }

    //CHANGED – added for duplicate email check on profile update

    if (isset( $user_email )) {

    if(changed_no_duplicate_email_update_user($user_email, $user->ID)) {

    $bad_input = true;

    $$key = false;

    $errors->add( ‘user_email’, __( ‘Email address already in use’ ), array( ‘data’ => $_POST ) );

    }

    }

    //ENDCHANGED

    // Deal with errors for users who can edit others data

    if ( bb_current_user_can(‘edit_users’) ) {

    // If we are deleting just do it and redirect

    if ( isset($_POST) && $_POST && $bb_current_id != $user->ID ) {

    bb_delete_user( $user->ID );

    wp_redirect( bb_get_uri(null, null, BB_URI_CONTEXT_HEADER) );

    exit;

    }

    // Get the user object

    $user_obj = new BP_User( $user->ID );

    // Store the new role

    $role = $_POST;

    // Deal with errors with the role

    if ( !isset($wp_roles->role_objects[$role]) ) {

    $errors->add( ‘role’, __( ‘Invalid Role’ ) );

    } elseif ( !bb_current_user_can( ‘keep_gate’ ) && ( ‘keymaster’ == $role || ‘keymaster’ == $user_obj->roles[0] ) ) {

    $errors->add( ‘role’, __( ‘You are not the Gate Keeper.’ ) );

    } elseif ( ‘keymaster’ == $user_obj->roles[0] && ‘keymaster’ != $role && $bb_current_id == $user->ID ) {

    $errors->add( ‘role’, __( ‘You are Keymaster, so you may not demote yourself.’ ) );

    }

    // Sanitize the profile admin keys and check for missing required data

    foreach ( $profile_admin_keys as $key => $label ) {

    if ( isset( $$key ) )

    continue;

    $$key = apply_filters( ‘sanitize_profile_admin’, $_POST[$key], $key, $_POST[$key] );

    if ( !$$key && $label[0] == 1 ) {

    $errors->add( $key, sprintf( __( ‘%s is required.’ ), esc_html( $label[1] ) ) );

    $$key = false;

    }

    }

    // Create variable for the requested roles

    foreach ( $assignable_caps as $cap => $label ) {

    if ( isset($$cap) )

    continue;

    $$cap = ( isset($_POST[$cap]) && $_POST[$cap] ) ? 1 : 0;

    }

    }

    // Deal with errors generated from the password form

    if ( bb_current_user_can( ‘change_user_password’, $user->ID ) ) {

    if ( ( !empty($_POST) || !empty($_POST) ) && $_POST !== $_POST ) {

    $errors->add( ‘pass’, __( ‘You must enter the same password twice.’ ) );

    } elseif( !empty($_POST) && !bb_current_user_can( ‘change_user_password’, $user->ID ) ) {

    $errors->add( ‘pass’, __( “You are not allowed to change this user’s password.” ) );

    }

    }

    // If there are no errors then update the records

    if ( !$errors->get_error_codes() ) {

    do_action(‘before_profile_edited’, $user->ID);

    //CHANGED – did we reset the email?

    $changed_do_email_reset = false;

    //ENDCHANGED

    if ( bb_current_user_can( ‘edit_user’, $user->ID ) ) {

    //CHANGED- if user updates email address – generate new password and email

    if ($user->user_email != $user_email) {

    $changed_do_email_reset = true;

    $changed_old_email = $user->user_email;

    }

    //ENDCHANGED

    // All these are always set at this point

    bb_update_user( $user->ID, $user_email, $user_url, $display_name );

    // Add user meta data

    foreach( $profile_info_keys as $key => $label ) {

    if ( ‘display_name’ == $key || ‘ID’ == $key || strpos($key, ‘user_’) === 0 )

    continue;

    if ( $$key != ” || isset($user->$key) )

    bb_update_usermeta( $user->ID, $key, $$key );

    }

    }

    if ( bb_current_user_can( ‘edit_users’ ) ) {

    if ( !array_key_exists($role, $user->capabilities) ) {

    $user_obj->set_role($role); // Only support one role for now

    if ( ‘blocked’ == $role && ‘blocked’ != $old_role )

    bb_break_password( $user->ID );

    elseif ( ‘blocked’ != $role && ‘blocked’ == $old_role )

    bb_fix_password( $user->ID );

    }

    foreach( $profile_admin_keys as $key => $label )

    if ( $$key != ” || isset($user->$key) )

    bb_update_usermeta( $user->ID, $key, $$key );

    foreach( $assignable_caps as $cap => $label ) {

    if ( ( !$already = array_key_exists($cap, $user->capabilities) ) && $$cap) {

    $user_obj->add_cap($cap);

    } elseif ( !$$cap && $already ) {

    $user_obj->remove_cap($cap);

    }

    }

    }

    //CHANGED – send confirmation emails, log them out

    if ($changed_do_email_reset) {

    $send_key_result = bb_reset_email( $user->user_login );

    if ( is_wp_error( $send_key_result ) )

    $error = $send_key_result->get_error_message();

    if ($changed_old_email) {

    $mail_result = bb_mail( $changed_old_email, bb_get_option(‘name’) . ‘: ‘ . __(‘Email Address Updated’), “Your email address has been updated and a confirmation message has been sent. Thanks!” );

    if (!$mail_result) {

    new WP_Error(‘sending_mail_failed’, __(‘The email notifying an email address change could not be sent.’));

    }

    }

    //kill their current session and break the password so they can’t log in until a reset.

    if ( bb_get_current_user_info( ‘ID’ ) == $user->ID ) {

    changed_break_password( $user->ID );

    bb_clear_auth_cookie();

    }

    //ENDCHANGED

    } else if ( bb_current_user_can( ‘change_user_password’, $user->ID ) && !empty($_POST) ) {

    $_POST = addslashes($_POST);

    bb_update_user_password( $user->ID, $_POST );

    if ( bb_get_current_user_info( ‘ID’ ) == $user->ID ) {

    bb_clear_auth_cookie();

    bb_set_auth_cookie( $user->ID );

    }

    }

    do_action(‘profile_edited’, $user->ID);

    //CHANGED – lets fire off a message on the template page to explain what we did

    if ($changed_do_email_reset) {

    wp_redirect( add_query_arg( ’emailupdated’, ‘true’, get_user_profile_link( $user->ID ) ) );

    //ENDCHANGED

    } else {

    wp_redirect( add_query_arg( ‘updated’, ‘true’, get_user_profile_link( $user->ID ) ) );

    }

    exit;

    }

    }

    then two helper functions

    function changed_no_duplicate_email_update_user($email, $id) {

    if ($email && $id) {

    global $bbdb;

    if ($bbdb->get_row($bbdb->prepare("SELECT ID FROM $bbdb->users WHERE user_email = %s AND ID <> %d ", $email, $id))) {

    return true;

    } else {

    return false;

    }

    }

    }

    function changed_break_password( $user_id ) {

    global $bbdb;

    $user_id = (int) $user_id;

    if ( !$user = bb_get_user( $user_id ) )

    return false;

    $secret = substr(bb_hash( ‘changed_break_password’ ), 0, 13);

    if ( false === strpos( $user->user_pass, ‘—‘ ) )

    return $bbdb->query( $bbdb->prepare(“UPDATE $bbdb->users SET user_pass = CONCAT(user_pass, ‘changed’, %s) WHERE ID = %d”, $secret, $user_id) );

    else

    return true;

    }

    #75626
    infected
    Participant

    Hm… I´m a bit confused, too. All seems to work fine. But why the plugin description says “This plugin is only useful if you are running bbPress version 1.0-alpha-4 or later” and why the plugin was updated to 1.0 if it works fine without it?

    #75624
    cornetjr
    Member

    NEVERMIND!!!

    Apparently the problem was that when you try to login as ‘admin’ user the bbpress and wordpress user list gets confused. It thinks that they are two different users since there is the admin in bbpress user database upon install and an existing one in wordpress. This creates a conflict. I created a new admin account under a different username in wordpress and everything works correctly.

    BBpress integration plugin IS NOT REQUIRED to get integration to work correctly.

    I am not sure why, but “auth” cookie salt & WordPress “logged in” cookie salt in bbpress does not have to match that in wordpress.

    Lastly, the most important variable other than in bb-config and wp-config files:

    define(‘AUTH_KEY’,’ ‘);

    define(‘SECURE_AUTH_KEY’,’ ‘);

    define(‘LOGGED_IN_KEY’, ‘ ‘);

    Is to verify that User database table prefix is set correctly. To verify this, set field usually to wp_ and check the user list. If you have this value set correctly, then bbpress imports all users into bbpress admin area. Integration is super easy, but there are a few admin/instructional issues that have not been updated and can cause confusion. Please post if you have further questions!!!

    #74321

    “Why logged in users can’t have cached pages? (This is what I am not able to understand)”

    Because when you log in your given headers with cache control = “no-cache”.

    We run a varnish head and cluster on top of another farm running nginx. Having said that we’ve changed our forum index to link the login page. Meaning users must navigate to that page to log-in. This allows us to cache the front page (for a short time) on varnish.

    We manually force the cache on some pages (rejecting all cookies first).

    Forum content gets updated frequently, and you don’t want to cache user logged in sessions or content that changes as speedily as forums. In this I completely agree with how automatic has done it and everyone else out there should take this model as a good base.

    If you want cache your best non-destructive option is memcached server.

    #53112
    Satish
    Participant

    Not working..in bbpress1.0

    Please help me…

    #75446
    Ryan Hellyer
    Participant

    If you’re suggesting that Sam base the date of not supporting 0.9 on the proposed date that _ck_ might update all her plugins to 1.0 on, then you’re nuts. In a nice way ofc, but totally mental.

    What if _ck_ doesn’t update for addons in december? There’s a plethora of reasons why that wouldn’t happen, and to base the proposed date of closure of 0.9 on a commented that _ck_ made on one forum post once seems… daft.

    I’m not daft, I just didn’t remember correctly. I even added “I think” in brackets with my comment because I knew it was possible I had it wrong.

    I thought _CK_ said they WOULD be updated by then, which is different from when they MIGHT be updated.

    #75438
    Ryan Hellyer
    Participant

    The shorter the better IMO. How about six months?

    That should be enough time for people to sort out their plugins. _CK_ posted somewhere that their plugins will be updated in November (I think) and since a huge proportion of the most popular plugins are by them I’d be inclined to base the date on that.

    You don’t want to end up in a similar rut to how WordPress ended up supporting the 2.0 branch for a stupidly long period of time despite nearly no one actually using it.

    #75160
    r-a-y
    Participant

    Hi guys,

    FYI, I’ve updated the code for the BuddyPress bar in bbPress:

    https://buddypress.org/forums/topic.php?id=1152#post-18510

    It uses bbPress’ header and footer hooks, instead of WordPress’.

    The BP bar now also works in the bbPress admin area as well!

    #75149
    chrishajer
    Participant

    I posted this a few weeks back. Someone was going to post a “how to” of exactly that:

    bbPress, WPMU and BuddyPress Integration help is coming

    Doesn’t look like the linked-to pages have been updated yet.

    #50426

    In reply to: Importing from vanilla

    mas31550
    Member

    Does anybody have updated SQL statements to use? I keep getting a “wrong syntax” error.

    #60885

    Gotta say, that was not the answer I was expecting, since there are so many posts on these forums advising exactly that solution. I also am a little confused about why you would intentionally limit the interaction between these two–obviously intended to work together–apps, but I’m sure there are complexities here that I don’t understand, and I certainly understand needing to draw the line somewhere, especially at this early stage of development.

    As for using bbPress Live, that’s what I initially tried to do, but it hasn’t been updated since October of last year, and doesn’t work with WordPress 2.8, so that’s not really an option. If it did work with 2.8 I would be more than happy to use it instead of including bbPress in WordPress, as it apparently provides all the functionality I would need. Any chance an update is on its way soon?

    All I really need is the ability to pull the latest discussions list and the forums list into my WordPress home page. Any other suggestions are welcome.

    #65205
    Detective
    Member

    I just updated this site. Now using WPMU 2.7.1, bbPress 1.0 RC3 and BuddyPress 1.0.1. I have cookie problems, but apart from that, everything works great.

    There are many things to tweak, but those are small details …

    http://ryuuko.cl – main site

    http://foros.ryuuko.cl – forums

    #69733
    jurasiks
    Participant

    bbpress 0.9.0.5 and phpbb 3.0.5 at localhost:

    when i click on “converting users data”

    i have:

    SQL ERROR [ mysqli ]

    Data too long for column ‘user_url’ at row 1 [1406]

    to small? how to fix and convers users data properly?

    updated: fixed!

    ALTER TABLE bb_users CHANGE user_url user_url VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL

    #74717
    dss
    Member

    Just updated to RC3 with WP2.8

    • No more images… bbpress just eats the code. allow images plugin installed, and activated.

    • bb latest discussions wordpress plugin now reports an error.

    However, it looks like integration actually works (for the very first time ever!)

    #15050
    yakusha
    Member

    I installed bbpress alpha versions 5-6 mounth ago…

    i updated my forums 2 mounth ago beta to rc1 or rc2

    rc3 published a few days ago… ı installed directly. but my forums is slowed…

    rc3 slower than rc1?

    #74231
    johnhiler
    Member

    SPAM

    It’d probably be useful to have a section on registration and post spam, along with the various techniques to fight it:

    https://bbpress.org/forums/topic/request-to-the-experienced-what-anti-spam-tools

    PERMALINKS

    Some general stuff on htaccess and pretty permalinks (and how support for different approaches to permalinks vary across hosts):

    https://bbpress.org/forums/topic/dropping-multiviews-support

    https://bbpress.org/forums/topic/pretty-permalinks-not-working

    https://bbpress.org/forums/topic/pretty-permalink-type-change-gives-me-a-404-error

    VERSION DIFFERENCES

    It’d also be helpful to have a summary table showing major differences between the different versions, especially for people using plugins and unsure if an upgrade will break their plugins.

    For example, version 1.0 uses BackPress plus it uses WordPress’ latest taxonomy stuff. Plus it has a new approach to meta data. So if an 0.9 compatible plugin depends on any of this stuff, it will probably break in 1.0 unless the plugin’s been specifically updated for the latest version.

    TAGS

    Tag permissions – who can add and remove tags:

    https://bbpress.org/forums/topic/members-can-add-tags

    How hot tags work and can be formatted:

    https://bbpress.org/forums/topic/hot-tags

    Reordering of hot tags:

    https://bbpress.org/forums/topic/alphabetical-ordering-of-hot-tags

    Multi-byte characters (this may have been addressed in recent versions):

    https://bbpress.org/forums/topic/unable-to-add-mutibyte-character-tags

    #74575
    John Blackbourn
    Participant

    @Michael3185:

    The user profile fields are simply items in a PHP array. You can remove an item from the array to remove the profile field, or add a new item to the array to add a new profile field.

    <?php

    /*
    Plugin Name: My Profile Fields
    Description: My profile fields for my lovely forums
    Version 1.0
    */

    function my_profile_fields( $fields ) {
    /* This removes the Occupation profile field: */
    unset( $fields['occ'] );
    /* This adds a new optional field called Favourite Band: */
    $fields['faveband'] = array(0,'Favourite Band');
    /* This adds a new *required* field called State: */
    $fields['state'] = array(1,'State');
    /* You must return the array at the end of the function: */
    return $fields;
    }

    add_filter( 'get_profile_info_keys', 'my_profile_fields' );

    ?>

    Save the code above as a .php file and upload it to your my-plugins directory (you may need to create this directory in the root of your forums installation) and then activate it from the Plugins menu in the bbPress admin area.

    Edit: Code updated as a complete example of a plugin.

    #74534
    Arturo
    Participant

    @Sam

    i’ve downloaded the latest trunk at the mooment is rev # 2192, updated my installation.

    bb-config side i’ve $bb->cookiedomain = ‘.www.site.com’; (i’ve tested without www but nothing change…)

    in wp-config i’ve deleted

    define(‘COOKIEHASH’, ‘whatever’);

    define(‘SITECOOKIEPATH’, ‘/wp-admin’);

    so i’m

    define(‘COOKIE_DOMAIN’, ‘.www.site.com’); (or without www, but nothing change)

    define(‘COOKIEPATH’, ‘/’);

    the results?

    when i login in bb i’m logged out to wp and vice versa, i’m waiting for your plugin to test it.

    thanks for your help!

Viewing 25 results - 1,701 through 1,725 (of 2,086 total)
Skip to toolbar